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

I have an approx server to speed up Debian apt updates, on my Ubuntu 11.04 desktop PC, it had ran fine in the past, but today le 9999 port is open from localhost, but not for others PC. I have not modified inetd configuration at all. What can I check and try?


9999            stream  tcp     nowait  approx  /usr/sbin/approx /usr/sbin/approx

# Here are some examples of remote repository mappings.
# See for mirror sites.


# The following are the default parameter values, so there is
# no need to uncomment them unless you want a different value.
# See approx.conf(5) for details.

$cache          /espace/Dossiers/approx
$max_rate       unlimited
$max_redirects 5
$user           approx
$group          approx
$syslog daemon
$pdiffs true
$offline        false
$max_wait       10
$verbose        false
$debug          false

I tried to allow others PC to connect with a "ALL: ALL" in hosts.allow. ufw is disabled, iptables-save is empty.

share|improve this question
a port scan show that 9999 is closed, but netstat -tupan show tcp 0 0* LISTEN - t – Cédric Girard Apr 3 '12 at 21:48
What does iptables -L -n show? – womble Apr 4 '12 at 4:09
Good answer, Womble, I was wrong to trust iptables-save. With -L I can see rules, and with -F my approx server is reachable. Post an answer, I will accept it, and punish myself for such a lame question and time wasted – Cédric Girard Apr 4 '12 at 9:03
up vote 1 down vote accepted

The best way to tell what is in the firewall is to use iptables -L -n -- it'll definitively show you what rules are in place in the live firewall. Other methods can be out-of-date or incomplete.

share|improve this answer

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.