954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

need help with iptable and mySQL server

i have two server A and B
in server A i install forum and mySQL server !!! :D
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:

kulinh
Newbie Poster
9 posts since Dec 2005
Reputation Points: 10
Solved Threads: 0
 

Make sure the port is opened...Insert your MySQL IP for 202.54.1.20. Insert your Apache IP for 202.54.1.50

<strong>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</strong>
TKS
Posting Pro in Training
470 posts since Jan 2004
Reputation Points: 108
Solved Threads: 18
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: