### ifconfig - 2007-03-22 19:59 ### eth0 Link encap:Ethernet HWaddr 00:09:5B:07:55:CC inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 ... eth1 Link encap:Ethernet HWaddr 00:0D:88:37:65:A0 inet addr:216.144.204.42 Bcast:216.144.204.47 Mask:255.255.255.248 ... eth1:0 Link encap:Ethernet HWaddr 00:0D:88:37:65:A0 inet addr:216.144.204.43 Bcast:216.144.204.47 Mask:255.255.255.248 ... ### netmasq -L - 2005-05-20 18:17 ### Table: nat Chain PREROUTING (policy ACCEPT 28 packets, 2286 bytes) target prot opt in out source destination Chain POSTROUTING (policy ACCEPT 7 packets, 1287 bytes) target prot opt in out source destination masq_eth1 all -- * eth1 0.0.0.0/0 0.0.0.0/0 Chain OUTPUT (policy ACCEPT 24 packets, 2968 bytes) target prot opt in out source destination Chain masq_eth1 (1 references) target prot opt in out source destination LOG all -- * eth1 0.0.0.0/0 0.0.0.0/0 ... MASQUERADE all -- * eth1 0.0.0.0/0 0.0.0.0/0 ### netmasq -L - 2006-03-22 20:04 ### Table: nat Chain PREROUTING (policy ACCEPT 7066K packets, 859M bytes) target prot opt in out source destination Chain POSTROUTING (policy ACCEPT 1432K packets, 102M bytes) target prot opt in out source destination masq_eth1 all -- * eth1 0.0.0.0/0 0.0.0.0/0 masq_eth1 all -- * eth1 0.0.0.0/0 0.0.0.0/0 Chain OUTPUT (policy ACCEPT 4706K packets, 352M bytes) target prot opt in out source destination Chain masq_eth1 (2 references) target prot opt in out source destination LOG all -- * eth1 0.0.0.0/0 0.0.0.0/0 ... LOG all -- * eth1 0.0.0.0/0 0.0.0.0/0 ... ### strace.0322.1958.txt ### open("/lib/iptables/libipt_MASQUERADE.so", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\3\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=3152, ...}) = 0 old_mmap(NULL, 6592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40018000 old_mmap(0x40019000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x40019000 close(3) = 0 socket(PF_INET, SOCK_RAW, IPPROTO_RAW) = 3 getsockopt(3, SOL_IP, 0x40 /* IP_??? */, "nat\0"..., [84]) = 0 getsockopt(3, SOL_IP, 0x41 /* IP_??? */, "nat\0"..., [1748]) = 0 setsockopt(3, SOL_IP, 0x40 /* IP_??? */, "nat\0"..., 1968) = -1 EINVAL (Invalid argument) write(2, "iptables: Invalid argument\n", 27) = 27 exit_group(1) = ?