G'day folks,Not exactly a newbie to Linux but it has been a LONG time, maybe RH6/7 era, since I've done anything with it other than use pre-build firewall distros (IPcop, Unta... [by SuperGumby]
on 07/07/2012 – Made popular on 07/07/2012
Setting up a firewall for IPtables can be rather difficult, especially if its your first time. A firewall is something you need to have, whether you are just trying to keep hackers out, or trying to meet a requirement such as PCI compliance, or HIIPA compliance. Luckily the folks at rfxnetworks, created a CLI based configuration for IPtables.
I did a fresh install of CentOS 7 on a new machine.
I wrote /usr/local/bin/firewall.stop to remove all the firewall rules.
It contains this code:
# Flush the rules
# Set the default policies to accept
/usr/sbin/iptables -P INPUT ACCEPT
/usr/sbin/iptables -P OUTPUT ACCEPT
/usr/sbin/iptables -P FORWARD ACCEPT
I wrote /usr/local/bin/firewall.start to set the firewall
This is a follow-up question after I fixed my initial problems:
I have a CENTOS Linux VPS.
I have the following in my IPTABLES script to run when my VPN restarts, but I get errors when I do a service firewall restart
I've ran each of the commands below manually and they work.