mailiverse/deploy/tunnel/vpn-ssh/client/run

19 lines
372 B
Plaintext
Raw Normal View History

2013-08-09 17:31:37 -04:00
#####
# client vpn
#
# Timothy Prepscius v20130326
#####
# Allow the client to forward ips
echo 1 > /proc/sys/net/ipv4/ip_forward
# bring up the tap
ifconfig tap0 up
# put an ip on it so we can listen
ifconfig tap0 192.168.2.1
# route all traffic from 192.168.2.1 through 192.168.2.5
ip rule add from 192.168.2.1 table 42
ip route add default via 192.168.2.5 table 42