Hello,

iptables port forwarding is running fine here.

192.168.1.1:82 forwarded to 192.168.1.2:80

``````````````````````
# for 82 > 80 of 192.168.1.2
iptables -A INPUT -p tcp -m tcp --dport 82 -j ACCEPT
iptables -A PREROUTING -t nat -i ${LAN_IFACE} -p tcp --dport 82 -j DNAT --to 
192.168.1.2:80
iptables -A FORWARD -p tcp --dport 82 -i ${LAN_IFACE} -j ACCEPT

iptables -A PREROUTING -t nat -i ${WAN_IFACE} -p tcp --dport 82 -j DNAT --to 
192.168.1.2:80
iptables -A FORWARD -p tcp -d 192.168.1.2 --dport 80 -j ACCEPT
```````````````````````````

How can I forward inside a folder like
192.168.1.1:82 forwarded to 192.168.1.2:80/mysite

I have modified the rules as [.... --to 192.168.1.2:80/mysite ]
but no success. Am I missing anything ?

Thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120524134100.218f4...@shiva.selfip.org

Reply via email to