Skip to content


Linux firewall

July 16, 2013

The Linux firewall is controlled with the vague and varied “iptables” command. It took a while, but I found out how to open an incoming tcp port on the firewall:

iptables -I INPUT -p tcp --dport 8080 -j ACCEPT

Other ways of modifying the firewall:

  • firestarter
  • system-config-firewall (gui)
  • system-config-firewall-tui (text ui)
  • shorewall

The “system-config-firewall*” interfaces use their own  rules and overwrite any custom firewall settings (i.e. iptables commands).

From → Technology

One Comment
  1. On Centos (at least) to make this persist between boots, you do service iptables save

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: