linux, NAT dsl router, cant get it to work
Shadow Hawkins on Wednesday, 21 July 2004 16:19:02
Hello i am not able to get the tunnel up and running, so i hope you will help me.
First of all i use Gentoo linux with kernel 2.6.8-rc2-love2.
My Router (Longshine LCS-883R-DSL-4F) has the ipv4 ip 192.168.1.1
My Linuxbox has 192.168.1.2.
When i boot up my system i have the following settings enabled:
eth0 Link encap:Ethernet HWaddr 00:E0:7D:D1:49:86
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:7dff:fed1:4986/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:901 errors:0 dropped:0 overruns:0 frame:0
TX packets:741 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:549068 (536.1 Kb) TX bytes:59685 (58.2 Kb)
Interrupt:11 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)
ip ro sho /home/obi
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.2
127.0.0.0/8 via 127.0.0.1 dev lo scope link
default via 192.168.1.1 dev eth0 ip -6 ro sho /home/obi
fe80::/64 dev eth0 metric 256 mtu 1500 advmss 1440 metric10 64
ff00::/8 dev eth0 metric 256 mtu 1500 advmss 1440 metric10 1
default dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 metric10 64
unreachable default dev lo proto none metric -1 error -101 metric10 255
so lets go on with the script to setup the sixxs device:
#!/bin/sh
ip tunnel add sixxs mode sit local 192.168.1.2 remote 212.224.0.188
ip link set sixxs up
ip link set mtu 1280 dev sixxs
ip tunnel change sixxs ttl 64
ip -6 addr add 2001:6f8:900:2da::2/64 dev sixxs
ip -6 ro add default via 2001:6f8:900:2da::1 dev sixxs
My heartbeatconfig:
os "linux"
ipv4_interface "eth0"
hb_behindnat 1
ipv4_local_resolve obi.homelinux.org // (I have configured dyndns.org on my router to get a static hostname)
ipv6_interface "sixxs"
ipv6_pop "2001:6f8:900:2da::1"
ipv6_local "2001:6f8:900:2da::2"
ipv6_prefixlen 64
hb_password "********"
hb_sendinterval 60
hb_timeout 300
daemonize 0
After i executed my script i get this:
ip -6 ro sho /home/obi
2001:6f8:900:2da::/64 via :: dev sixxs metric 256 mtu 1280 advmss 1220 metric10 64
fe80::/64 dev eth0 metric 256 mtu 1500 advmss 1220 metric10 64
fe80::/64 via :: dev sixxs metric 256 mtu 1280 advmss 1220 metric10 64
ff00::/8 dev eth0 metric 256 mtu 1500 advmss 1220 metric10 1
ff00::/8 dev sixxs metric 256 mtu 1280 advmss 1220 metric10 1
default dev eth0 proto kernel metric 256 mtu 1500 advmss 1220 metric10 64
default via 2001:6f8:900:2da::1 dev sixxs metric 1024 mtu 1280 advmss 1220 metric10 64
unreachable default dev lo proto none metric -1 error -101 advmss 1220 metric10 255
and this:
eth0 Link encap:Ethernet HWaddr 00:E0:7D:D1:49:86
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:7dff:fed1:4986/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10082 errors:0 dropped:0 overruns:0 frame:0
TX packets:7077 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10240148 (9.7 Mb) TX bytes:551333 (538.4 Kb)
Interrupt:11 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2148 (2.0 Kb) TX bytes:2148 (2.0 Kb)
sixxs Link encap:IPv6-in-IPv4
inet6 addr: 2001:6f8:900:2da::2/64 Scope:Global
inet6 addr: fe80::c0a8:102/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1280 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)
Now I execute my heartbeatclient:
# heartbeat-client.sh
IP address change to 62.109.117.8 detected, reconfiguring
[HB] HEARTBEAT TUNNEL 2001:6f8:900:2da::2 sender 1090419318 df22aed0a6feb83d99d2e6fe91244c2c
To test the tunnel i did: ping6 www.kame.net but I got
From ip6-localhost icmp_seq=1 Destination unreachable: Address unreachable.
so i tested to ping my sixxs pop then i got this:
From ::1 icmp_seq=1 Destination unreachable: Address unreachable
I hope you can help me with this, because i have no idea what i shall do now.
regards
Jan Sauerbier
linux, NAT dsl router, cant get it to work
Shadow Hawkins on Wednesday, 21 July 2004 20:40:35
You have setup your router to forward proto-41 to the linux-machine?
Or configured it as the DMZ if the router is unable to forward protocols?
linux, NAT dsl router, cant get it to work
Shadow Hawkins on Thursday, 22 July 2004 01:16:55
Thanks for your reply, you are right it cant forward protocols, so i tried to put me into DMZ, but without success, it still wont work, same effects as without DMZ.
Posting is only allowed when you are logged in. |