iptables FORWARD and INPUT

前端 未结 2 1866
轻奢々
轻奢々 2021-01-30 00:06

I have a home network with Linux pc\'s, which all had iptables running. I think it is easier to put my LAN behind a Linux gateway/firewall, so I\'ve put a pc (with fedora,no gui

2条回答
  •  逝去的感伤
    2021-01-30 00:47

    INPUT, FORWARD, and OUTPUT are separate. A packet will only hit one of the three chains.

    If the destination is to this server, it hits the INPUT chain. If its source is from this server, it hits OUTPUT. If its source and destination are both other machines—it's being routed through the server—then it hits the FORWARD chain.

提交回复
热议问题