iptables, dnat and squid

Gaston Franco gfranco@arcert.gov.ar
Fri, 12 Oct 2001 11:03:08 -0300


Hi!

you can try to "mascarade" your internal network with the external IP
of your firewall... 
( iptables -A PREROUTING -i $INTERNAL_INTERFACE -s $INTERNAL_IP_RANGE -j SNAT --to-source
$EXTERNAL_IP )

I hope that helps.
Bye.
Alexandre Stumpf wrote:
> 
> Hi all,
> I have a linux box as firewall, using iptables and squid.
> I have a internal web server and a DNAT in my firewall to this web
> server. I works ok from my internal network and from internet.
> When I set my clients from internal network to use squid as proxy
> server, they can not access the DNAT to my internal web server.
> I do not have a internal DNS server, and read all FAQ's, guides about
> iptables. Is there a way to resolve this problem without configuring squid ?
> 
> Thanks
> 
> Alex