Ubuntu Gateway Internet Router

About this article you’ll uncover methods to setup your very personal ubuntu router web router. The ubuntu router / gateway will act the same as another router for you to buy around the store, besides your linux area might have more functionality and additional security. What you will need to construct your Ubuntu Router Internet Gateway:

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

This information will explain techniques to create a current setup of Ubuntu 10.04 server edition, setting up a dhcp server for any neighborhood,whilst a together with a firewall in the nasty internet. The very first factor that you simply is going to do is really a contemporary install from the Ubuntu server version, however selecting exclusively Open SSH server throughout the program installation portion of the Ubuntu install. Following the installation completes as well as your laptop reboots, you are then gonna need to set a root password (su).

sudo passwd root

After you’ll have a set a root password, login into root by typing the next command:


After you are in tremendous user mode (root) we’re then likely to wish to replace our Ubuntu Bistro. Kind the next instructions to update the os along with other programs.

apt-get replace

apt-get upgrade

After your pc updates, restart it.


Setup Network Cards

mire /etc/network/connects

Inside the instance below my eth0 signifies the city interface that connects to the web and also the eth1 interface hooksto the switch. The switch then connects for your entirely unique networked models, similar to your gaming console along with other networked products. I added the following code in to the /etc/network/connects file:

Mire /etc/network/connects

auto eth1

iface eth1 inet static


netmask 255.255.255.

network 192.168.10.


/etc/init.d/networking restart

The following following step isn’t needed, however would rather set a hostname in my gateway, all you need to do is to establish apache and you may have one’s own intranet or internet server.

mire /etc/hosts

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

/etc/init.d/hostname.sh start


hostname -f

Ubuntu Hostname

After you have completed the next above, you need to use putty to gain access to your linux machine from your home windows primarily based pc. This might enables you to copy the next code, to be quick the technique of creating your linux gateway. The initial factor that you ought to do in order to use putty to configure your Ubuntu router, is placed a static ip in your house home windows machine, since we do not have a dhcp server place in yet. Set a static ip cope with for Microsoft Vista.In case you don’t want to make use of putty you’ll have the ability to just kind out the rest of the code, putty just causes it to be simpler. After you have selected your terminal program that the are likely to take advantage of, once again login below root. It is time for you to install some computer software, that we’ll have to setup the gateway.

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

mire /etc/sysctl.conf

Uncomment the next line to allow packet sending for IPv4


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

Webmin is anther good program to make use of to configure you ubuntu gateway and various server packages that you’d possibly use. In case you use webmin, you’ll have the ability to easily , using any internet browser you select.

compact disc /opt

mkdir webmin

compact disc /opt/webmin


tar xzvf webmin-1.430.tar.gz

compact disc webmin-1.430/


Throughout setup you’ll be asked for a couple of questions, just press enter numerous occasions. The only real factor that you just desire to change may be the port quantity, consumer identify and password as well as agree SSL.

Ubuntu Webmin Configure dhcp

Network address – 192.168.10.

Netmask – 255.255.255.

Address ranges - –

Once you have got joined the the above mentioned click around the create button. It is advisable to now visit a icon that reads 192.168.10., click about this new icon then click the Edit Client Options button.

Subnet mask – 255.255.255.

Default hubs –

Broadcast address –

DNS servers –

After you have become the above mentioned in to the client options home home windows click on the save button two times, which must return you to definitely the key Dhcp server window. Within the dhcp server display, the thing is a control button known to as Edit Network Interface, click this button and select eth1 then click save. Now click around the Begin Sever button, if you notice no errors, you may be good. Configure firewall


Accept if input interface is lo

Accept if input interface is eth0 and condition of connection is made,Associated

Accept if input interface is eth1


Accept if input interface is eth0 and output interface is eth1 and condition of connection is made,Associated

Accept if input interface is eth1 and output interface is eth0

Since concludes building your personal Ubuntu Router Internet Gateway.

Leave a comment

Your email address will not be published. Required fields are marked *