iptables port redirection wont work for localhost -
i redirect port 80 port 8000 via:
iptables -t nat -a prerouting -p tcp --dport 80 -j redirect --to-ports 8000 the other host can access webserver via 80 port, redirection cannot work in local host when access 127.0.0.1:80.
can port direction work loopback network adapter?
the nat table used network address translation, , used external interfaces. have add rule table handles internal communication well.
Comments
Post a Comment