LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-11-2011, 05:43 AM   #1
resave
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: 0
iptables issue - site stops responding after an hour


Hi,
My config works fine when enabled but after an hour the site stops responding at all. When I restart, flush or disable iptables it works fine again. Wondered if anyone could see any glaring errors I've made?
Thanks
Simon

# Generated by iptables-save v1.3.5 on Tue May 10 17:06:48 2011
*mangle
:PREROUTING ACCEPT [6034:13920296]
:INPUT ACCEPT [6034:13920296]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [5869:13570517]
:POSTROUTING ACCEPT [5869:13570517]
COMMIT
# Completed on Tue May 10 17:06:48 2011
# Generated by iptables-save v1.3.5 on Tue May 10 17:06:48 2011
*filter
:INPUT DROP [51:2988]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [5868:13570341]
-A INPUT -p icmp -m icmp --icmp-type 11 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 4 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 3 -j ACCEPT
-A INPUT -s 109.104.100.96 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -s 194.75.251.162 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -s 109.104.100.96 -i eth0 -p tcp -m tcp --dport 9999 -j ACCEPT
-A INPUT -s 194.75.251.162 -i eth0 -p tcp -m tcp --dport 9999 -j ACCEPT
-A INPUT -s 194.75.251.162 -i eth0 -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -s 109.104.100.96 -i eth0 -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -s 109.104.100.96 -i eth0 -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -s 194.75.251.162 -i eth0 -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -s 194.75.251.162 -i eth0 -p udp -m udp --dport 21 -j ACCEPT
-A INPUT -s 109.104.100.96 -i eth0 -p udp -m udp --dport 21 -j ACCEPT
-A INPUT -s 109.104.100.96 -i eth0 -p udp -m udp --dport 20 -j ACCEPT
-A INPUT -s 194.75.251.162 -i eth0 -p udp -m udp --dport 20 -j ACCEPT
-A INPUT -s 194.75.251.162 -i eth0 -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -s 109.104.100.96 -i eth0 -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -s 46.252.192.220 -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -s 46.252.192.220 -p udp -m udp --dport 21 -j ACCEPT
-A INPUT -s 46.252.192.220 -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -s 46.252.192.220 -p udp -m udp --dport 20 -j ACCEPT
COMMIT
# Completed on Tue May 10 17:06:48 2011
 
Old 05-13-2011, 04:22 PM   #2
gorrillamcd
LQ Newbie
 
Registered: Apr 2011
Distribution: Ubuntu, Fedora
Posts: 17

Rep: Reputation: 3
What does it do when it stops responding? None of the rules apply to DNS. Is that still working? You might try doing a packet capture from the internet side of the box to see what's going on when a request is made.
 
Old 05-14-2011, 02:59 AM   #3
resave
LQ Newbie
 
Registered: May 2011
Posts: 2

Original Poster
Rep: Reputation: 0
That was the problem, no dns entries. No sample scripts I looked at had talked about it. Thanks very much
 
Old 05-14-2011, 03:28 PM   #4
gorrillamcd
LQ Newbie
 
Registered: Apr 2011
Distribution: Ubuntu, Fedora
Posts: 17

Rep: Reputation: 3
Don't forget to mark it as solved, even though technically you solved it. I just jogged your memory
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron job issue - every hour works, but specific hour fails lunarleviathan Linux - Newbie 6 11-20-2009 12:19 AM
Totem Stops Playing DVDs After An Hour - On Any DVD - Help ! taurusx5 Linux - Software 1 08-17-2008 08:16 PM
Keyboard stops working after an hour or two cartwright Linux - Newbie 3 11-20-2005 04:08 PM
Cable modem stops working after an hour of connectivity thepaemon Linux - Networking 2 05-31-2004 03:38 PM
wifi stops after an hour or two thegreatgatsby Linux - Wireless Networking 5 01-22-2004 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration