Skip to content

Instantly share code, notes, and snippets.

@neofob
Created October 14, 2018 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neofob/1715dd8a22cf2c2dd799fc58d8002b22 to your computer and use it in GitHub Desktop.
Save neofob/1715dd8a22cf2c2dd799fc58d8002b22 to your computer and use it in GitHub Desktop.
reset routing
#!/bin/sh
# reference: https://github.com/docker/libnetwork/issues/779#issuecomment-231727303
echo "Adding default route to $route_vpn_gateway with /0 mask..."
ip route add default via $route_vpn_gateway
echo "Removing /1 routes..."
ip route del 0.0.0.0/1 via $route_vpn_gateway
ip route del 128.0.0.0/1 via $route_vpn_gateway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment