|
TUN/TAP problems with Kirkwood kernel March 12, 2015 02:20PM |
Registered: 9 years ago Posts: 16 |
|
Re: TUN/TAP problems with Kirkwood kernel March 12, 2015 02:44PM |
Registered: 9 years ago Posts: 1,037 |
dpkg -l
|
Re: TUN/TAP problems with Kirkwood kernel March 12, 2015 02:50PM |
Registered: 9 years ago Posts: 1,037 |
|
Re: TUN/TAP problems with Kirkwood kernel March 12, 2015 03:30PM |
Registered: 10 years ago Posts: 162 |
|
Re: TUN/TAP problems with Kirkwood kernel March 12, 2015 08:46PM |
Registered: 9 years ago Posts: 16 |
apt-get -q update apt-get -y -q install build-essential libssl-dev subversion uml-utilities nano cd ~ svn co https://svn.ntop.org/svn/ntop/trunk/n2n/n2n_v2 cd n2n_v2 make make install rm /etc/rc.local cat <<EOT >> /etc/rc.local #!/bin/sh -e ## ##-Uncomment this for a client node ##edge -d n2n0 -a static:10.2.3.XXX -c tufnet -k secret -l supernodeip:1201 exit 0 EOT chmod +x /etc/rc.local echo ***Edit /etc/rc.local to choose an IP and adjust password, then reboot.
root@debian:/home/tufkal# arping 10.20.30.109 ARPING 10.20.30.109 42 bytes from 26:2a:bd:d5:fe:ec (10.20.30.109): index=0 time=3.409 msec 42 bytes from 26:2a:bd:d5:fe:ec (10.20.30.109): index=1 time=3.915 msec 42 bytes from 26:2a:bd:d5:fe:ec (10.20.30.109): index=2 time=5.128 msec 42 bytes from 26:2a:bd:d5:fe:ec (10.20.30.109): index=3 time=3.881 msec ^C --- 10.20.30.109 statistics --- 4 packets transmitted, 4 packets received, 0% unanswered (0 extra) root@debian:/home/tufkal# ping 10.20.30.109 PING 10.20.30.109 (10.20.30.109) 56(84) bytes of data. ^C --- 10.20.30.109 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3025ms root@debian:/home/tufkal#
|
Re: TUN/TAP problems with Kirkwood kernel March 12, 2015 11:20PM |
Admin Registered: 13 years ago Posts: 18,591 |
|
Re: TUN/TAP problems with Kirkwood kernel March 13, 2015 04:40AM |
Registered: 10 years ago Posts: 162 |
|
Re: TUN/TAP problems with Kirkwood kernel March 13, 2015 04:58AM |
Registered: 9 years ago Posts: 1,037 |
remote# sysctl -w net.ipv4.ip_forward=1 remote# iptables -t nat -A POSTROUTING -s 10.1.2.1 -o tun0 -j MASQUERADE This will turn forwarding and NAT for our packets coming from community tap interface and going out through tun0 to LAN. We also need to setup route on local side for remote LAN network: local# ip route add 172.18.0.0/16 via 10.1.2.2
|
Re: TUN/TAP problems with Kirkwood kernel March 13, 2015 08:53AM |
Registered: 9 years ago Posts: 16 |
wget http://dropbox.com/url/to/my/script.sh sh myscript.sh nano /etc/rc.local (set the IPs) reboot
|
Re: TUN/TAP problems with Kirkwood kernel March 13, 2015 11:43AM |
Registered: 9 years ago Posts: 1,037 |
|
Re: TUN/TAP problems with Kirkwood kernel March 13, 2015 01:00PM |
Registered: 9 years ago Posts: 16 |
|
Re: TUN/TAP problems with Kirkwood kernel March 13, 2015 01:10PM |
Registered: 10 years ago Posts: 162 |
|
Re: TUN/TAP problems with Kirkwood kernel March 13, 2015 04:00PM |
Admin Registered: 13 years ago Posts: 18,591 |
|
Re: TUN/TAP problems with Kirkwood kernel March 13, 2015 07:20PM |
Registered: 9 years ago Posts: 16 |
|
Re: TUN/TAP problems with Kirkwood kernel March 13, 2015 08:26PM |
Admin Registered: 13 years ago Posts: 18,591 |
|
Re: TUN/TAP problems with Kirkwood kernel March 13, 2015 10:09PM |
Registered: 9 years ago Posts: 16 |
|
Re: TUN/TAP problems with Kirkwood kernel March 13, 2015 10:47PM |
Registered: 10 years ago Posts: 162 |
## This is the network bridge declaration ## Start these interfaces on boot auto lo br0 iface lo inet loopback iface br0 inet static address 192.168.1.30 netmask 255.255.255.0 gateway 192.168.1.1 bridge_ports eth0 iface eth0 inet manual up ip link set $IFACE up promisc on down ip link set $IFACE down promisc off
brctl show
route -n ip route
iptables -t nat -A POSTROUTING -s 10.9.0.0/24 -o br0 -j MASQUERADE
iptables -I INPUT -p tcp --dport 443 -j ACCEPT
|
Re: TUN/TAP problems with Kirkwood kernel March 14, 2015 03:39PM |
Registered: 9 years ago Posts: 1,037 |
|
Re: TUN/TAP problems with Kirkwood kernel March 14, 2015 07:29PM |
Registered: 9 years ago Posts: 16 |
PING 10.20.30.109 (10.20.30.109) from 10.20.30.108 n2n0: 56(84) bytes of data. 64 bytes from 10.20.30.109: icmp_req=47223 ttl=64 time=1.96 ms ^C --- 10.20.30.109 ping statistics --- 76149 packets transmitted, 4 received, 99% packet loss, time 76148016ms rtt min/avg/max/mdev = 1.967/1.967/1.967/0.000 ms
11:13:34.334505 IP 10.20.30.108 > 10.20.30.109: ICMP echo request, id 2534, seq 47223, length 64 11:13:34.334569 IP 10.20.30.109 > 10.20.30.108: ICMP echo reply, id 2534, seq 47223, length 64
19:49:38.971950 ARP, Request who-has 10.20.30.101 tell 10.20.30.109, length 28 19:49:38.974307 ARP, Reply 10.20.30.101 is-at e6:b5:a3:fd:03:f3 (oui Unknown), length 28 19:49:39.959014 IP 10.20.30.109 > 10.20.30.101: ICMP echo reply, id 25226, seq 1, length 64 19:49:40.960181 IP 10.20.30.101 > 10.20.30.109: ICMP echo request, id 25226, seq 2, length 64 19:49:40.960236 IP 10.20.30.109 > 10.20.30.101: ICMP echo reply, id 25226, seq 2, length 64 19:49:41.961369 IP 10.20.30.101 > 10.20.30.109: ICMP echo request, id 25226, seq 3, length 64 19:49:41.961427 IP 10.20.30.109 > 10.20.30.101: ICMP echo reply, id 25226, seq 3, length 64 19:49:42.963207 IP 10.20.30.101 > 10.20.30.109: ICMP echo request, id 25226, seq 4, length 64------------
root@debian:/boot# cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
root@debian:/boot# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
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 mq state UP qlen 1000
link/ether MACHERE brd ff:ff:ff:ff:ff:ff
inet 10.10.10.151/24 brd 10.10.10.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 MACHERE/64 scope link
valid_lft forever preferred_lft forever
6: n2n0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1400 qdisc pfifo_fast state UNKNOWN qlen 500
link/ether MACHERE brd ff:ff:ff:ff:ff:ff
inet 10.20.30.108/24 brd 10.20.30.255 scope global n2n0
valid_lft forever preferred_lft forever
inet6 MACHERE/64 scope link
valid_lft forever preferred_lft forever
root@debian:/boot# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.10.10.1 0.0.0.0 UG 0 0 0 eth0
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.20.30.0 0.0.0.0 255.255.255.0 U 0 0 0 n2n0
root@debian:/boot# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default DD-WRT 0.0.0.0 UG 0 0 0 eth0
10.10.10.0 * 255.255.255.0 U 0 0 0 eth0
10.20.30.0 * 255.255.255.0 U 0 0 0 n2n0
root@debian:/boot# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
|
Re: TUN/TAP problems with Kirkwood kernel March 15, 2015 12:12PM |
Registered: 10 years ago Posts: 162 |
|
Re: TUN/TAP problems with Kirkwood kernel March 15, 2015 01:16PM |
Registered: 9 years ago Posts: 16 |
|
Re: TUN/TAP problems with Kirkwood kernel March 15, 2015 01:56PM |
Registered: 10 years ago Posts: 162 |
|
Re: TUN/TAP problems with Kirkwood kernel March 15, 2015 07:45PM |
Registered: 9 years ago Posts: 16 |
|
Re: TUN/TAP problems with Kirkwood kernel March 15, 2015 08:29PM |
Admin Registered: 13 years ago Posts: 18,591 |
|
Re: TUN/TAP problems with Kirkwood kernel March 15, 2015 09:04PM |
Registered: 10 years ago Posts: 162 |
|
Re: TUN/TAP problems with Kirkwood kernel March 16, 2015 09:02AM |
Registered: 9 years ago Posts: 16 |
apt-get -q update apt-get -y -q install build-essential libssl-dev subversion uml-utilities nano cd ~ svn co https://svn.ntop.org/svn/ntop/trunk/n2n/n2n_v2 cd n2n_v2 make make install rm /etc/rc.local cat <<EOT >> /etc/rc.local #!/bin/sh -e ## ##-Uncomment this for a client node ##edge -d n2n0 -a static:10.2.3.XXX -c tufnet -k secret -l supernodeip:1201 exit 0 EOT chmod +x /etc/rc.local echo ***Edit /etc/rc.local to choose an IP and adjust password, then reboot.
|
passing interest
Re: TUN/TAP problems with Kirkwood kernel March 16, 2015 09:20AM |
|
Re: TUN/TAP problems with Kirkwood kernel March 16, 2015 09:30AM |
Registered: 9 years ago Posts: 1,037 |
|
Re: TUN/TAP problems with Kirkwood kernel March 16, 2015 11:56AM |
Registered: 10 years ago Posts: 162 |
|
Re: TUN/TAP problems with Kirkwood kernel March 16, 2015 01:10PM |
Registered: 9 years ago Posts: 1,037 |