Iptables Redirect Script Improvement

Closed - This job posting has been filled and work has been completed.
Web, Mobile & Software Dev Scripts & Utilities Posted 3 years ago

Fixed Price

Budget: $40
Delivery by October 17, 2013

Start Date

September 16, 2013


Below is an explanation of what is required:
1. Currently, an authorized IP is the only access to the dns server But we have another server which is where the client should be able to connect to while he is using the dns server In short, we would like you to upgrade the esixting iptables script that should redirects a dns query to dns server whilst the client is using the dns server

2. An existing script called iptables_execute.sh is already in existent to solve the access control for dns by fetching the client IPs to a file from the mysql db to create the appropriate iptables rules for client access.

A file of IP's is in the form of:

3. We would like you to extend the existing script, setup dns server on as well as add a dns_server column to the existing database on The final database columns are:

user_info | user_ip | dns_server

4. The script should modify the files (iptables_mysql & iptables_mysql.current) to include the dns server IP for a particular client IP.

An example would be: (Note: a space between the 2 ips in a line)

5. So the client in IP while using the dns server should be redirected to the dns server and so on for the other client ips.

6. Make sure that only server can access dns server

7. If the dns_server for the client is the same as, then no redirection should occur.

About the Client

(0.00) 1 review

Doha 07:10 PM

7 Jobs Posted
29% Hire Rate, 1 Open Job

$0 Total Spent
2 Hires, 0 Active

Member Since Sep 15, 2013