Skip to content

Instantly share code, notes, and snippets.

@gmas
Last active August 29, 2015 14:17
Show Gist options
  • Save gmas/cf2d932c68744f619f35 to your computer and use it in GitHub Desktop.
Save gmas/cf2d932c68744f619f35 to your computer and use it in GitHub Desktop.
#/var/lib/dhcpcd/dhcpcd-tun1.info
GATEWAYS=10.4.3.73
############################################################################################
#NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS COPY
twc 1 1 - eth1 detect track,nohostroute -
vpn 2 2 - tun1 detect loose,track -
+ run_ip route replace $'10.4.3.73\r' src 10.4.3.73 dev tun1
+ ip -4 route replace $'10.4.3.73\r' src 10.4.3.73 dev tun1
".ror: an inet prefix is expected rather than "10.4.3.73
+ error_message 'ERROR: Command "ip -4 route' replace $'10.4.3.73\r' src 10.4.3.73 dev 'tun1" Failed'
+ echo ' ERROR: Command "ip -4 route' replace $'10.4.3.73\r' src 10.4.3.73 dev 'tun1" Failed'
src 10.4.3.73 dev tun1" Failedreplace 10.4.3.73
+ return 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment