REDIRECT differences in 2.6.12.2

Patrick McHardy kaber at trash.net
Sat Jul 9 16:52:05 CEST 2005


Dirk Morris wrote:
> eve: iptables -t nat -A PREROUTING -p tcp --destination-port 1234 -j 
> REDIRECT --to-port 1234
> eve: echo 255 > /proc/sys/net/ipv4/netfilter/ip_conntrack_log_invalid
> eve: nc -p -l 1234
> 
> alice: telnet bob 1234
> 
> messages on eve (192.168.2.2) shows:
> 
> Jul  8 11:47:34 cartman kernel: ip_ct_tcp: invalid packet ignored IN= 
> OUT= PHYSIN=eth0 SRC=192.168.2.1 DST=192.168.2.3 LEN=60 TOS=0x10 
> PREC=0x00 TTL=64 ID=18927 DF PROTO=TCP SPT=33080 DPT=1234 SEQ=1119072953 
> ACK=0 WINDOW=5840 RES=0x00 SYN URGP=0 OPT 
> (020405B40402080A18B1070F0000000001030307)

You didn't mention anything about a bridge. Please describe your setup
in full detail. And please use IPs instead of names.

Regards
Patrick



More information about the netfilter-devel mailing list