summaryrefslogtreecommitdiffstats
path: root/contrib/iptables.hook
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/iptables.hook')
-rwxr-xr-xcontrib/iptables.hook17
1 files changed, 0 insertions, 17 deletions
diff --git a/contrib/iptables.hook b/contrib/iptables.hook
deleted file mode 100755
index 95546ba..0000000
--- a/contrib/iptables.hook
+++ /dev/null
@@ -1,17 +0,0 @@
-### Sample netcfg hook script for location based firewall rules.
-### To install, make this executable and put it in /usr/lib/network/hooks
-
-### USAGE
-## You need to have iptables installed to use this script.
-## Add a location to your network profile and add firewall to your POST_UP.
-## The iptables setup in /etc/iptables/$LOCATION.rules will now be loaded
-## automatically when a connection is established.
-##
-## Sample excerpt from the profile:
-## LOCATION="library"
-## POST_UP="firewall"
-
-function firewall {
- /usr/sbin/iptables-restore < "/etc/iptables/$LOCATION.rules"
-}
-