As testing I want to redirect traffic from port 80 at a simply webserver with nc
If I run the follow command:
# iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8081
# nc -l -p 8081
# echo 1 > /proc/sys/net/ipv4/ip_forward
I attend that all request http are shown in output in nc, right?
but the nc output is nothing, empty....
the version of iptables is v1.4.14 something wrong?