diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2012-12-28 02:38:58 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2012-12-28 02:38:58 +0100 |
commit | 4e457e0efd0e5fd5df24c7e9ed63b02d0196ea8d (patch) | |
tree | 09580c92ca78e8b9b54d7ed8d6b79d7fcd6fd9ff /contrib/iptables.hook | |
parent | 6737a37e5666837a8f51a2f74bdebdd756151394 (diff) | |
download | netctl-4e457e0efd0e5fd5df24c7e9ed63b02d0196ea8d.tar.gz netctl-4e457e0efd0e5fd5df24c7e9ed63b02d0196ea8d.tar.xz |
Forking netcfg to netctl (1/2)
This commit contains the moving of files.
Diffstat (limited to 'contrib/iptables.hook')
-rwxr-xr-x | contrib/iptables.hook | 17 |
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" -} - |