Configuring IP-IP tunnel between two linux VPS

Posted on Leave a commentPosted in IT


ip tunnel add tun0 mode ipip remote a.a.a.a local b.b.b.b dev eth0
ifconfig tun0 netmask pointopoint
ifconfig tun0 mtu 1500 up


ip tunnel add tun1 mode ipip remote b.b.b.b local a.a.a.a dev eth0
ifconfig tun1 netmask pointopoint
ifconfig tun1 mtu 1500 up


PS: don`t forget to secure data, that will be unencrypted tunnel