Hi all,
I try to use TPROXY to forward a port to another, but it is simly not working.
If all ip6tables chains are empty (I know, it's a security risk, but it's only for testing on private network), and I make the following:
Code:
ip6tables -t mangle -A PREROUTING -i eth0 -p tcp --dport 80 -j TPROXY --on-port 8080
I assume accessing port 80 will be forwarded to an application listening to port 8080, but there is nothing.
I've done:
- modprobe xt_TPROXY
- echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
- tried in new Debian Wheezy and in Ubuntu 12.04 LTS
What did I forgot?
Thanks
Achim