I am running DNS server on 8053 and HTTP server on 8080. I have 2 lines:
iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 8080
iptables -A PREROUTING -t nat -p udp --dport 53 -j REDIRECT --to-ports 8053
The first line works, I can go to port 80 and get http. But second one does not. If I run my DNS on 53 as root, it works. But if I run as non root and iptables REDIRECT, it does not answer dig:
dig @127.0.0.1 -p53 pro.uptime.com
Help?