|
I wanto translate all traffic going to port 80 become traffic
for port 80
I use rules: $ipnatadm -W eth0 -O -P all -i -D zoel/32 80 1 -N zoel/32 21 $ipnatadm -W eth0 -I -P all -i -S zoel/32 21 -M zoel/32 80 then $cat /proc/net/ip_nat IP NAT rules id prot src/msk -> dst/msk src-new/msk:port dst-new/msk:port dev ip flag #s-ports #d-ports packets bytes ports(src+dst) 1 0 00000000/00000000->CB82F08A/FFFFFFFF 00000000/00000000:0 CB82F08A/FFFFFFFF:21 eth0 00000000 2 0 2 0 0 80 1 0 0 0 0 0 0 0 0 2 0 CB82F08A/FFFFFFFF->00000000/00000000 CB82F08A/FFFFFFFF:80 00000000/00000000:0 eth0 00000000 1 1 0 0 0 21 0 0 0 0 0 0 0 0 0 So I got upset ,since now other machine cannot telnet to my machine at port 80 ! But they still can ping my machine ! I use kernel 2.1.130 ! Why ? Somebody help me please ?
|
Messages
Outline:
how to debug NAT connections by Michael Hasenstein, 1/04/99