Dave's Brain

Browse - Computer Tips - How can I configure my firewall when logged in thru a terminal window?

Date: 2012oct3
OS: Linux
Distro: pre Fedora22

Q.  How can I configure my firewall when logged in thru a terminal window?

A.  The service is called iptables -- not firewall or anything similar.
Fedora 22 and later, this is different.

CONFIGURE

You can modify file /etc/sysconfig/iptables and do

systemctl restart iptables
Or use the text-based GUI:
system-config-firewall-tui
Install that via:
yum install system-config-firewall-tui
ENABLE If you want it to start when the machine boots:
systemctl enable iptables
LIST To see the current rules:
iptables -L

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.