Closed

DNS filtering on Linux Bind

Hello,

The goal of this project is to create a DNS filter on server.

ex: DNS server IP is : [url removed, login to view]

An end user will use that DNS server (ex: [url removed, login to view]) on his PC (user IP is ex: [url removed, login to view])

1) DNS server will compare the url to a list of blacklist words

ex: if url contains "sex (ex: [url removed, login to view]) "-> DNS server will redirect to [url removed, login to view]

2) if url does not contain forbidden word, then it will relay the request to another DNS server (google DNS server 8.8.8.8)

3) Call a php script with 2 parameters:

user IP: [url removed, login to view] and url (ex: [url removed, login to view])

so I have a log record of user and accessed site.

Linux root access is of course provided.

FULL COMPLETED scenario:



The goal is to provide a simple internet content filter.
It is a server side solution, on LINUX (SSH root provided)


Scenario
User1 whose IP is 100.100.100.100 has changed on his PC his DNS setting to point to 200.200.200.200

User1 tries to navigate to sex.com

- Server receives request from 100.100.100.100
- he tries to read 100.100.100.100.txt file that contains blacklist of forbidden words.
If “sex” is inside that, then server 100.100.100.100, logs this activity into a log file:
log_100.100.100.100.txt that contains
01/09/2013;17:47:41;sex.com;forbidden
- Server redirects to http://mysite.com/forbidden.php

- if “sex” is not in 100.100.100.100.txt file, the request is relayed to opendns server
(208.67.222.123 , 208.67.220.123) that will examine the request.

- if opendns redirects to forbidden page (url is: block.opendns.com), insert into log:
01/09/2013;17:47:41;sex.com;forbidden
- Server redirects to http://mysite.com/forbidden.php

- if opendns does not redirect to forbidden page, insert
01/09/2013;17:47:41;sex.com;allow


Some info about how to relay to openDns is available at :
https://store.opendns.com/setup/operatingsystem/bind

Skills: DNS, Linux, Shell Script, System Admin, UNIX

See more: bind dns blacklist redirect, linux dns filter, linux dns url filter, dns request filtering, dns bind, linux filter dns, linux dns filtering, dns filter linux, linux bind dns blacklist, dns redirect, blacklist ip, bind, architecture linux server, php linux word, linux dns bind filter, bind url filter, dns record, linux call, script parameters linux, sex site create, filtering dns server, linux script log, bind request filtering, dns server bind filter, dns list

About the Employer:
( 121 reviews ) Lille, France

Project ID: #4734377

28 freelancers are bidding on average €439 for this job

nknk

I am an experienced Linux system administrator and DNS setup expert. I will perform the setup, tuning and provide further support of the project for you. I'm available online in Yahoo!/Jabber/Facebook/MSN and ready to More

€263 EUR in 5 days
(211 Reviews)
7.1
linuxfreak1985

Hi there, i am very interested to complete this project. please see my past reviews related to system administration lets complete this project

€773 EUR in 4 days
(208 Reviews)
7.1
zeuner

Due to past work on custom captive portals, I am familiar with different redirect techniques, including DNS. The approach you are describing might not work as you expect it. We can discuss a possible solution on your P More

€1425 EUR in 20 days
(7 Reviews)
6.8
expatdev

Hi, I would like to work on your project. Please look at my private message for details. Thanks.

€420 EUR in 3 days
(40 Reviews)
6.0
iosifpeterfi

Hello, I am a Linux expert with over 10 years of background as a developer. Please check PM for the approach i'm proposing for this project.

€631 EUR in 14 days
(26 Reviews)
6.0
vili1977

I can help you.

€250 EUR in 3 days
(73 Reviews)
5.2
turaab

your above 2 requirements are quite easy to implement but i could not understand the 3rd one. How can BIND call a php ?

€250 EUR in 1 day
(59 Reviews)
5.0
xuniltech

Experienced with linux and bind, lets finish this.

€555 EUR in 3 days
(23 Reviews)
5.0
klarakarl

Hi Consider using a transparent proxy (the client does not need to configure proxy settings in the browser and http trafic is transparently forwarded through proxy on the router) Proxies like Squid can do the trick a More

€555 EUR in 3 days
(18 Reviews)
4.9
rmmarconi

Please see my PM.

€684 EUR in 5 days
(10 Reviews)
4.4
lecyberian

I have over 10+ Years of experience with Linux , Unix Servers, Data centers and VMware ESXi expertise. I can do this project. Lets get started

€700 EUR in 7 days
(10 Reviews)
4.2
sumitgarg44

I am a experienced Linux admin and can help you in this

€277 EUR in 3 days
(19 Reviews)
4.2
tomuffner

I can do this project for you. Please see PM

€250 EUR in 5 days
(12 Reviews)
3.6
linuxien2011

Hi I'm ready to do it. Best Regards

€555 EUR in 15 days
(7 Reviews)
3.2
octaviand

Hello, I just made a demo for you . Please check PM for demo DNS server

€277 EUR in 2 days
(2 Reviews)
2.8
adrianlambeck

please the private message

€277 EUR in 2 days
(1 Review)
2.8
b4rni

Hi, I`m ready to catch this. Have performed similar project in the past - based on the different solution - can suggest a little bit different solution - but fulfilling Your expectation - there is common method to pe More

€333 EUR in 3 days
(3 Reviews)
1.9
buntovnik

Please see PM.

€300 EUR in 3 days
(2 Reviews)
1.9
avudz

Hi, I am ready to start ;) thanks

€250 EUR in 1 day
(2 Reviews)
1.5
Abubakar35

I already done this kind of work .... Read PMB.

€250 EUR in 4 days
(0 Reviews)
0.0