Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.
I am being sponsored by Syntress! They bought me an amazing dedicated server to run catonmat on. If you're looking web services, I highly recommend the Syntress guys!
Let us do some real world accounting: Given iptable rules from the famous Linux IP-Masquerade-HOWTO [1], i.e.
For this firewall
returns something like the following
Chain INPUT (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 (a) ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0 11940 (b) ACCEPT all -- eth1 * 192.168.0.0/24 0.0.0.0/0 0 (i) REJECT all -- ppp0 * 192.168.0.0/24 0.0.0.0/0 reject-with icmp-port-unreachable 1147 (ii) ACCEPT all -- ppp0 * 0.0.0.0/0 xxx.xxx.xxx.xxx state RELATED,ESTABLISHED 174 (iii) REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable Chain FORWARD (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 50119 (iv) ACCEPT all -- ppp0 eth1 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHE 42148 (c) ACCEPT all -- eth1 ppp0 0.0.0.0/0 0.0.0.0/0 0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable Chain OUTPUT (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 21 1608 DROP icmp -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID 0 (d) ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0 0 0 ACCEPT all -- * eth1 xxx.xxx.xxx.xxx 192.168.0.0/24 7620 655618 ACCEPT all -- * eth1 192.168.0.1 192.168.0.0/24 0 0 REJECT all -- * ppp0 0.0.0.0/0 192.168.0.0/24 reject-with icmp-port-unreachable 1331 (e) ACCEPT all -- * ppp0 xxx.xxx.xxx.xxx 0.0.0.0/0 0 (v) REJECT all -- * * 0.0.0.0/0 0.0.0.0/0NB.: Some numbers of bytes were replaced by (a), (b),..., (e), (i), (ii),..., (v).
Then
Would you confirm?
Regards
HJS
[1] http://tldp.org/HOWTO/IP-Masquerade-HOWTO/stronger-firewall-examples.html#RC.FIREWALL-IPTABLES-STRONGER
Reply To This Comment