On this article you will learn how to setup your very own ubuntu router internet router. The ubuntu router / router will act exactly like any other router that you would be able to purchase on the store, besides your linux box may have extra functionality and further security. What you'll need to construct your Ubuntu Router Internet Gateway:
* Extra computer
* (2) Ethernet cards
* Switch
* Ubuntu 8.04 LTS Server Edition
* Putty
This text will clarify how one can setup a fresh set up of Ubuntu 10.04 server edition, configuring a dhcp server for a local community,while a including a firewall from the nasty internet. The very first thing that you are going to do is a contemporary install of the Ubuntu server version, however deciding on only Open SSH server in the course of the software program set up section of the Ubuntu install. After the set up completes and your computer reboots, you might be then going to wish to set a root password (su).
sudo passwd root
After you will have a set a root password, login into root by typing the next command:
su
After you're in super user mode (root) we are then going to need to replace our Ubuntu Bistro. Sort the following commands to replace the os and other programs.
apt-get replace
apt-get improve
After your pc updates, restart it.
reboot
Setup Network Cards
vi /etc/network/interfaces
Within the instance below my eth0 represents the network interface that connects to the internet and the eth1 interface connectsto the switch. The swap then connects to all your different networked gadgets, similar to your gaming system and different 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 following following step just isn't required, however I prefer to set a hostname for my gateway, all it's a must to do is set up apache and you would have your own personal intranet or web 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 should utilize putty to access your linux machine out of your windows primarily based pc. It will assist you to copy and paste the following code, to speed up the process of making your linux gateway. The very first thing that you will need to do to make use of putty to configure your Ubuntu gateway, is set a static ip in your windows machine, since we do not have a dhcp server installed yet. Set a static ip address for Microsoft Vista.When you don't want to use putty you possibly can just sort out the rest of the code, putty simply makes it easier. After getting chosen your terminal program that your are going to make use of, once more login underneath root. It is now time to install some software program, that we might want to setup the router.
Uncomment the following line to enable 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 different server applications that you just would possibly use. Should you use webmin, you will be able to easily configure you server, using any net browser you choose.
Throughout set up you will be requested just a few questions, just press enter a few times. The one factor that you wish to change is the port number, user identify 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 have entered the the above click on the create button. You must now see a icon that reads 192.168.10.0, click on on this new icon and then click on on the Edit Shopper Options 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've got the above into the consumer options home windows click the save button twice, which ought to return you to the primary Dhcp server window. Inside the dhcp server screen, you see a button known as Edit Network Interface, click this button and choose eth1 then click save. Now click on on the Begin Sever button, in case 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
Ubuntu LAN Router In this article you will learn to setup your very own ubuntu router web gateway. The ubuntu router / gateway will act precisely like any other router that you may purchase on the store, except your linux box will have more performance and extra security. ......
Debian Based Internet Gateway In this article you will discover ways to setup your very own ubuntu router internet gateway. The ubuntu router / gateway will act exactly like some other router that you could purchase at the store, besides your linux box could have extra functionality a......
Debian Based Router On this article you will learn how to setup your very own ubuntu router internet gateway. The ubuntu router / router will act precisely like some other router that you can buy on the store, except your linux box could have extra functionality and further ......
How to put a Live Streaming Video Webcam on your Website This article describes in detail how to put a live streaming webcam on your Website. A live streaming webcam is a webcam that broadcasts a continuous video stream with both audio and video. It is just like television. You can see and hear a video broadcas......
Setup Internet Connection To Digital Video Recorder Behind Router This is first article from two part series looking at the seemingly easy task of setting up Internet connection to security DVR. While this article will focus on general steps involved in proper connection forwarding to CCTV DVR, the part two is all about......