LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can dansguardian block sites without any proxy server? (https://www.linuxquestions.org/questions/linux-newbie-8/can-dansguardian-block-sites-without-any-proxy-server-4175503952/)

unclesamcrazy 05-05-2014 12:27 AM

Can dansguardian block sites without any proxy server?
 
I have ubuntu 12.04 LTS.

I have installed only dansguardian on it. There is no other proxy server like squid on ubuntu 12.04. There is no iptables installed on the system.

'No proxy' option is selected in every browser because there is no proxy on the system.

Can I use dansguardian to block sites in this scenario?

Thanks

NOTE
Sorry, this is my second thread about dansguardian in two days. Moderator can take objection but previous one was not solved that's why I have changed the question, thinking, it can help me.

eklavya 05-05-2014 07:51 AM

You can tell us better, you have installed it without a proxy server.
Are you able to filter sites successfully? :)

unclesamcrazy 05-05-2014 09:49 AM

Thanks for the reply.

No, I am not able to block sites that's why I asked here.
I am not sure that dansguardian itself a proxy server or not. I thought if it is then it should be enough to install only dansguardian to block sites but I can still open the blocked sites.

jefro 05-05-2014 03:58 PM

Did you configure it to block access? Pretty sure you'd need squid or other.

One example but many exist.

http://www.linuxuser.co.uk/tutorials...twork-tutorial

http://jacob.steelsmith.org/content/...g-dansguardian


Locally the sites could be blocked. To protect lan then you'd need to prevent lan access to web. It has to proxy through this server.

eklavya 05-06-2014 01:13 AM

Quote:

Originally Posted by unclesamcrazy (Post 5164963)
I am not sure that dansguardian itself a proxy server or not. I thought if it is then it should be enough to install only dansguardian to block sites but I can still open the blocked sites.

Can you answer me two questions? If you have installed dansguardian and only dansguardian.... no squid... no iptables... only dansguardian...
Then what is the value of parameter
Code:

proxyport =
in the file /etc/dansguardian/dansguardian.conf

and what is the output of
Code:

# netstat -lnp | grep :3128
As jefro said about configuration, I consider that you have configured dansguardian.conf like remove/comment the line
Code:

UNCONFIGURED - Please remove this line after configuration
etcetra etcetra

unclesamcrazy 05-06-2014 09:35 AM

proxyport = 3128
There is no process running on 3128

Yes I have configured dansguardian.

eklavya 05-07-2014 01:09 AM

See, value of proxyport is 3128 in dansguardian configuartion file.
proxyport is the port DansGuardian connects to proxy on.

The default port for squid proxy server is 3128. If you would install squid, you would find it is running on 3128
Quote:

# netstat -lnp | grep :3128
You haven't installed it that's why there is no process on 3128.

The squid's default port is mentioned in dansguardian config file, that's why I think it needs a proxy server to block sites.


All times are GMT -5. The time now is 03:59 AM.