|
根据http://iptables-tutorial.frozentux.net/iptables-tutorial.html#TRAVERSINGOFTABLES的图中所示,NAT的包不经过FORWARD链,可是为什么把FORWARD链的包DROP不可以工作呢?
这样可以工作:
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- 192.168.0.0/24 anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- 192.168.0.0/24 anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT all -- 192.168.0.0/24 anywhere
ACCEPT all -- 192.168.1.203 anywhere
但是把FORWARD关了就不行了,为什么? |
|