5

[ubuntu] Redirect to apache2 by iptables

view full story
linux-howto

http://ubuntuforums.org – hi, i have a problem, i create an access point with Internet sharing. this is work fine. i try connect with another pc and i can browse internet. now i want to redirect all client to apache sever ( 127.0.0.1) i try sudo /etc/init.d/apache2 start Code: sudo /etc/init.d/apache2 start now if i go to 127.0.0.1 with my pc i can see the apache server home page. Code: ptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 127.0.0.1:80 Code: iptables -t nat -A POSTROUTING -j MASQUERADE but now the client stop browse. and can't loading web page. Why ? how can i r (Hardware)