User:Abiprasad91

== TSMG5330 LINUX PROJECT ==

Considering the following scenarios we came up with the best possible solution, which is robust, secure, dynamic and intelligent enough. Our team works on these requirements and we came up with a design, which is discussed within our team about the scope, feasibility, resources and interworking. We have implemented the design once approved by the team and integrated the elements.

TEAM

 * ANKUR GUPTA
 * PALAK TRIPATHI
 * PHANEENDRA
 * ABINAYA PRASAD

MODULES

 * DNS
 * DHCP
 * WEB SERVER
 * FIREWALL

REQUIREMENTS FOR SETUP

 * 1) We require four systems, a DNS server, a DHCP server, a Web server and a client.
 * 2) We require a Linux based Operating System.
 * 3) We use Ubuntu as dual boot in our system.
 * 4) Isc-dhcp is required to configure DHCP server.
 * 5) We require bind9 to configure the DNS server.
 * 6) Apache 2 is used as Web server.

DNS
The DNS or The Domain Name Server maintains a Directory of Domain Names and translate them to Internet Protocol(IP) addresses. It is used when the web page is browsed by the servers and clients and it fetched the actual IP address. The DNS pool uses either the TCP or the UDP protocol which uses the port 80 at the transport layer.

DNS Master Server:
1) Install Bind9 software in Ubuntu  Command: apt-get install bind9 2) Configure      domain in   File: /etc/bind/named.conf.local 3) Configure Slave server details in   File: /etc/bind/named.conf.local 4) Configure type A record in the File: To test IP resolution 7) Configure   File: /etc/bind/rev.192.168.6.10 in-addr.arpa   IP to hostname resolution 8) Test forward and reverse zones. 9) Enter the root user mode to start DNS service.

DNS Slave Service
1) Install bind9  Command: apt-get install bind9 2) Create a domain with the name " " File: /etc/bind/named.conf.local 3) Configure record A enteries  File: /etc/bind/    File: /etc/bind/rev 192.168.6.10.in-addr.arpa 4) Start DNS service using the restart command in Linux

DHCP
Dynamic Host Configuration Protocol(DHCP) is a protocol which enables a server to assign an IP address to a client within a network from a scope of IP addresses for a given network. Computers configured to be DHCP clients have no control over the settings they receive from the DHCP server, and the configuration is transparent to the computer's user. In DHCP the entire process is automated and managed centrally.

DHCP Setup
1) Install dhcp server  Command: sudo apt-get install isc-dhcp-server

2) Enter details such as subnet mask, network address, broadcast address and DHCP address.   Command: sudo nano /etc/dhcp/dhcpd.conf

3) Restart the DHCP server  Command: sudo service isc-dhcp-server restart

WEB SERVER
A Web Server is a program that uses client/server model and the Hyper Text Transfer Protocol, serves the files that form web pages to web users. One of the leading web server, Apache, is used in our model. We use a web server for serving emails, downloading requests for file transfer protocols and building web pages. It works on port 80 by default at transport layer. The web server uses the server side HTTP and the browser uses the client side of the HTTP. When any server client pings the web server our custom made web page, it does so on port 80.

Web Server Configuration
1) Install Apache Web server on Dual Booted System  Command: sudo apt-get install apache2

2) Configure with IP address within the network  Command

3) Modify the index.html file to host a webpage  Command: sudo nano /var/www/index.html

PPTP
We have implemented the Virtual Private Network in our model using the Point to Point Tunneling Protocol.The PPTP is used to ensure that the messages sent from one VPN node to another are secure. We install the PPTP package and configure the pptpd file. Once the client range is assigned and the DNS server configured we can use the IP addresses in the client range to use the Virtual Private Network.

PPTP Server Side
1) Install the pptpd package  Command: sudo apt-get install pptpd

2) Configure the pptpd file  Command: sudo nano /etc/pptpd.conf

3) Add server IP and client IP at the end of file.  Configure DNS for clients to use the PPTP server

1) Configure DNS server for clients to access VPN  Command: sudo nano /etc/ppp/pptpd-options

2) Uncomment ms-dns and add google. Add VPN user  Command: sudo nano /etc/ppp/chap-secrets   The username password and IP addresses are edited accordingly

3) Start your server  Command: /etc/init.d/pptd restart

4) Configure Ipv4 Forwarding

PPTP Client SIde
1) Install pptp package on client side.  Command: sudo apt-get install pptpd

2) Add the Necessary kernal mode  Command: modprobe ppp_mppe

3) Create a new file /etc/ppp/peers/pptpserver

4) Call the pptp server  Command: pppd call pptserver