SSH Gateway: IPTables
Files added:
andmkdir /var/lib/iptables
update-rc.d:
-- added s-link: /etc/init.d/iptables --> /etc/rc2.d/S18iptables -- update-rc.d iptables defaults -- made /etc/rc2.d/S17iptables -- rebooted to test: iptables started ok!
How to reconfigure IPTables2
Config and usage:
- edit /root/etc/iptables*
- Either
/root/etc/iptables.rules.sekhmet.itservices.sh --restart-ssh-access
or/root/etc/iptables.rules.sekhmet.itservices.sh --restart-total
as appropriate. - N.B. The script iptables.rules.sekhmet.itservices.sh also restarts the fail2ban service (after both --restart-ssh-access and --restart-total) to ensure all is well.
- Save config into initialisation scripts:
/etc/init.d/iptables save active
- Copy (scp) new config to sekhmet.umist.ac.uk/etc for safe-keeping.