Im running lighttpd at a custom port and i want to forward port 80 to that port so my custom webserver handles all http requests
Code:# iptables -I INPUT -p tcp --dport 80 -j ACCEPT # iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 80 -j DNAT --to [ROUTER LOCAL IP]:[CUSTOM PORT]
Last edited by clausbruun; 22-02-2007 at 18:27. Reason: Improved it
Hi Clausbruun,
Your command looks right, for the NAT table but did you also need to include a reverse of these on you INPUT table?
Second did you delete the NAT and INPUT settings for ASUS photo share? these will clash with you getting port 80 forwarded
check out new post on 80 >> 8081
Last edited by Gizmo1007; 09-11-2007 at 20:10.