Re: How to loop back internal traffic?

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

 



Hi, 
try this
iptables -t nat -A PREROUTING -p tcp --dport 80 -i
ppp0 (or how you call it ) -j DNAT --to-destination
ip_address_of_server_in_internal_network

Regards 
--- Jorge Canas <jcanas2000@xxxxxxxxxxx> wrote:

> Hi,
> 
> I have a machine configured as my gateway: nat, fw &
> dhcp server for other 
> machines inside my local network.  The gw machine
> has a public IP (assigned 
> via DHCP from ISP) and a public domain name (updated
> through ddns).
> 
> I have one of my other internal machines running a
> webserver.  The gw just 
> does port forwarding of external traffic (destined
> for port 80) to this 
> other internal machine.
> 
> How do I configure the firewall rules on the gw so
> that the port forwarding 
> also occurs when my other local network machines try
> to go to the website 
> via the public domain name?
> 
> Thanks.
> 
>
_________________________________________________________________
> Invite your Hotmail contacts to join your friends
> list with Windows Live 
> Spaces 
>
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
> 
> 
> 



 
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 


[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