Ghkfglfgklfhjl

Páginas: 4 (807 palabras) Publicado: 28 de marzo de 2012
Setup an ubuntu router.

taken largely from :

http://www.howtoforge.com/nat-gateway-iptables-port-forwarding-dns-and-dhcp-setup-ubuntu-8.10-server

First install the following packages:

   dchp3-server # obviously
    bind9 # for dns

    Assume for the guide that eth1 is WAN interface and eth0 is LAN interface

1. Set up static interface for lan:
    add this to/etc/network/interfaces:

      auto eth0
    iface eth0 inet static
    address 172.17.207.121
    netmask 255.255.255.0
    broadcast 172.17.207.255
    network 172.17.207.0

2. Set up hostname for LAN:
   
    add this to /etc/hosts:

    172.17.207.121 server.asus.local server asus.local
    # asus.local can be replaced with whatever you want, just be consistent!

3. Set up the DHCP server    replace /etc/dhcp3/dhcpd.conf with this:

      ddns-update-style none;
    option domain-name "asus.local"; #change this to whatever you used above
    option domain-name-servers172.17.207.121, 24.92.226.41; #change the second one to ISP's dns (or other router addres
    option routers 172.17.207.121;
    default-lease-time 42300;
    max-lease-time 84600;
    authoritative;
   log-facility local7;
    subnet 172.17.207.0 netmask 255.255.255.0 {
    range 172.17.207.1 172.17.207.100; #you can expand the range just by changing .100 to .254 or somthing like that
    }

    addthe interface for LAN to /etc/default/dhcp3-server:
         INTERFACES="eth0"




4. Set up DNS

        replace /etc/bind/named.conf with this:

        // This is the primaryconfiguration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
//this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// prime the server with knowledge of the...
Leer documento completo

Regístrate para leer el documento completo.

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS