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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -