Hi all,
I'm trying to open port 119. I already have a few ports open. I've used webmin to open both incoming and outgoing ports.
iptables --list --numeric gives me:
Code:
...
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:119
...
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:119
...
The iptables config file looks like this:
Code:
...
-A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
# nntp
-A INPUT -p tcp -m tcp --dport 119 -j ACCEPT
...
-A OUTPUT -p tcp -m tcp --dport 10000 -j ACCEPT
# nntp
-A OUTPUT -p tcp -m tcp --dport 119 -j ACCEPT
...
But nmap -sT -PN localhost gives me:
Code:
Starting Nmap 5.00 ( http://nmap.org ) at 2010-12-24 04:49 EST
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 996 closed ports
PORT STATE SERVICE
25/tcp open smtp
3128/tcp open squid-http
3306/tcp open mysql
10000/tcp open snet-sensor-mgmt
I've restarted iptables, even rebooted the server.
Any ideas why it seems that iptables not always open ports?
Best regards,
TX