You are not logged in.
Hi - at present I manually run my iptables script by su to root, cd into script directory then ./<scriptname> - this works fine and I then check it with:
# iptables -L -v
No problems - now - is there a standard way with Arch for your iptables script to be run automatically on boot ?
Thanks.
Offline
sure, just add "iptables" to the DAEMONS line in /etc/rc.conf
(it will restore /etc/iptables/iptables.rules on boot, and save it on shutdown)
Offline
First, run your iptables script and then execute 'iptables-save > /etc/iptables/iptables.rules' to save your rules. Then add iptables to DAEMONS array to have those rules executed on boot, as sorcerer suggested.
Offline
First, run your iptables script and then execute 'iptables-save > /etc/iptables/iptables.rules' to save your rules. Then add iptables to DAEMONS array to have those rules executed on boot, as sorcerer suggested.
/etc/rc.d/iptables start
*run iptables script*
/etc/rc.d/iptabes save
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Cheers guys - I've sorted it - ran the script then checked it was active with:
# iptables -L
then saved the active ruleset with:
# /etc/rc.d/iptables save
then added:
iptables
to the daemons list in /etc/rc.conf
rebooted - and checked it's active, and it is
Thanks again everyone
Offline