server in DMZ

John A. Sullivan III john.sullivan at
Thu Sep 2 05:54:55 CEST 2004

On Wed, 2004-09-01 at 23:51, Payal Rathod wrote:
> On Wed, Sep 01, 2004 at 11:24:41PM -0400, Jason Opperisano wrote:
> > i can simplify it to:
> > 
> >   -A FORWARD -p tcp -s -d --dport 80 -j ACCEPT
> Ok easy enough I guess :)
> > > it will block access from my local LAN also via. the squid proxy and yes 
> > > the gateway (squid proxy) machine does have 3 cards.
> > 
> > yes--you're probably right that it would break access from the local LAN
> > in your current configuration
> So, what do I do for such a case?
> -Payal
I think you have confused the issues.  Do not put the source match in
the PREROUTING rule (thus your squid access from the local LAN will not
break).  Do put the source match in the FORWARD rule.  That will
restrict outside access to only  I assume there is already a
FORWARD rule that allows access from the LAN.  Hope this helps - John
John A. Sullivan III
Chief Technology Officer
Nexus Management
+1 207-985-7880
john.sullivan at
If you are interested in helping to develop a GPL enterprise class
VPN/Firewall/Security device management console, please visit 

More information about the netfilter mailing list