注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Package:Iptables

From Funtoo
Revision as of 07:54, September 12, 2014 by Threesixes (talk | contribs) (deleting redirects is broken? stub category removed)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Iptables

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

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

Installation

Emerge

root ##r###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

root ##r###rc-service iptables save
root ##r###rc-service iptables start

to start upon reboot

root ##r###rc-update add iptables default

ip v6

root ##r###rc-service ip6tables save
root ##r###rc-service ip6tables start

to start upon reboot

root ##r###rc-update add ip6tables default

Show firewall Rules & Status

ip v4

root ##r###iptables -L -n

ip v6

root ##r###ip6tables -L -n