debian - IPTABLES error "iptables: No chain/target/match by that name" -
iptables -t nat -a prerouting -p tcp --destination-port 80 -j redirect --to-port 8080
when seek run command, run error:
iptables: no chain/target/match name my iptables version v1.4.14. running debain on linux kernel 3.8.11.
iptables -l outputs:
chain input (policy drop) target prot opt source destination take -- anywhere anywhere ctstate related,established take -- anywhere anywhere take icmp -- anywhere anywhere take udp -- anywhere 224.0.0.251 udp dpt:mdns nfqueue udp -- anywhere anywhere nfqueue num 10000 chain forwards (policy drop) target prot opt source destination chain output (policy drop) target prot opt source destination nfqueue udp -- anywhere 239.255.255.250 udp dpt:1900 nfqueue num 10001 take -- anywhere anywhere ctstate new,related,established take -- anywhere anywhere iptables -t nat -l output:
chain prerouting (policy accept) target prot opt source destination chain input (policy accept) target prot opt source destination chain output (policy accept) target prot opt source destination chain postrouting (policy accept) target prot opt source destination i have no clue problem is, , looked , nobody else has had error setup.
the error means missing iptables redirect module in kernel.
perhaps compiled kernel yourself? need enable/set option
config_ip_nf_target_redirect=m in kernel config , then
make modules create modules_install depmod -ae debian iptables
No comments:
Post a Comment