Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Just looking at the firewall rules on a Debian Lenny box with "iptables -L". One entry is scaring me:

ACCEPT all -- anywhere
ACCEPT all -- anywhere

This is not coming from any of my scripts - what could it be?


share|improve this question
From which chain / table did you get these rules? – Khaled Dec 16 '10 at 12:19 is not a usefully routeable netblock. (See this bogons reference), so I'd say it's more likely a broken iptables invocation, rather than anything nasty.

Converting that IP to a single, decimal number (calc here), it becomes 9797, which looks more like a port number. Stretching my guess, you may have a broken $VARIABLE reference in your iptables script that's expanding to an empty string, leaving a port number in the wrong place. That's where I'd start looking, anyway.

share|improve this answer
While I agree with your post, I also want to note that it's not uncommon for malicious users to "hijack" unused/unassigned IP networks to use for their purposes... – Dan Dec 16 '10 at 12:51
Good catch as well--would never have guessed that it may be a port substituted for an IP! – Andrew M. Dec 16 '10 at 13:15
SmallClanger you rock! It was a bad port 9797 rule. Thanks. – Frank Brenner Dec 16 '10 at 22:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.