I have a local web server on 12345 port(can't change) and I want to forward port it from lo via iptables in command line. Forwarding is allowed.
`iptables -t nat -A PREROUTING -i lo -p tcp --dport 8080 -j DNAT --to-destination 10.0.2.15:12:125`
. No errors, but when I log in from the browser (127.0.0.1:8080) does not work. When I go to the ip server (10.0.2.15:12345) everything works fine. What am I doing wrong?
Sorry, if there are many mistakes in the text, it was translated from Ukrainian using Google Translate.