Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-10-2012, 04:11 AM
|
#1
|
Member
Registered: Jun 2012
Location: India
Posts: 66
Rep:
|
Iptables is blocking MS-SQL DB
Hi friends,
I have RHEL-5 with IPTABLES, and in widows 2003 having Enterprises Manager (SQL-2000) installed, In this some local DB Connected and some remotely/Public DB connected, When i on iptables service it is blocking remotely/public IP DB but local DB are opening, no issue with local connected DB but the problem is getting only with connected to public IP DB. I have opened below SQL ports Even its not working
# vi iptables
-A RH-Firewall-1-INPUT -p tcp --dport 118 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 156 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 1433 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 1434 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 1533 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 3306 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 5432 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 6432 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 19812 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 25565 -j ACCEPT
Thanks and Regards.
Sandeep CC
Last edited by sandeepc04; 07-10-2012 at 04:19 AM.
|
|
|
07-10-2012, 04:59 AM
|
#2
|
Senior Member
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144
|
Hi,
you probably need to allow "OUTPUT" ports for MSSql 1433 & 1434, not just INPUT.
|
|
|
07-10-2012, 06:09 AM
|
#3
|
Member
Registered: Jun 2012
Location: India
Posts: 66
Original Poster
Rep:
|
lithos,
Thanks for your reply, I am very week in iptables, can you give me, suitable OUTPUT command for my iptables?
NOTE:
I am editing direct iptables file in /etc/sysconfig/iptables
Regards,
Sandeep CC
|
|
|
07-10-2012, 11:38 AM
|
#4
|
Senior Member
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144
|
well, I will give you first some IPTABLES examples
Then in your case it should be something like:
Code:
# Allow full outgoing connection but no incomming stuff
-A OUTPUT -o eth0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT <--- if your network interface is not eth0 , change accordingly
-A OUTPUT -p tcp --sport 1024:65535 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
this should/will allow ALL outgoing traffic from your server!
|
|
|
All times are GMT -5. The time now is 08:05 PM.
|
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
|
|