Skip to content

Instantly share code, notes, and snippets.

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