Re: help for iptables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>Router outgoing request handle by "iptables-1.2.7a-2" using following
>command:
>[root@gw-host8 root]# iptables -t nat -A POSTROUTING -s 192.168.1.2 -d
>202.56.54.10 -j MASQUERADE
>
>I have got a query about how to handle incoming requests for local webserver
>using routers static IP address?

You need to reserve a port on the router which will forward to the local 
webserver, e.g.

iptables -t nat -A PREROUTING -s 202.56.54.10 -p tcp --dport 8000 -j DNAT 
--to-dest 192.168.1.1:80



Jan Engelhardt
-- 
| Alphagate Systems, http://alphagate.hopto.org/


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux