📄 00000005.htm
字号:
you can do something about it, or maybe you're just curious by
<BR> nature. ple,
<BR> tination address of the--
<BR>3.2 How Do I Packet Filter Under Linux?ackets going to a certain part of the
<BR> example, I use Netscape to access the
<BR> Linux kernels have had packet filtering since the 1.1 series. The first <BR>on
<BR> generation, based on ipfw from BSD, was ported by Alan Cox in late 1994.
<BR> This was enhanced by Jos Vos and others for Linux 2.0; the userspace tool
<BR> `ipfwadm' controlled the kernel filtering rules. In mid-1998, for Linux
<BR> 2.2, I reworked the kernel quite heavily, with the help of Michaelr).
<BR> Neuling, and introduced the userspace tool `ipchains'. Finally, the
<BR> fourth-generation tool, `iptables', and another kernel rewrite occurred <BR>in
<BR> mid-1999 for Linux 2.4. It is this iptables which this HOWTO concentrates
<BR> on.
<BR> <BR>n
<BR> You need a kernel which has the netfilter infrastructure in it: netfilter
<BR> is a general framework inside the Linux kernel which other things (such <BR>as
<BR> the iptables module) can plug into. This means you need kernel 2.3.15 or
<BR> beyond, and answer `Y' to CONFIG_NETFILTER in the kernel configuration.
<BR>
<BR> The tool iptables talks to the kernel and tells it what packets to <BR>filter.
<BR> Unless you are a programmer, or overly curious, this is how you will
<BR> control the packet filtering.
<BR>
<BR> iptables
<BR>
<BR> The iptables tool inserts and deletes rules from the kernel's packet
<BR> filtering table. This means that whatever you set up, it will be lost <BR>upon
<BR> reboot; see Making Rules Permanent for how to make sure they are <BR>restored
<BR>Linthe next time Linux is booted. here a <BR>Ma
<BR> mo o
<BR> iptables is a replacement for ipfwadm and ipchains: see Using ipchains <BR>and
<BR> ipfwadm for how to painlessly avoid using iptables if you're using one of
<BR> those tools.
<BR>3.1
<BR> Making Rules Permanent
<BR>
<BR> Your current firewall setup is stored in the kernel, and thus will be <BR>lost
<BR> on reboot. Writing iptables-save and iptables-restore is on my TODO list.
<BR> When they exist, they'll be cool, I promise.
<BR> <BR>to
<BR> Meanwhile, put the command required to set up your rules in an
<BR> initialization script. Make sure you do something intelligent if one ofe,
<BR> the commands should fail (usually `exec /sbin/sulogin').address of the--
<BR> ackets going to a certain part of the
<BR> ----------------------------------------------------------------------e
<BR> <BR>on
<BR> Next Previous Contents <BR>-- <BR>))))))))))))))))))))))))))))))))))))))))))))))))))) <BR> ((((((((((((生命的欢喜可以再影印一张吗?(((((((((((( <BR> ))))))))))))老去的热情可以再拉皮整形吗?)))))))))))) <BR> ((((((((((((病中的真理可以再传真校对吗?(((((((((((( <BR> ))))))))))))死掉的爱情可以再输入键出吗?)))))))))))) <BR> ((((((((((((((((((((((((((((((((((((((((((((((((((( <BR> <BR>※ 来源:·BBS 水木清华站 smth.org·[FROM: 202.112.45.49] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -