????????iptables??
????iptables??Linux?1?????????ò??????????????????????????????????????????????
????????Netfilter??
???????iptables?????Netfilter??iptables????ò????????????????????????ù???????????????????????????Netfiler??
????Netfilter??Linux??????????????????????????????顣
????iptables??Netfilter??????

????????????????????Netfilter???????????????????????????Netfilter??????????Hook point????PRE_ROUTING??INPUT??OUTPUT??FORWARD??POST_ROUTING??
?????κ??????????????????????????????????????????????????
????iptables???????
????iptables????????????????????????
????????? + ???????? + ????<br><br>??????filter???nat???mangle???raw??<br><br>????????PRE_ROUTING??INPUT??OUTPUT??FORWARD??POST_ROUTING
???????????????iptables????????/????????????????????????????????????
????????????????????????????????????????????λ???????????????????
????iptables???????
?????????????????????????
????1??filter ????????
????2??nat ???????????
????3??mangle ??????????
????4??raw ?????????????iptables???????????????????????????????????????
??????????????????????????????
?????????????????????????????????????????????????????????Щ???????????????

????????filter????????????3???????INPUT??FORWARD??OUTPUT??
????????nat?????????????3???????PREROUTING??OUTPUT??POSTROUTING??