Need help with iptables...
:newbie:
I got iptables on my router. In my LAN I got a webserver. I need to forward requests to it, but cant figure it out.... anyone can help me?? iptables -t nat -A PREROUTING -p tcp --source-port 80 -s 62.240.165.131 -j DNAT --to-destination 192.168.1.10:80 iptables -A FORWARD -i eth0 -o eth1 -p tcp --dport 80 -d 192.168.1.10 -j ACCEPT what am I doing wrong? |
This should be what you are after.
iptables -A ALLOW_PORTS -m state --state NEW -p tcp --dport 80 -j ACCEPT iptables -t nat -A PREROUTING -i eth0 -p tcp -d 62.240.165.131 --dport 80 -j DNAT --to-destination 192.168.1.10:80 Brian1 |
Quote:
I really dont know what to do now :cry: |
Post your entire iptables script.
Brian1 |
All times are GMT -5. The time now is 02:07 AM. |