I have this example on IPtables
Iptable is on the Host. This host has 2 ethernets connected eth0(192.168.0.2) where the LAN is connected and eth1(151.100.4.3) where it is connection to the internet.
If the host 192.168.0.25 is under attack I want to define a rule to isolate it as much as possible.
I think about this IPtables and give this answer :
Iptables OUTPUT - d 192.168.0.25 -o eth0 -m state --state NEW,ESTABLISHED,RELATED -j DROP
Iptables INPUT -s 192.168.0.25 -i eth0 -m state --state NEW,ESTABLISHED,RELATED -j DROP
Iptables FORWARD - d 192.168.0.25 -o eth0 i- eht1 -m state --state NEW,ESTABLISHED,RELATED -j DROP
Iptables FORWARD -s 192.168.0.25 -i eth0 o- eht1 -m state --state NEW,ESTABLISHED,RELATED -j DROP
Is correct block the forward chain too? I m thinking to block the FORWARD because maybe traffic can be or come from the internet part.
In case I create a new firewall on the attacker host (192.168.0.25) Can I just create these two rules more generics
Iptables OUTPUT -m state --state NEW,ESTABLISHED,RELATED -j DROP
Iptables INPUT -m state --state NEW,ESTABLISHED,RELATED -j DROP
So, in this case, the host can do nothing
Is correct my hypothesis?