Open ypid opened 9 years ago
Maybe you can try it again with this patch. I don’t see a reason why this should be slower.
I saw the comment in the code //using /mask caused 10+ second lag when calling iptables So the slowness had to do with this, not with -o/-i lo
In a hipothetical situation (with this patch) when eth0 sends data to 127.* address, lpfw will catch this packet and we don't want that. To mitigate, we would still need the original iptables rule (ie -m iprange ...) which makes this patch redundant.
Outbound: When I force eth0 to sent a packet to 127.0.0.1 using packeth which uses raw sockets than iptables and conntrack are unaware of this: http://stackoverflow.com/questions/110341/tcp-handshake-with-sock-raw-socket.
Inbound: No because eth0 has normally no 127.* address assigned so the packet will never enter the INPUT chain in the filter table.