You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a TUN/TAP device named tun0 in "tun" mode ip tuntap add mode tun dev tun0
Assign an IP address (198.18.0.1/15) to the tun0 device ip addr add 198.18.0.1/15 dev tun0
Activate the tun0 device ip link set dev tun0 up
Delete the default route ip route del default
Add a new default route via 198.18.0.1 through the tun0 device with a metric of 1 ip route add default via 198.18.0.1 dev tun0 metric 1
Add another default route via 192.168.1.1 through the eth0 device with a metric of 10 ip route add default via 192.168.1.1 dev eth0 metric 10
Redirect network traffic from tun0 to a SOCKS5 proxy at host:port, with eth0 as the outgoing interface tun2socks -device tun0 -proxy socks5://host:port -interface eth0
Disable Reverse Path Filtering for better network routing
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Create a TUN/TAP device named tun0 in "tun" mode
ip tuntap add mode tun dev tun0
Assign an IP address (198.18.0.1/15) to the tun0 device
ip addr add 198.18.0.1/15 dev tun0
Activate the tun0 device
ip link set dev tun0 up
Delete the default route
ip route del default
Add a new default route via 198.18.0.1 through the tun0 device with a metric of 1
ip route add default via 198.18.0.1 dev tun0 metric 1
Add another default route via 192.168.1.1 through the eth0 device with a metric of 10
ip route add default via 192.168.1.1 dev eth0 metric 10
Redirect network traffic from tun0 to a SOCKS5 proxy at host:port, with eth0 as the outgoing interface
tun2socks -device tun0 -proxy socks5://host:port -interface eth0
Disable Reverse Path Filtering for better network routing
Perform a cURL request from eth0
curl -v --interface eth0 http://ipinfo.io/
This works
Perform a cURL request from 192.168.1.1
curl -v --interface 192.168.1.1 http://ipinfo.io/
This also works
Perform a cURL request from tun0
curl -v --interface tun0 http://ipinfo.io/
This works
Perform a cURL request from 198.18.0.1
curl -v --interface 198.18.0.1 http://ipinfo.io/
This does not work and times out
Ping test from eth0
ping -c 8 -v4 -I eth0 ipinfo.io
This works
Ping test from 192.168.1.1
ping -c 8 -v4 -I 192.168.1.1 ipinfo.io
This also works
Ping test from tun0
ping -c 8 -v4 -I tun0 ipinfo.io
This works
Ping test from 198.18.0.1
ping -c 8 -v4 -I 198.18.0.1 ipinfo.io
This does not work and times out
Firewall status: OFF
Beta Was this translation helpful? Give feedback.
All reactions