Hello,
I have read Linux iptables: Port Redirection Example
but I would need some help on port forward.
I have:
public_ip(eth0) --pc--10.10.10.1(eth1)------10.10.10.2--storage
i need acces from internet to storage on port 80
what I tryed:
iptables -t nat -A PREROUTING -p tcp -i eth0 -d publicip --dport 80 -j DNAT --to 10.10.10.2:80
iptables -A FORWARD -p tcp -d 10.10.10.2 --dport 80 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp -m tcp --dport 80 -j ACCEPT
but it still does not work

Reply With Quote
What's wrong? I hope I am not making you uncomfortable...
