ssh tunnel s tun interfacy

Jan Krcmar honza801 at gmail.com
Tue Feb 1 18:25:22 CET 2011


zdravim

predpokladejte nastadujici stroje L(linux), F(freebsd)
pokousel jsem se udelat ze stroje L
L> ssh F -l root -w 9:9

co se mi povedlo a na obou strojich se objevil tun9 interface
dale jsem na obou strojich nastavil ipv6 na tun9
L> ifconfig tun9 up; ip addr add 2002:2::2/48 dev tun9
F> ifconfig tun9 up; ifconfig tun9 inet6 2002:2::1/48

dale jsem si zkusil
L> ping6 2002:2::1
F> ping6 2002:2::2

ani jedno neslo, tudiz jsem nechal pingat L a na F jsem si pustil
F> tcpdump -i tun9
tcpdump: WARNING: tun9: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tun9, link-type NULL (BSD loopback), capture size 96 bytes
18:20:39.184400 IP6 , wrong link-layer encapsulationbad-hlen 0
18:20:40.192896 IP6 , wrong link-layer encapsulationbad-hlen 0
...

pokud udelam ping6 z F a dumpuju na L
F> ping6 L
L> tcpdump -i tun9
tcpdump: WARNING: tun9: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tun9, link-type RAW (Raw IP), capture size 65535 bytes
18:22:57.434605 IP6 2002:2::1 > 2002:2::2: ICMP6, echo request, seq 5, length 16
18:22:57.434654 IP6 2002:2::2 > 2002:2::1: ICMP6, echo reply, seq 5, length 16
18:22:57.444464 IP6 2002:2::1 > 2002:2::2: ICMP6, neighbor
solicitation, who has 2002:2::2, length 24
18:22:57.444512 IP6 2002:2::2 > 2002:2::1: ICMP6, neighbor
advertisement, tgt is 2002:2::2, length 24
...

na F ale ping nehlasi, ze by neco prislo a tcpdump mi ukazuje
F> tcpdump -i tun9
tcpdump: WARNING: tun9: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tun9, link-type NULL (BSD loopback), capture size 96 bytes
18:24:21.436478 IP6 2002:2::1 > 2002:2::2: ICMP6, echo request, seq
89, length 16
18:24:21.439201 IP6 , wrong link-layer encapsulationbad-hlen 0
18:24:22.436464 IP6 2002:2::1 > 2002:2::2: ICMP6, echo request, seq
90, length 16
18:24:22.439817 IP6 , wrong link-layer encapsulationbad-hlen 0

kdepak by mohl byt problem? :)

diky
fous


More information about the Users-l mailing list