workaround to use tinc as default gateway

albi at life.de albi at life.de
Sat Apr 11 20:04:56 CEST 2015


Am 11.04.2015 um 15:16 schrieb kyler-keyword-tinc.0fe9e4 at lairds.com:
> I have been delighted by tinc.  Building a mesh like I need would have been horrible in OpenVPN.  tinc makes it easy.

You can add the following to tinc-up:
ORIGINAL_GATEWAY=`ip route show | grep ^default | cut -d ' ' -f 2-5`
for VPN_GATEWAY in 1.2.3.4 ; do
    ip route add $VPN_GATEWAY $ORIGINAL_GATEWAY
done
ip route add 0.0.0.0/1    dev $INTERFACE
ip route add 128.0.0.0/1  dev $INTERFACE


1.2.3.4 is the external ip of your tinc endpoint, may be more ips if needed.


ALBI...



More information about the tinc mailing list