A simple script to manage iptables rules from a save file
A simple script / systemd unit to manage iptables rules from a save file.
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:danci1973/iptables-init && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
iptables-init.spec | 0000002461 2.4 KB | |
iptables.init | 0000002709 2.65 KB | |
iptables.service | 0000000390 390 Bytes | |
iptables.sysconfig | 0000000324 324 Bytes | |
rules-save | 0000000193 193 Bytes |
Latest Revision
Danilo Godec (danci1973)
committed
(revision 19)
Fixed iptables starting: M iptables.init M iptables.service Diff for working copy: . Index: iptables.init =================================================================== --- iptables.init (revision 18) +++ iptables.init (working copy) @@ -56,6 +56,7 @@ echo "There's an error in ${IPTABLES_SAVE} - please correct!" exit 1 fi + /usr/sbin/iptables-restore < ${IPTABLES_SAVE} else echo "${IPTABLES_SAVE} doesn't exist!" fi Index: iptables.service =================================================================== --- iptables.service (revision 18) +++ iptables.service (working copy) @@ -7,9 +7,9 @@ Type=oneshot RemainAfterExit=yes EnvironmentFile=/etc/sysconfig/iptables -ExecStart=/usr/local/sbin/iptables.init start -ExecReload=/usr/local/sbin/iptables.init restart -ExecStop=/usr/local/sbin/iptables.init stop +ExecStart=/usr/sbin/iptables.init start +ExecReload=/usr/sbin/iptables.init restart +ExecStop=/usr/sbin/iptables.init stop StandardOutput=syslog StandardError=syslog
Comments 0