Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-10-2013, 05:41 PM
|
#1
|
|
LQ Newbie
Registered: Feb 2013
Distribution: CentOS
Posts: 9
Rep: 
|
Firewall exeptions
Hi,
I am running CentOS 6.3 with the default firewall and I just can't enable port 3306 (mysql), I ve even switched off the firewall but it still won t work. I want mysql traffic to be enabled in incomming and outgoing traffic.
Firewall config:
:INPUT ACCEPT [0:0]
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 3306 -j ACCEPT
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 3306 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
Thank you.
Last edited by mscolar; 02-10-2013 at 05:43 PM.
|
|
|
|
02-11-2013, 09:48 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,823
|
if you've disabled iptables and it still doesn't work, something else is wrong, isn't it? Is mysqld even listening on port 3306? Note UDP is NOT applicable here, TCP only, and you shouldn't have outbound traffic on 3306 at all on the server, only inbound.
|
|
|
|
02-11-2013, 09:53 AM
|
#3
|
|
Member
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 563
Rep: 
|
|
|
|
|
02-11-2013, 10:16 AM
|
#4
|
|
LQ Newbie
Registered: Feb 2013
Distribution: CentOS
Posts: 9
Original Poster
Rep: 
|
Quote:
Originally Posted by acid_kewpie
if you've disabled iptables and it still doesn't work, something else is wrong, isn't it? Is mysqld even listening on port 3306? Note UDP is NOT applicable here, TCP only, and you shouldn't have outbound traffic on 3306 at all on the server, only inbound.
|
thank you for your reply, yes mysqld is listening on port 3306 and i only enabled UDP since I wasn't sure if mysql uses TCP or UDP.
|
|
|
|
| Thread Tools |
Search 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:31 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|