Skip to content

Instantly share code, notes, and snippets.

@bsmithyman
Created October 5, 2014 04:21
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 bsmithyman/293c20de1e17c1e8ea2b to your computer and use it in GitHub Desktop.
Save bsmithyman/293c20de1e17c1e8ea2b to your computer and use it in GitHub Desktop.
OpenVPN down script to remove custom entry in table
#!/bin/bash
TUNNEL="tun0"
TABLE="tablename"
ROUTE=$(ip route list table $TABLE)
ip route del $ROUTE table $TABLE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment