Tried one other funny way to check if port 25 (and other tcp ports) is open in the direction for outbound traffic:
I downloaded and installed Slax (Linux) on a USB memory stick.
http://www.slax.org/Then added two extra modules, telnet and nmap, rebooted PC and tested connection from this wireless spot:
root@slax:~#
root@slax:~# nmap -PN -p 25 contribs.org
Starting Nmap 4.60 (
http://nmap.org ) at 2008-08-09 18:06 GMT
Interesting ports on contribs.org (75.146.90.141):
PORT STATE SERVICE
25/tcp open smtp
Nmap done: 1 IP address (1 host up) scanned in 0.539 seconds
root@slax:~#
root@slax:~# telnet contribs.org 25
Trying 75.146.90.141...
Connected to contribs.org.
Escape character is '^]'.
220 mail.contribs.org ESMTP Postfix
quit
221 2.0.0 Bye
Connection closed by foreign host.
root@slax:~#
Clearly shows that it is open from here.
Also worked and shows I am behind a router with an internal and an external ip address:
root@slax:~# traceroute contribs.org
traceroute to contribs.org (75.146.90.141), 30 hops max, 38 byte packets
1 192.168.1.1 (192.168.1.1) 2.267 ms 2.601 ms 2.376 ms
2 119.42.x.x (119.42.x.x) 49.092 ms 51.223 ms 49.350 ms
3 61.7.x.x (61.7.x.x) 65.560 ms 49.588 ms 49.007 ms
4 202.47.x.x (202.47.x.x) 50.425 ms 58.601 ms 49.485 ms
And my Slax laptop has only one ethernet adapter that has an internal ip:
(So it can not be running in gateway mode, and obviosly there is an other nat router that will work like an inbound "firewall" and that will eventually need forwarding.)
root@slax:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 00:13:04:11:d6:0a
inet addr:192.168.1.122 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10500 errors:0 dropped:0 overruns:0 frame:0
TX packets:8843 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8068025 (7.6 MiB) TX bytes:1481701 (1.4 MiB)
By just adding nmap via Yum, the same commends should work on the sme server as well.
(And this should also be the required info about the outbound port 25 connection.)