Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: icemannz on August 01, 2011, 04:28:52 AM

Title: Dans Guardian on sme 7.5.1
Post by: icemannz on August 01, 2011, 04:28:52 AM
Hi all,
I have used sme now for some time but after upgrading to version 7.5.1 and putting on Dans Guardian,
I can do longer add users to the list that are allowed to go anywhere on the internet.
I used to do it using the following commands:
config setprop squid BypassProxyFrom 192.168.2.1,192.168.2.31
config setprop squid BypassProxyTo 202.146.186.160,202.124.110.234
expand-template /etc/rc.d/init.d/masq
/etc/init.d/masq restart

This is accepted ok but when I run the last command /etc/init.d/masq restart, here is the error that I get:
[root@mail ~]# /etc/init.d/masq restart

Shutting down IP masquerade and firewall rules:         Done!

Enabling IP masquerading: Bad argument `0.0.0.0/0'
Try `iptables -h' or 'iptables --help' for more information.
done

Any help solving this would be appreciated.
Title: Re: Dans Guardian on sme 7.5.1
Post by: CharlieBrady on August 01, 2011, 04:50:49 AM
If you do:

/etc/rc.d/init.d/masq stop
sh -x /etc/rc.d/init.d/masq start

you should be able to spot where 0.0.0.0/0 is being used, and is not being accepted by the iptables command.

BTW, Dan's Guardian is off-topic for this particular forum.
Title: Re: Dans Guardian on sme 7.5.1
Post by: icemannz on August 01, 2011, 05:29:52 AM
Hi, I can't run that command as I am remote to the server and it is a fairly long drive to get there.
Where should I put this question if it is not supposed to be in this section.
Title: Re: Dans Guardian on sme 7.5.1
Post by: CharlieBrady on August 02, 2011, 03:51:20 PM
Where should I put this question if it is not supposed to be in this section.

My mistake - your duplicate post is the one in the wrong forum.

Title: Re: Dans Guardian on sme 7.5.1
Post by: CharlieBrady on August 02, 2011, 03:56:26 PM
Hi, I can't run that command as I am remote to the server and it is a fairly long drive to get there.

You should be able to run the commands on one line:

sh -x /etc/rc.d/init.d/masq stop ; sh -x /etc/rc.d/init.d/masq start

You should also open a bug report, and attach /etc/rc.d/init.d/masq.