Created
March 27, 2021 19:32
-
-
Save mreram/30734eccc774054b61712275de1b0c61 to your computer and use it in GitHub Desktop.
by pass an ip through vpn in ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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