From 557a2129daa0345164b13cb8fc23e5254cc73c0a Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 27 Apr 2020 22:13:08 +0800 Subject: [PATCH] Update tun2socks.sh --- tun2socks.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tun2socks.sh b/tun2socks.sh index 79cf6ce..f400123 100644 --- a/tun2socks.sh +++ b/tun2socks.sh @@ -11,14 +11,10 @@ LOGLEVEL="${LOGLEVEL:-warning}" BACKENDDNS="${BACKENDDNS:-8.8.8.8:53}" HOSTS="${HOSTS:-localhost=127.0.0.1}" -# enable ip_forward -sysctl -w net.ipv4.ip_forward=1 &> /dev/null - # create tun device ip tuntap add mode tun dev $TUN ip addr add $TUNGW/24 dev $TUN ip link set dev $TUN up -echo "tun device created: $TUN" # change default gateway ip route del default &> /dev/null @@ -32,7 +28,6 @@ done # DNS settings echo "nameserver $TUNGW" > /etc/resolv.conf -echo "DNS settings updated" tun2socks -loglevel $LOGLEVEL \ -tunName $TUN -proxyServer $PROXY \