Skip to content

Instantly share code, notes, and snippets.

Created March 27, 2021 19:32
What would you like to do?
by pass an ip through vpn in ubuntu
GW=$(ip route list | sed "s/.* via \([0-9.]*\) dev $DEV.*/\1/;t;d"|head -1)
route add -host gw $GW $DEV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment