Iptables

From Funtoo
Revision as of 04:20, 26 March 2014 by 666threesixes666 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template:Stub iptables is a program used to configure and manage the kernels netfilter modules.

Installation

Emerge

#emerge iptables

First Run

For some services such as sshguard & fail2ban you need a generic running firewall. We will save a blank firewall rule set and start the firewall.

ip v4

#rc-service iptables save
#rc-service iptables start

to start upon reboot

#rc-update add iptables default

ip v6

#rc-service ip6tables save
#rc-service ip6tables start

to start upon reboot

#rc-update add ip6tables default

Show firewall Rules & Status

ip v4

#iptables -L -n

ip v6

#ip6tables -L -n