Open aetilley opened 6 years ago
I am not able to ping the exitnode unless I assign it a static ip: root@exitnode:~# ip addr add 100.64.0.42 dev l2tp101-101
This means that as I continue with the lab below, I am still able to ping 100.64.0.42 even after step 5 and 6. ???
Testing Routing with Babeld Through Tunnel Digger ......... Step 3. check routes After running ip route you should see entries like: 100.64.0.42 via 100.64.0.42 dev l2tp0 proto babel onlink
Step 4. ping the mesh routing ip Now, execute ping 100.64.0.42 and you should see something like: $ ping 100.64.0.42 PING 100.64.0.42 (100.64.0.42) 56(84) bytes of data. 64 bytes from 100.64.0.42: icmp_seq=1 ttl=64 time=207 ms 64 bytes from 100.64.0.42: icmp_seq=2 ttl=64 time=204 ms
Step 5. now, stop the babeld process using ctrl-c
Step 6. repeat steps 3/4 and confirm that the routes are gone and the ping no longer succeeds.
Beginning with Tunneldigger Lab
Local workstation: Linux (jessie) virtual machine.
Prerequisites:
All successful except last which gives:
E: Unable to locate package linux-image-extra-3.16.0-4-amd64 E: Couldn't find any package by regex 'linux-image-extra-3.16.0-4-amd64'
Moving on...
Install:
All three kernel modules loaded successfully:
vagrant@jessie:~$ sudo lsmod | grep l2tp l2tp_eth 12851 0 l2tp_netlink 17323 1 l2tp_eth l2tp_core 25973 2 l2tp_eth,l2tp_netlink
(Also added these three to /etc/modules.)
Clone: Successfully cloned repo. Successfully cmade and made the client code.
Digging a tunnel:
Checking prior state:
1)
vagrant@jessie:~/tunneldigger/client$ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:ba:0e:69 brd ff:ff:ff:ff:ff:ff inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::a00:27ff:feba:e69/64 scope link valid_lft forever preferred_lft forever
2) vagrant@jessie:~/tunneldigger/client$ netstat -u Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State
3) cat /var/log/syslog | grep td-client return some things from (I believe) a previous attempt (which strangely have timestamps in the future). When called at about Mar 4 10:30 am it returns:
... ... Mar 4 18:27:32 jessie td-client: Performing broker selection... Mar 4 18:27:43 jessie td-client: No suitable brokers found. Retrying in 5 seconds Mar 4 18:27:48 jessie td-client: Performing broker selection... Mar 4 18:27:59 jessie td-client: No suitable brokers found. Retrying in 5 seconds Mar 4 18:28:04 jessie td-client: Performing broker selection... Mar 4 18:28:10 jessie td-client: Got termination signal, shutting down tunnel...
Moving on...
Digging a tunnel:
vagrant@jessie:~/tunneldigger/client$ sudo ./tunneldigger -b exit.sudomesh.org:8942 -u 07105c7f-681f-4476-b5aa-5146c6e579de -i l2tp0 -s ./tunnel_hook_ex.sh Hello Tunnel!