Ubuntu Router Internet Gateway
On this article you will discover ways to setup your very own ubuntu router web gateway
. The ubuntu router / router will act exactly like another router that you could buy at the retailer, except your linux field could have more performance and extra security. What you have to to build your Ubuntu Router Internet Gateway:
* Extra computer
* (2) Ethernet cards
* Switch
* Ubuntu 8.04 LTS Server Version
* Putty
This article will clarify find out how to setup a fresh install of Ubuntu 10.04 server edition, configuring a dhcp server for a neighborhood community,while a including a firewall from the nasty internet. The first thing that you are going to do is a contemporary set up of the Ubuntu server version, however choosing solely Open SSH server throughout the software set up section of the Ubuntu install. After the set up completes and your computer reboots, you are then going to want to set a root password (su).
sudo passwd root
After you've got a set a root password, login into root by typing the following command:
su
After you might be in tremendous consumer mode (root) we're then going to need to replace our Ubuntu Bistro. Sort the following instructions to update the os and different programs.
apt-get update
apt-get improve
After your pc updates, restart it.
reboot
Setup Network Cards
vi /etc/network/interfaces
Within the example below my eth0 represents the network interface that connects to the web and the eth1 interface connectsto the switch. The switch then connects to your whole different networked units, such as 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 will not be required, but I prefer to set a hostname for my router, all it's important to do is set up apache and you may have your own private intranet or net 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 next above, you can use putty to access your linux machine out of your windows based pc. This may can help you copy and paste the following code, to speed up the method of making your linux gateway. The very first thing that you should do to make use of putty to configure your Ubuntu router, is ready a static ip on your windows machine, since we do not have a dhcp server installed yet. Set a static ip handle for Microsoft Vista.For those who don't want to use putty you can just type out the remainder of the code, putty simply makes it easier. After you have chosen your terminal program that your are going to make use of, again login beneath root. It is now time to install some software, that we will need to setup the router.
apt-get set up 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 next 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 gateway and other server applications that you simply would possibly use. When you use webmin, it is possible for you to to easily configure you server, using any web browser you choose.
cd /opt
mkdir webmin
cd /opt/webmin
wget http://prdownloads.sourceforge.internet/webadmin/webmin-1.430.tar.gz
tar xzvf webmin-1.430.tar.gz
cd webmin-1.430/
./setup.sh
During set up you can be asked just a few questions, just press enter a couple of times. The one factor that you wish to change is the port number, consumer name 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 on the create button. You need to now see a icon that reads 192.168.10.zero, click on this new icon and then click on the Edit Consumer 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 have got the above into the client options windows click the save button twice, which should return you to the main Dhcp server window. Inside the dhcp server display screen, you see a button known as Edit Community Interface, click on this button and select eth1 then click save. Now click on on the Start Sever button, should you see no errors, you might be 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.
by: dougiqk9ba
How Would You Mount Linux System When The Superblock Is Corrupted? Google Moves From The Red Mainland Kqc Red Devil Tourmaline & Ceramic Flat Iron The Ideal Hairstyling Tool linux in cbitss Coping With Your Red Face Planning A Long Grand Cayman Vacation? Follow These Suggestions To Grab Red Hot Discounts Grand Caym Planning A Exotic St Lucia Adventure? Learn How To Grab Red Hot Prices St Lucia Hotels Right Now! Trying To Book Texas Budget Trips? Pay Attention To These Instructions On How To Get Red Hot Package Updating Linux Device Drivers Taking A Exotic Hawaiian Honeymoon? It Is A Piece Of Cake To Locate Red Hot Hawaiian Excursion Packa Wanting To Take A Beautiful Hawaiian Excursion? It Is No Problem To Find Red Hot Hawaiian Getaway Ra The Sony Ericsson Vivaz Red Offers An Impressively Powerful 8.1 Megapixel Camera The Sony Ericsson Vivaz Red With A Large Tft Resistive Display