Search My Techie Guy

Showing posts with label iptables. Show all posts
Showing posts with label iptables. Show all posts

Wednesday, August 6, 2014

Working with iptables - Linux centOS

Follow this link to learn, understand and successfully setup your linux (centOS) server firewall. I used this link to write a script for my server firewall, every time i wish to add an entry into my iptables, i just edit and run the script. With just iptables, i have been able to keep the bad guys out of my server.
Working with Linux iptables to create a firewall


Monday, July 7, 2014

Linux - How to check, enable & disable the ip firewall (iptables)?

Am running these commands on "Red Hat Enterprise Linux Server release 6.4":

To check current status of the firewall:
# service iptables status

To Start the firewall
# service iptables start

To Stop the firewall
# service iptables stop

To Restart the firewall
# service iptables restart

To check the iptables configuration
# cat /etc/sysconfig/iptables

To edit the iptables configuration
# vi /etc/sysconfig/iptables