need help with iptable and mySQL server

Reply

Join Date: Dec 2005
Posts: 9
Reputation: kulinh is an unknown quantity at this point 
Solved Threads: 0
kulinh kulinh is offline Offline
Newbie Poster

need help with iptable and mySQL server

 
0
  #1
Jan 21st, 2006
i have two server A and B
in server A i install forum and mySQL server !!!
now i want server can connect to A mySQL server.
But i want only server B's IP can connect to server A on my define port !!!
how to config mySQL server and iptable !!
Thank in advanced !! :lol: :lol:
Reply With Quote Quick reply to this message  
Join Date: Jan 2004
Posts: 468
Reputation: TKS will become famous soon enough TKS will become famous soon enough 
Solved Threads: 18
TKS's Avatar
TKS TKS is offline Offline
Posting Pro in Training

Re: need help with iptable and mySQL server

 
0
  #2
Apr 19th, 2006
Make sure the port is opened...Insert your MySQL IP for 202.54.1.20. Insert your Apache IP for 202.54.1.50

iptables -A INPUT -p tcp -s 202.54.1.50 --sport 1024:65535 -d 202.54.1.20 --dport 3306 -m state --state NEW,ESTABLISHED -j ACCEPT

iptables -A OUTPUT -p tcp -s 202.54.1.20 --sport 3306 -d 202.54.1.50 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT
My Home Away from Home: Yet Another Linux Blog
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC