Website filtering for OpenVPN clients

Posted by Asche on Server Fault See other posts from Server Fault or by Asche
Published on 2013-06-25T14:06:45Z Indexed on 2013/06/25 16:23 UTC
Read the original article Hit count: 265

Filed under:
|
|
|

I am currently trying to block some websites by their domain names for all the clients of my OpenVPN server.

My first idea was to use the /etc/hosts file. But, its effects seem to be limited to the host only and not to be taken in consideration by OpenVPN.

I then tried to configure bind9 and to interface it with OpenVPN, but that solution was unsuccessful and uneasy to use.

After this, I considered using iptables to drop all the packets from/to those websites but that forum thread made me thought otherwise since iptables' behavior with FQDN may generate complex issues.

Have you got a solution to block websites for all clients using an OpenVPN server on which I am root?

© Server Fault or respective owner

Related posts about unix

Related posts about openvpn