Hi all,
I have my own linux Ubuntu 6.10 server running a variety of services.
Since I last upgraded my kernel to version 2.6.17-12-generic, I have the
strangest problem. A little background on my very simple network
configuration:
<LAN>
|
[10.0.0.1 - WRT54G running DD-WRT with DHCP and dnsmasq] - <internet>
|
[10.0.0.3 - server]
|
[10.0.0.5 - xbox]
|
[10.0.0.25 - laptop]
Now, I often log into my server with SSH from the laptop, and normally I
would see the login coming from 10.0.0.25 like this (I think this is
what it looked like, at least I am sure I could see the source IP in
some form, but I cannot reproduce it anymore):
user@server:~$ netstat -tn
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
ESTABLISHED
tcp6 0 0 ::ffff:10.0.0.3:22 ::ffff:10.0.0.25:2276
user@server:~$
...but after this kernel update (I think this is what changed it), I have:
user@server:~$ netstat -tn
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
ESTABLISHED
tcp6 0 0 ::ffff:10.0.0.3:22 ::ffff:10.0.0.1:2276
user@server:~$
So it looks like my SSH connection is coming from the router, while it
is really coming from my laptop. This strange behavior is also present
in all log-files showing information about originating IP (syslog for
instance).
One funny thing is that if the xbox connects via samba to the server,
everything looks ok:
user@server:~$ netstat -tn
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 10.0.0.3:445 10.0.0.5:1040
ESTABLISHED
So to me this looks like a problem displaying ipv6 ip's? Or is it me not
having understood ipv6 at all?
Ifconfig of eth0 on the server gives:
eth0 Link encap:Ethernet HWaddr 00:40:63:E6:5B:8B
inet addr:10.0.0.3 Bcast:10.0.0.255 Mask:255.255.255.0
...so netmask is correct, and it is the same on the windows laptop. So
traffic really shouldn't be routed. And if I ping the laptop:
root@server:~# ping 10.0.0.25
PING 10.0.0.25 (10.0.0.25) 56(84) bytes of data.
64 bytes from 10.0.0.25: icmp_seq=1 ttl=128 time=2.79 ms
Last but not least - if I run a "arp -a" everything seems correct:
root@server:# arp -a
wrt54g.mydomain.dk (10.0.0.1) at 00:18:39:C0:1A:30 [ether] on eth0
laptop.mydomain.dk (10.0.0.25) at 00:0E:35

E:8F:49 [ether] on eth0
xbox.mydomain.dk (10.0.0.5) at 00:12:5A:20:C5:C5 [ether] on eth0
root@server:#
I am not sure whether this is something to be worried about (I guess it
isn't), but I would like the correct information in my logfiles and in
my netstat. Any clues?
Best regards,
Henrik