iptables -t nat -A PREROUTING -i <ext interface> -p tcp -d <gateway
ip> --dport <req port> -j DNAT --to-dest <webserver ip:webserver port>

iptables -A FORWARD -i <ext interface> -o <int interface> -p tcp
--dport <webserver port> -j ACCEPT



On 7/21/05, SWAPNIL <[EMAIL PROTECTED]> wrote:
> Dear Sir,
> 
> Please find network.png in the link
> http://downloadftp.modular-infotech.com/common/share/network.png
> 
> 
> Router outgoing request handle by "iptables-1.2.7a-2" using following
> command:
> [EMAIL PROTECTED] 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?
> 
> Swapnil K.
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> linux-india-help mailing list
> linux-india-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-india-help
> 


-- 
Shijithlal L V
Fischer Systems India
224 NILA Technopark
Trivandrum 695581
INDIA

Ph:  91 471 2527427
Cell: 91 9349100636
email: [EMAIL PROTECTED],[EMAIL PROTECTED]


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
linux-india-help mailing list
linux-india-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to