Ubuntu Web Gateway

In this article you will learn how to setup your very own Ubuntu webu.Ubuntu router router router / router will work just as another router that you can buy in the store, unless your Linux box can have greater efficiency and additional security. What you need to build your own Ubuntu Internet Gateway Router:

* Additional PC
* (2) Ethernet Cards
* Switch
* Ubuntu 8.04 LTS Server Edition
* kit

This article will explain tips on how to setup a contemporary setting up Ubuntu Server Edition 10.04, configure the DHCP server for the neighborhood community, and includes a firewall from interneta.Prva embarrassing thing you will do a fresh install of Ubuntu Server edition, but the only choice open SSH server is part of the software is installed on the Ubuntu installation. After the installation completes and the computer reboots, then you are going to want to set a root password (Su).

sudo passwd root

After you set the root password, login to root by typing the following command:


Once you are in a terrible person mode (root), then we're going to have to update our Ubuntu Bistro. Type the following instructions to replace the OS and various programs.

apt-get replaced

apt-get improved

After updating the computer, restart it.


Setting up the network card

vi / etc / network / interfaces

In the case under my eth0 is the network interface that connects to the internet and the eth1 interface connectsto prekidač.Promjena then connects to a completely different networked devices, like your game system and a variety of networked devices. I added the following code in the file / etc / network / interfaces file:

VI / etc / network / interfaces

auto eth1

iface eth1 inet static





/ Etc / init.d / networking re-

The next next step is not necessary, but I want to set the hostname of my router, all it is important to do is install the Apache, and you may be able to have your own private intranet or net server.

vi / etc / hosts

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

/ Etc / init.d / start hostname.sh



Ubuntu Hostname

After you have completed the following up, you can use the kit to join your Linux machine from the windows of your home based mostly pieces. This will help you to copy and paste the following code, how to accelerate the creation of Linux gateway.Prva thing you need to do to use the kit to configure Ubuntu router, set static IP in Windows machine, because we do not have DHCP server installed yet. Setting static IP address Microsoft Vista.In case you do not want to use the kit you simply set aside May the rest of the code, only makes the kit. Once you have selected your terminal program that you are going to use, once more, sign up under the root. Now it's time to put in some software programs that we have setup the gateway.

apt-get install dhcp3-server bind9 energy-SSLeay perl libnet-perl OpenSSL libauthen-PAM-perl libpam-runtime libio-pty-perl-perl libmd5
Allow 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 use for configuring your Ubuntu server, gateway and other programs that you can easily use. If you use Webmin, it is possible for you to easily configure your server using any web browser you choose.

cd / opt

mkdir Webmin

cd / opt / Webmin

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

tar xzvf Webmin-1.430.tar.gz

CD-Webmin 1.430 /

. / setup.sh

During the installation process may require a series of questions, just press Enter a couple of factors puta.Jedan who simply want to change the amount of port, username and password, and to say that the SSL.

Ubuntu Webmin
Configure DHCP

Network Address -

Netmask -

Address ranges - -

Once you have entered above, click on the Create button. You should now see an icon that reads 192.168.10.zero, click on this new icon, then click on the Edit button consumer choices.

Subnet Mask -

Default router -

Broadcast address -

DNS servers -

Once you're up in the options window, click on the consumer Save button twice, you will need to restore the primary DHCP server window. Within the display DHCP server, you'll see the button titled Edit the network interface, click on this button and select eth1 and click Save. Now click the Start button Sever, we should not see errors, you are well.
Configure the firewall


Accept if input interface is lo

Accept if input interface eth0 and state relations, which relate

Accept if input interface is eth1


Accept if input interface eth0 and eth1 and output interface is state of the connection-related

Accept if input interface is eth1 and output interface eth0

Now conclude that to build your own Ubuntu Internet Gateway Router.

Recommended Posts :