|
|||||||||||
|
SMC Barricade 7008ABR port forwarding
From: nate <vulndev(at)aphroland.org>
Date: Wed Nov 27 2002 - 01:25:02 EST
One of my friends contacted me, his ISP(road runner) emailed him saying he was running an open relay on his box. I checked and sure enough it was allowing relays. Looking closer the problem seems to be on the router/modem itself not the box. the router is not properly re-writing the packets it port forwards for port 25(at least not all the time). Inbound connections to port 25 reveal the source IP of the external interface on the router, NOT the source ip of the acutal machine connecting. However, connecting to port 22 reveals the source IP of the actual machine connecting. again, rebooting the router fixed the problem, so that inbound SMTP requests were showing the proper source address that was connecting (me). The server is very low traffic, so I was the only one connected to the machine at the time of my tests according to netstat. The router's management interface seems extremely simple, and looking at the configuration it seems OK. I mean for port forwarding it just asks for
Internal IP
tcpdump log from my machine(which goes out of my NAT) to his machine port 25(what I did was echo "quit" | /usr/bin/nc remote_host 25)
tcpdump run: tcpdump -n dst port 25
23:04:02.908336 10.10.10.59.1364 > XX.XXX.XXX.XXX.25: S
1770303467:1770303467(0) win 32120 <mss 1460,sackOK,timestamp 1368186
0,nop,wscale 0> (DF)
tcpdump on his side:
now, connecting to port 22 instead of 25: from my side(same tcpdump options except I'm using port 22) 23:08:59.994817 10.10.10.59.1368 > XX.XXX.XXX.XXX.22: S
2086127748:2086127748(0) win 32120 <mss 1460,sackOK,timestamp 1397895
0,nop,wscale 0> (DF)
from his side:
00:13:47.530571 216.39.174.24.64972 > 192.168.1.7.22: . ack 3871033271 win
32120 <nop,nop,timestamp 1397725 139130401> (DF) [tos 0x10]
00:13:49.247800 216.39.174.24.65044 > 192.168.1.7.22: S
2086127748:2086127748(0) win 32120 <mss 1460,sackOK,timestamp 1397895
0,nop,wscale 0> (DF)
00:13:49.554598 216.39.174.24.65044 > 192.168.1.7.22: . ack 24 win 32120 <nop,nop,timestamp 1397928 139130605> (DF) 00:13:49.572871 216.39.174.24.65044 > 192.168.1.7.22: F 1:1(0) ack 44 win 32120 <nop,nop,timestamp 1397929 139130605> (DF) (216.39.174.24 is my ip) again, all occurances of XX.XXX.XXX.XXX originally was his real ip (some IP inside of road runner). restarting the router seems to fix the problem for an undetrmined amount of time(sofar less then 30 minutes in each case). I have never worked with any SMC router equipment but this behavior is VERY strange to me. Just the fact that it changes the way the packets come in out of nowhere is enough for alarm. I haven't tried to contact SMC yet, was hoping for any insight others may have on the issue. And if anyone else may be using this product and perhaps can reproduce it. He is running the latest firmware available on the website - 1.41.008. very strange!! any ideas? thanks nate Received on Wed Nov 27 18:01:54 2002 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:37 EDT |
||||||||||
|
|||||||||||