944,218 Members | Top Members by Rank

Jan 21st, 2006
0

need help with iptable and mySQL server

Expand Post »
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:
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kulinh is offline Offline
9 posts
since Dec 2005
Apr 19th, 2006
0

Re: need help with iptable and mySQL server

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

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Servers and Apache Forum Timeline: reliable hosting
Next Thread in Linux Servers and Apache Forum Timeline: regarding vbulletin mod rewrite





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC