Ubuntu Router Gateway

 
     
  By dougiqk9ba
 
   
     
  On this article you'll learn to setup your very personal ubuntu router web router. The ubuntu router / router will act exactly like any other router which you can buy at the store, besides your linux box may have more functionality and further security. What you'll need to construct your Ubuntu Router Internet Gateway:

* Extra laptop
* (2) Ethernet cards
* Switch
* Ubuntu 8.04 LTS Server Version
* Putty



This article will explain learn how to setup a recent set up of Ubuntu 10.04 server edition, configuring a dhcp server for a neighborhood network,whereas a including a firewall from the nasty internet. The very first thing that you are going to do is a fresh install of the Ubuntu server edition, however choosing only Open SSH server throughout the software installation part of the Ubuntu install. After the set up completes and your computer reboots, you might be then going to need to set a root password (su).

sudo passwd root

After you may have a set a root password, login into root by typing the following command:

su

After you're in super consumer mode (root) we are then going to wish to replace our Ubuntu Bistro. Sort the following instructions to update the os and different programs.

apt-get replace

apt-get upgrade

After your pc updates, restart it.

reboot

Setup Network Cards

vi /etc/network/interfaces

In the instance below my eth0 represents the network interface that connects to the internet and the eth1 interface hooksto the switch. The swap then connects to all your other networked units, equivalent to your gaming system and other networked devices. I added the next code into the /etc/network/interfaces file:

Vi /etc/network/interfaces

auto eth1

iface eth1 inet static

address 192.168.10.1

netmask 255.255.255.0

network 192.168.10.0

broadcast 192.168.10.255

/etc/init.d/networking restart

The subsequent following step just isn't required, however I like to set a hostname for my router, all you need to do is install apache and you may have your individual personal intranet or internet server.

vi /etc/hosts

echo homeserver.gateway.2wire.net > /etc/hostname

/etc/init.d/hostname.sh start

hostname

hostname -f

Ubuntu Hostname

Upon getting accomplished the following above, you should utilize putty to entry your linux machine out of your windows based mostly pc. This may permit you to copy and paste the next code, to hurry up the method of making your linux gateway. The first thing that you must do to make use of putty to configure your Ubuntu gateway, is ready a static ip in your windows machine, since we don't have a dhcp server installed yet. Set a static ip deal with for Microsoft Vista.In the event you do not need to use putty you possibly can simply sort out the remainder of the code, putty simply makes it easier. Once you have chosen your terminal program that your are going to make use of, once more login underneath root. It is now time to put in some software, that we will need to setup the router.

apt-get install dhcp3-server bind9 vim perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
Enable packet forwarding

vi /etc/sysctl.conf

Uncomment the following line to allow packet forwarding for IPv4

net.ipv4.ip_forward=1

echo 1 > /proc/sys/net/ipv4/ip_forward
Install Webmin

Webmin is anther good program to make use of to configure you ubuntu router and different server applications that you simply would possibly use. In case you use webmin, you will be able to easily configure you server, using any net browser you choose.

cd /opt

mkdir webmin

cd /opt/webmin

wget http://prdownloads.sourceforge.web/webadmin/webmin-1.430.tar .gz

tar xzvf webmin-1.430.tar.gz

cd webmin-1.430/

./setup.sh

Throughout installation you will be asked just a few questions, just press enter just a few times. The one factor that you simply wish to change is the port number, person title and password and in addition say yes to SSL.

Ubuntu Webmin
Configure dhcp

Network address - 192.168.10.0

Netmask - 255.255.255.0

Address ranges -192.168.10.100 - 192.168.10.200

After you've gotten entered the the above click on the create button. You should now see a icon that reads 192.168.10.0, click on on this new icon after which click on the Edit Shopper Choices button.

Subnet mask - 255.255.255.0

Default routers - 192.168.10.1

Broadcast address - 192.168.10.255

DNS servers - 192.168.10.1

After you may have the above into the consumer options home windows click the save button twice, which ought to return you to the main Dhcp server window. Inside the dhcp server display, you see a button known as Edit Network Interface, click this button and select eth1 then click save. Now click on the Begin Sever button, for those who see no errors, you're good.
Configure firewall

Input:

Accept if input interface is lo

Accept if input interface is eth0 and state of connection is ESTABLISHED,RELATED

Accept if input interface is eth1

Forward:

Accept if input interface is eth0 and output interface is eth1 and state of connection is ESTABLISHED,RELATED

Accept if input interface is eth1 and output interface is eth0

Now that concludes how to build your own Ubuntu Router Internet Gateway.

 
   
  Article Source: http://interpret.zar.vg   
     
  About The Author
Debian Based Web Gateway
 
     
 
More Articles about: Computer-Certification
 
 
 
  • 3 People That Will Thrive With Microsoft Certification
  • Translation Companies Embrace Technological Advances
  • Are Paralegal Certifications Significant To Promptly Get Hired To Get A Targeted Work Placement?
  • Itil Certification Comprehensive Tool For Service Management
  • Getting Itil Certification Online
  • Itil Certification Bridge Between V2 And V3 Libraries
  • Itil Certification The Best Direction To Excellence
  • Finding The Best Home Theater System For You
  • How To Find The Best Home Theater System For You
  • Examkiller Ibm 000 107 Exam
  • Error 81000306 Msn Or Live Messenger Wouldn't Log In
  • Choosing the Right Keywords for Web Marketing
  • Iis Ssl Certificates: How To Generate A Csr For Your Web Host
  • Help Troubleshoot The Blue Screen Of Death With Bluescreenview
  • Advanced Switching Emulation Available In Cisco Packet Tracer
  • Php Training In Kolkata
  • Why Go For A Ciw Certification?
  • Informatica Professional Certification
  • The Benefits Of Itil Training For Your Business
  • Vmware Training
  • Pa dss And Pabp Do You Know The Difference?
  • Find Microsoft Powerpoint Training In Houston
  • Are You Looking For Microsoft Access Training In Houston?
  • Ccna Training Frame Relay Overview
  • How Many Papers In Mcse
  •  
     
         
         
        © 2012 interpret.zar.vg