Created
October 14, 2018 02:28
-
-
Save neofob/1715dd8a22cf2c2dd799fc58d8002b22 to your computer and use it in GitHub Desktop.
reset routing
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
#!/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