Squid DansGuardian iptables on YDL3.0

Geoffrey S. Mendelson yellowdog-general@lists.terrasoftsolutions.com
Wed, 01 Sep 2004 20:34:59 +0300 (IDT)


Ward Family wrote:
> Thanks Derick, 
> 
> But perhaps I have a more fundamental problem in that whether using Lokkit
> or attempting to modify th eiptables directly, no setting seem to take. As
> root, I cannot even seem to turn off the firewall, let alone adjust
> configuration settings. Has anyone ever encountered this before?

try this:

#!/bin/bash
echo "starting firewall"
export PATH=":/sbin:/usr/sbin:/bin/:/usr/bin:$PATH"


/sbin/iptables -t nat -F
/sbin/iptables  -F
/sbin/iptables -P FORWARD ACCEPT
/sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
 
(replace eth1 with the correct interface, possibly ppp0)

echo 1 >/proc/sys/net/ipv4/ip_forward
#iptables -L

-- 
Geoffrey S. Mendelson, C.T.O. GW&T Ltd., Jerusalem Israel
gsm@mendelson.com gsm@gwandt.com
IL Voice: 972-544-608-069  IL Fax: 972-2-648-1443 U.S. Voice: 1-215-821-1838