Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th February 2010, 16:04
tads tads is offline
Junior Member
 
Join Date: Apr 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to tads Send a message via Skype™ to tads
Default iptables giving problem!!!!

recently I installed CentOS 5 for my server.. when ever my iptables service is on I do not get internet connection. But when ever I put the iptables service off. I get the net connection.

I don't know what is happening....please help.

tads.
Bhutan.
Reply With Quote
Sponsored Links
  #2  
Old 21st February 2010, 16:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

What firewall daemon do you use? Shorewall, Bastille, etc.?
What's the output of
Code:
iptables -L
When the firewall is on?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 23rd February 2010, 10:00
tads tads is offline
Junior Member
 
Join Date: Apr 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to tads Send a message via Skype™ to tads
 
Default hi falko

hi falko,
thanks for your reply.
i really dont know about the firewall daemon I am using.
But following is what I got from the command that you have asked me to type.
Looking forward for your help.

[root@ns1 ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT esp -- anywhere anywhere
ACCEPT ah -- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT tcp -- anywhere anywhere tcp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

once more thanks for your help and your time.

Tandin
Bhutan.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TLS Problem admins Installation/Configuration 1 19th September 2009 11:55
MyDNS problem and Iptables problem Gimly General 4 13th August 2009 16:59
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
Iptables gateway with one lan adapter tsmr Installation/Configuration 1 7th August 2008 13:02
Performance Problem sigma Tips/Tricks/Mods 3 19th December 2006 04:29


All times are GMT +2. The time now is 00:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.