Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google site



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-01-2009
Registered User
 

Join Date: Sep 2009
Location: Kolkata,India
Posts: 201
Iptables

What should be the iptables rule so that only the subnet 64.61.11.224/255.255.255.248 may access the mysql port 3306
Sponsored Links
  #2 (permalink)  
Old 10-02-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
 

Join Date: Dec 2008
Location: .at
Posts: 2,960
Make sure that the default policy is 'DROP' or 'REJECT', and use these rules:
Code:
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp -s 64.61.11.224/29 --dport 3306 -m state --state NEW -j ACCEPT
iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Iptables sudeepiit IP Networking 4 01-20-2009 06:11 AM
Need help with iptables kripz IP Networking 1 10-05-2008 01:27 AM
IPtables 182x IP Networking 1 11-28-2006 02:03 AM
IPtables Jody UNIX for Dummies Questions & Answers 3 05-31-2003 09:08 PM
iptables, ftp sTorm UNIX for Dummies Questions & Answers 2 03-19-2002 03:18 AM



All times are GMT -4. The time now is 09:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0