RSS Forums RSS
Please support our Linux Servers and Apache advertiser: Programming Forums
Views: 2234 | Replies: 1
Reply
Join Date: Dec 2005
Posts: 9
Reputation: kulinh is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kulinh kulinh is offline Offline
Newbie Poster

need help with iptable and mySQL server

  #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:
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2004
Location: VA, USA
Posts: 459
Reputation: TKS will become famous soon enough TKS will become famous soon enough 
Rep Power: 6
Solved Threads: 17
TKS's Avatar
TKS TKS is offline Offline
Posting Pro in Training

Re: need help with iptable and mySQL server

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:09 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC