Skip to content

Instantly share code, notes, and snippets.

@yossarin
Created March 25, 2015 08:53
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 yossarin/700501f76d8cfa3a5916 to your computer and use it in GitHub Desktop.
Save yossarin/700501f76d8cfa3a5916 to your computer and use it in GitHub Desktop.
Edits the ip table to change the default outbound subnet
#!/bin/bash
sudo route del default gw 192.168.12.1
sudo route add default gw 192.168.2.1 netmask 0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment