Subject: outgoing tcp port 25 blocked? how to prove it?
On 18.10.2024 um 11:03 Uhr Lesley Esen wrote:
Subject: outgoing tcp port 25 blocked? how to prove it?
Use traceroute -T -p 25 <target>
Check where the last reply comes from.
You can test with srv1.dorfdsl.de, this should reply in all cases.
Marco Moock <mm+usenet-es@dorfdsl.de> writes:
On 18.10.2024 um 11:03 Uhr Lesley Esen wrote:
Subject: outgoing tcp port 25 blocked? how to prove it?
Use traceroute -T -p 25 <target>
Check where the last reply comes from.
You can test with srv1.dorfdsl.de, this should reply in all cases.
FreeBSD's traceroute doesn't have the -T option. So I don't know
informative this will be. (I'm just learning about the -T and -p
options. It seems very interesting and I don't know yet how it
works.)
I cannot reach srv1.dorfdsl.de.--- Synchronet 3.20a-Linux NewsLink 1.114
--8<-------------------------------------------------------->8---
%telnet srv1.dorfdsl.de 25
Trying 82.139.196.13...
telnet: connect to address 82.139.196.13: Operation timed out
Trying 2a01:170:118f:3::22...
telnet: connect to address 2a01:170:118f:3::22: No route to host
telnet: Unable to connect to remote host
%
--8<-------------------------------------------------------->8---
BTW, I don't know why modern telnet always tries an IPv6 in such cases.
(*) The traceroute to srv1.dorfdsl.de
--8<-------------------------------------------------------->8---
%traceroute -p 25 srv1.dorfdsl.de
traceroute to srv1.dorfdsl.de (82.139.196.13), 64 hops max, 40 byte packets
1 * * *
2 240.0.228.67 (240.0.228.67) 0.272 ms
240.0.228.64 (240.0.228.64) 0.254 ms
240.0.228.65 (240.0.228.65) 0.246 ms
3 242.2.120.71 (242.2.120.71) 0.856 ms 1.913 ms
242.2.120.195 (242.2.120.195) 1.009 ms
4 240.3.180.10 (240.3.180.10) 0.880 ms
240.3.180.11 (240.3.180.11) 0.935 ms
240.3.180.9 (240.3.180.9) 1.526 ms
5 242.10.82.177 (242.10.82.177) 1.471 ms
242.10.90.183 (242.10.90.183) 2.239 ms
242.2.213.197 (242.2.213.197) 1.199 ms
6 38.32.206.149 (38.32.206.149) 0.604 ms
100.100.4.78 (100.100.4.78) 1.399 ms
204.68.252.113 (204.68.252.113) 1.151 ms
7 * * *
8 be3083.ccr41.dca01.atlas.cogentco.com (154.54.30.53) 56.042 ms
be3084.ccr42.dca01.atlas.cogentco.com (154.54.30.65) 2.441 ms
port-channel5392.ccr92.dca04.atlas.cogentco.com (154.54.40.49) 1.736 ms
9 port-channel5042.ccr92.dca04.atlas.cogentco.com (154.54.162.221) 360.473 ms
port-channel5927.ccr92.dca04.atlas.cogentco.com (154.54.163.101) 1.882 ms
port-channel5042.ccr92.dca04.atlas.cogentco.com (154.54.162.221) 371.716 ms
10 be4188.ccr42.jfk02.atlas.cogentco.com (154.54.30.122) 58.424 ms
be2317.ccr41.lon13.atlas.cogentco.com (154.54.30.186) 72.891 ms
be2490.ccr42.lon13.atlas.cogentco.com (154.54.42.86) 72.750 ms
11 be2490.ccr42.lon13.atlas.cogentco.com (154.54.42.86) 72.794 ms 74.469 ms
be12194.ccr41.ams03.atlas.cogentco.com (154.54.56.94) 86.506 ms
12 be12488.ccr42.ams03.atlas.cogentco.com (130.117.51.42) 131.634 ms
be3874.rcr21.dus01.atlas.cogentco.com (154.54.62.229) 89.546 ms
be12488.ccr42.ams03.atlas.cogentco.com (130.117.51.42) 88.654 ms
13 be3488.ccr42.lon13.atlas.cogentco.com (154.54.60.13) 92.094 ms
be3875.rcr21.dus01.atlas.cogentco.com (154.54.73.25) 90.017 ms
be3488.ccr42.lon13.atlas.cogentco.com (154.54.60.13) 92.073 ms
14 r0-36.00.3bw.tal.de (78.41.51.246) 90.619 ms 90.477 ms 90.669 ms
15 r4-68.bw.tal.de (78.41.51.91) 89.592 ms
be3875.rcr21.dus01.atlas.cogentco.com (154.54.73.25) 91.501 ms
r4-68.bw.tal.de (78.41.51.91) 87.113 ms
16 r1-3.bf.tal.de (78.41.51.133) 87.305 ms
r4-68.bw.tal.de (78.41.51.91) 92.873 ms
r1-3.bf.tal.de (78.41.51.133) 87.977 ms
17 srv1.dorfdsl.de (82.139.196.13) 112.620 ms * 97.974 ms
%
--8<-------------------------------------------------------->8---
(*) Now from a host that is not blocked at all
A telnet session first.
--8<-------------------------------------------------------->8---
%telnet srv1.dorfdsl.de 25
Trying 2a01:170:118f:3::22...
Connected to srv1.dorfdsl.de.
Escape character is '^]'.
220 srv1.dorfdsl.de ESMTP Sendmail 8.17.1.9/8.17.1.9/Debian-2+deb12u2; Fri, 18 Oct 2024 19:37:36 +0200; (No UCE/UBE) logging access from: kontesti.me(OK)-kontesti.me [IPv6:2600:3c03:0:0:f03c:91ff:fe96:40c1]
quit
221 2.0.0 srv1.dorfdsl.de closing connection
Connection closed by foreign host.
%
--8<-------------------------------------------------------->8---
Now the traceroute. Looking at the traceroute, I can't tell the
difference between this host and the blocked-FreeBSD one. Can you
clarify that a little? Thanks!
--8<-------------------------------------------------------->8---
%sudo traceroute -T -p 25 srv1.dorfdsl.de
[sudo] password for dbastos:
traceroute to srv1.dorfdsl.de (82.139.196.13), 30 hops max, 60 byte packets
1 10.206.9.32 (10.206.9.32) 0.072 ms 0.075 ms 0.068 ms
2 10.206.35.101 (10.206.35.101) 0.211 ms 0.214 ms 10.206.35.102 (10.206.35.102) 0.226 ms
3 10.206.32.1 (10.206.32.1) 3.712 ms 3.718 ms 3.714 ms
4 lo0-0.gw1.cjj1.us.linode.com (173.255.239.101) 0.499 ms 0.377 ms 0.334 ms
5 ae37.r02.lga01.ien.netarch.akamai.com (23.203.156.50) 1.580 ms ae31.r01.lga01.ien.netarch.akamai.com (23.203.156.16) 1.612 ms ae30.r02.ewr01.ien.netarch.akamai.com (23.203.154.42) 0.922 ms
6 * nyk-b17-link.ip.twelve99.net (62.115.171.40) 2.001 ms 2.282 ms
7 * * *
8 ldn-bb2-link.ip.twelve99.net (62.115.139.247) 71.638 ms 71.720 ms *
9 ldn-b3-link.ip.twelve99.net (62.115.122.181) 72.927 ms ldn-b3-link.ip.twelve99.net (62.115.120.75) 70.386 ms 70.375 ms
10 interlinkgmbh-ic-381329.ip.twelve99-cust.net (62.115.154.161) 69.886 ms 71.229 ms 70.610 ms
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 r4-fra1-de.as5405.net (94.103.180.7) 86.291 ms 86.283 ms 87.435 ms
17 cust-syseleven.fra1-de.as5405.net (45.153.82.5) 111.473 ms 111.469 ms 111.466 ms
18 r2-2.3bf.tal.de (78.41.51.242) 92.897 ms 92.305 ms 92.885 ms
19 * * *
20 srv1.dorfdsl.de (82.139.196.13) 114.786 ms 114.442 ms r4-fra1-de.as5405.net (94.103.180.7) 101.827 ms
--8<-------------------------------------------------------->8---
%sudo tcptraceroute -n -p 25 srv1.dorfdsl.de
Selected device ena0, address 172.26.5.226, port 25 for outgoing
packets Tracing the path to srv1.dorfdsl.de (82.139.196.13) on TCP
port 80 (http), 30 hops max
On 18.10.2024 um 15:03 Uhr Lesley Esen wrote:
%sudo tcptraceroute -n -p 25 srv1.dorfdsl.de
Selected device ena0, address 172.26.5.226, port 25 for outgoing
packets Tracing the path to srv1.dorfdsl.de (82.139.196.13) on TCP
port 80 (http), 30 hops max
This traceroute implementation uses -p for the source port.
Dest is 80, so you check the wrong thing. Look at the manpage (I don't
have FreeBSD here) for the destination port to set.
# tcpdump -n port 25
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ena0, link-type EN10MB (Ethernet), capture size 262144 bytes 09:01:45.939473 IP 172.26.5.226.37963 > 69.164.210.174.25: Flags [S], seq 1665376094, win 65535,
The host 69.164.210.174 also runs an SMTP server, but someone seems to
block my path to it. It might not AWS as I also can't reach it from my personal computer (with a dynamic IP address).
Lesley Esen <lesen@wimezu.com> writes:
# tcpdump -n port 25
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode >> listening on ena0, link-type EN10MB (Ethernet), capture size 262144 bytes
09:01:45.939473 IP 172.26.5.226.37963 > 69.164.210.174.25: Flags
[S], seq 1665376094, win 65535,
172.26.*.* is private, not public, IP address space. If that's the TCP source address being sent to the remote hosts, it's not surprising
you're not getting an answer. If I'm reading your article right, the
public IP address 34.197.192.71.
If you can't solve the problem directly, you may need to relay outbound
mail via some AWS mail forwarder, if they have them.
The host 69.164.210.174 also runs an SMTP server, but someone seems to
block my path to it. It might not AWS as I also can't reach it from my
personal computer (with a dynamic IP address).
Try "netstat -an4" on 69.164.210.174 to verify that the mail server is
indeed listening on port 25.
FreeBSD's traceroute doesn't have the -T option. So I don't know
informative this will be. (I'm just learning about the -T and -p
options. It seems very interesting and I don't know yet how it works.)
blocked right from the first hop. Perhaps AWS did not actually unblock >outbound tcp 25; perhaps they unblocked only inbound tcp 25.
%tcptraceroute -n srv1.dorfdsl.de 25
Selected device ena0, address 172.26.5.226, port 22831 for outgoing packets >Tracing the path to srv1.dorfdsl.de (82.139.196.13) on TCP port 25 (smtp), 30 hops max
1 * * *
2 * * *
3 * * *
I think that's also possible.
The host 69.164.210.174 also runs an SMTP server, but someone seems to
block my path to it. It might not AWS as I also can't reach it from my
personal computer (with a dynamic IP address).
Try "netstat -an4" on 69.164.210.174 to verify that the mail server is
indeed listening on port 25.
That's the public IP address, yes. This is typical on the AWS network.
Each instance gets a private and a public IP address. I never see the
public IP address in the instance, but the packets must be being
rewritten by the AWS network because I can communicate with the outside
world just fine.
I think that's also possible.
The host 69.164.210.174 also runs an SMTP server, but someone seems to >>>> block my path to it. It might not AWS as I also can't reach it from my >>>> personal computer (with a dynamic IP address).
Try "netstat -an4" on 69.164.210.174 to verify that the mail server is
indeed listening on port 25.
I sent a message saying what the problem likely is, but since wimezu.com is
a fake address, it bounced. Too bad.
In article <877ca519ph.fsf@wimezu.com>, Lesley Esen <lesen@wimezu.com> wrote:
Thanks. That makes sense. The output now makes sense. Completely
blocked right from the first hop. Perhaps AWS did not actually unblock >>outbound tcp 25; perhaps they unblocked only inbound tcp 25.
%tcptraceroute -n srv1.dorfdsl.de 25
Selected device ena0, address 172.26.5.226, port 22831 for outgoing packets >>Tracing the path to srv1.dorfdsl.de (82.139.196.13) on TCP port 25
(smtp), 30 hops max
1 * * *
2 * * *
3 * * *
That looks like your machine is blocking it since you don't even see your router. Or else your router is blocking it.
--scott
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 991 |
Nodes: | 10 (0 / 10) |
Uptime: | 81:14:48 |
Calls: | 12,949 |
Calls today: | 3 |
Files: | 186,574 |
Messages: | 3,264,663 |