build a linux networking daemon

In Progress Posted 6 years ago Paid on delivery
In Progress Paid on delivery

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: 192.168.1.1

DHCPClientIP: DHCP IP (Client ethernet port): 192.168.1.2 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

NO UPFRONT PAYMENT WILL BE MADE.

Linux Shell Script

Project ID: #14937362

About the project

4 proposals Remote project Active 6 years ago

Awarded to:

nubelo_OHfu5FzC

I can do it right now if you give me a milestone to start like, half of this and, I will use shell script running in background after some seconds to make it works. Cheers! Habilidades e Experiência Relevantes S More

$255 USD in 1 day
(0 Reviews)
0.0

4 freelancers are bidding on average $190 for this job

toshazed

Configure an Ubuntu system as a router Relevant Skills and Experience I am Ring. I am about 16+ years experienced in GNU/Linux based system, server installation and customization, develop, deploy, security and support More

$200 USD in 2 days
(2 Reviews)
2.5