joi, 31 ianuarie 2013

Ubuntu Web Gateway - Technology

In this article you'll learn to setup your very personal ubuntu router internet gateway. The ubuntu router / gateway will act precisely like every other router you could purchase at the retailer, besides your linux field will have more functionality and further security. What you will have to construct your Ubuntu Router Internet Gateway:

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

This text will clarify find out how to setup a fresh set up of Ubuntu 10.04 server edition, configuring a dhcp server for a neighborhood network,while a together with a firewall from the nasty internet. The first thing that you're going to do is a recent install of the Ubuntu server edition, but selecting only Open SSH server during the software set up section of the Ubuntu install. After the set up completes and your laptop reboots, you might be then going to want to set a root password (su).

sudo passwd root

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

su

After you're in tremendous user mode (root) we're then going to need to update our Ubuntu Bistro. Type the next instructions to replace the os and other programs.

apt-get replace

apt-get improve

After your computer updates, restart it.

reboot

Setup Network Cards

vi /etc/network/interfaces

In the instance below my eth0 represents the community interface that connects to the internet and the eth1 interface connectsto the switch. The swap then connects to your entire other networked gadgets, comparable to your gaming system and different networked devices. I added the following 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 isn't required, however I like to set a hostname for my gateway, all you must do is set up apache and you possibly can have your personal personal 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

Once you have accomplished the following above, you should use putty to entry your linux machine out of your windows based pc. It will can help you copy and paste the next code, to speed up the process of making your linux router. The very first thing that you need to do to use 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.If you happen to do not need to use putty you possibly can just type 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, again login under root. It is now time to install some software, that we will need to setup the gateway.

apt-get install dhcp3-server bind9 vim perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perlAllow 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_forwardInstall Webmin

Webmin is anther good program to make use of to configure you ubuntu gateway and different server applications that you just may use. If you use webmin, it is possible for you to to simply configure your server, using any internet browser you choose.

cd /opt

mkdir webmin

cd /opt/webmin

wget /webadmin/webmin-1.430.tar.gz

tar xzvf webmin-1.430.tar.gz

cd webmin-1.430/

./setup.sh

During set up you'll be requested a couple of questions, simply press enter a couple of times. The only factor that you want to change is the port number, consumer identify and password and also say yes to SSL.

Ubuntu WebminConfigure dhcp

Network address - 192.168.10.0

Netmask - 255.255.255.0

Address ranges -192.168.10.100 - 192.168.10.200

After you could have entered the the above click on the create button. You must now see a icon that reads 192.168.10.zero, click on this new icon and then click 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 have got the above into the consumer options home windows click the save button twice, which should return you to the main Dhcp server window. Contained in the dhcp server display, you see a button called Edit Network Interface, click on this button and choose eth1 then click save. Now click on on the Begin Sever button, in case you see no errors, you are 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.



access point vs router

Niciun comentariu:

Trimiteți un comentariu