Just to update you, thanks for all your advice but maybe I should have gone straight in and plumped with Squid, this I have now done. I have over the last few days got to grips with Squid and DansGuardian. So I can restrict Internet access using ACLs in Squid.
I have found another post here (
http://www.linuxquestions.org/questi...r+dansguardian) giving details of how to make sure only DG is used to access the Internet.:
# allow only squid to be able to connect to port 80
iptables -A OUTPUT -p tcp --dport 80 -m owner ! --uid-owner squid -j REJECT --reject-with tcp-reset
#allow only DG to be able to connect to 3128.
iptables -A OUTPUT -p tcp --dport 3128 -m owner ! --cmd-owner dansguardian -j REJECT --reject-with tcp-reset
After I have run DG from the cmd line and typed in the two iptable instructions it seems to work OK but would like DG to always to start when the machine strts and also tghe iptable redirection to be permanent.
However, Squid starts OK when the machine is booted but DG does not, I have added DG to the services to start using chkconfig and if I list the services, it is in the list of running services for runlevel 3 and 5. However it will not accept browser requests (the browser has 127.0.0.1:8080 set as the proxy) until on the cmd line I type dansguardian on.
I an attmept to get it to run automatically I have put:
dansguardian on
iptables -A OUTPUT -p tcp --dport 80 -m owner ! --uid-owner squid -j REJECT --reject-with tcp-reset
iptables -A OUTPUT -p tcp --dport 3128 -m owner ! --cmd-owner dansguardian -j REJECT --reject-with tcp-reset
in the boot.local script, the redirection using iptables seems to be OK but I still have to manual start dg on the comd line.
Also, if I start the SuseFirewall the iptable routing rules are obliterated and the internet is accessable directly without using Squid or DG.
Basically, how do I configure DG to be running after the machine has started and how can I run the firewall and have port 80 only accessible by Squid and port 3128 only asscessable to DG?
Thanks for any leads, I feel I have learnt a lot over the last few weeks and certainly know a lot mor about Linux than I did but these two last niggles just need ironing out and it will be marvoulous.