Created
January 2, 2013 19:42
-
-
Save Temikus/4437286 to your computer and use it in GitHub Desktop.
A nice way to make sure that specific application uses only a specific tunnel interface.
This file contains hidden or 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/bash | |
groupadd vpnroute | |
iptables -A OUTPUT -m owner --gid-owner vpnroute \! -o tun0 -j REJECT | |
sudo -g vpnroute some-app & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment