build a linux networking daemon -- 2

I have a pc with two ethernet connections (SERVER) and another PC with one ethernet connection (CLIENT)

The Client always searches for a DHCP server

The server may either have a remote DHCP server connected (the server gets IP from a remote DHCP server) or may act as a DHCP Server

I want a daemon script (ChangeConnType) which uses the below configuration file

./ChangeConnType 1 [url removed, login to view]

shall change the configuration for DHCP server and iptables accordingly.

The deliverable for this project is:

ChangeConnType code

[url removed, login to view] File

A video taken by the developer taken by the camera of the phone that shows and explains how it works

The video shall show the following 3 cases. The switching between the different cases shall be done automatically. No manual intervention shall be required:

1- SERVER eth0 not connected // CLIENT not connected //SERVER eth1 CONNECTED TO WAN1 (GPRS for our case but you can use an adsl modem for that)

- RESULT: Server gets IP from the GPRS modem (WAN1) (eth1)

2- SERVER eth0 connected to WAN2 // CLIENT not connected // SERVER eth1 CONNECTED TO WAN1

- RESULT: Server goes online from WAN2 (eth0) // Client Cant connect

3- SERVER eth0 connected to CLIENT // CLIENT Connected to Server (eth0) // SERVER eth1 CONNECTED TO WAN1

- RESULT: Server goes online from WAN1 (eth1) // Client connects to WAN from WAN1

[url removed, login to view]:


Connection: 1

//1 ADSL

//2 GPRS

EthernetPort: eth0

GPRS modem: eth1

DHCPMyIP: DHCP IP (Server ethernet port) for GPRS mode:

DHCPClientIP: DHCP IP (Client ethernet port): with gateway as the DHCPMyIP

WANFilter: Allow Client's WAN traffic only to: 92.168.x.x

MACFilter: Allow LAN traffic only from Clients with MAC: 34:12:xx:xx:xx:xx

Scenario 1:

EthernetPort responds to server's DHCP request broadcast (there is a remote DHCP server available)

this means It has an online WAN ability.

Get IP from DHCP and go to wan from here. Dont use the GPRS modem (eth1)

Scenario 2:

Ethernet Port doesnt respond to EthernetPort AND has pending DHCP requests (from clients within the network).

Set Server IP to DHCPMyIP

Give IP to only one Client (DHCPClientIP)

Enable WAN access to the client

Skills: Linux, Shell Script

See more: /etc/network/interfaces ubuntu, network configuration definition, debian configure network command line, /etc/network/interfaces wlan0, debian network configuration, debian restart network, /etc/network/interfaces allow-hotplug, network configuration linux, build linux run xibo digital signage client raspberry, build linux advertising kiosk, axis2 client connection issues, build linux vlc streaming server, linux internet cafe management client, build social networking site aspnet, windows linux networking

About the Employer:
( 29 reviews ) Lefkosa, Turkey

Project ID: #14942618

4 freelancers are bidding on average $165 for this job

$160 USD in 3 days
(23 Reviews)

Feel fee to contact me [login to view URL] me message to discuss further more details .We provide the comments,images,videos,demos and live sessions in order to help the [login to view URL] payment only after the work [login to view URL] yo More

$150 USD in 3 days
(1 Review)

With 7+ years of professional experience in Embedded Linux under networking platform provoked me to bid on this project. I have strong knowledge in C, Shell Scripting and embedded Linux platforms. Relevant Skills and More

$250 USD in 5 days
(2 Reviews)

A proposal has not yet been provided

$100 USD in 3 days
(0 Reviews)