Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

How-To: Set up a LAN gateway with DHCP, Dynamic DNS and iptables on Debian Etch — page 3 — DHCP server

Posted by chantra on 29th June 2008

2. DHCP server

In order to provide an IP address to the other machines in the network, we need to use a DHCP server.
This DHCP server will provide the host with all the information needed to connect to any other accessible host. i.e, the IP, netmask, gateway, domain name server.
The DHCP server will also update bind with a nt set of hostname and IP when the client is requesting a specific hostname.

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: Set up a LAN gateway with DHCP, Dynamic DNS and iptables on Debian Etch — page 2 — DNS server

Posted by chantra on 29th June 2008

1. DNS server

As a DNS server we are going to use bind9, it will be configured to resolve the names of the host for our network lan.debuntu.local.

The DNS server will also accept dynamic DNS update from the local DHCP server.

In this tutorial, I will be using the Dynamic DNS feature of bind.

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: Set up a LAN gateway with DHCP, Dynamic DNS and iptables on Debian Etch

Posted by chantra on 29th June 2008

Linux is a perfect platform to act as a router/gateway.

In this tutorial, I will explain how to set up a Linux box to operate as a network router. The box will provide the following services:

  • DHCP server to provide the ip addresses to the machines in the LAN
  • DNS server to resolve domain names
  • Gateway with IP tables to give access to the Internet.
  • Firewall with IP tables.

The resulting machine will have quite a small footprint: about 600M, and except if your network is intensively used, a low spec computer can be recycled to do the job.

As the machine is going to operate as a router/firewall

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: copy files over the network and preserve file permissions and informations with ssh and rsync

Posted by chantra on 20th June 2008

When copying files over the network, the files informations can be modified.

When using cp, one can avoid this issue by using the -a which will do the copy in archive mode, meaning that it will keep the links, preserve mode, ownership and timestamps and the copy is recursive.

the solution to this over the network is rsync alongside with ssh.

Read the rest of this entry »

Tags: , , ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: Intel Wireless 4965 AGN with Ad-Hoc network + WEP

Posted by chantra on 20th June 2008

The Intel wireless card 4965 AGN does not work properly on ad-hoc networks since hardy and kernel 2.6.24 or around, network-manager can't get it to use the mode ad-hoc and a standard configuration like:

$ sudo iwconfig wlan0 essid myessid mode ad-hoc channel X key s:mykey13charss
$ sudo dhclient wlan0

will fail to get an ip except a long battle at dhclient'ing around.

I managed to get a process to get things working faster.

Read the rest of this entry »

Tags: ,
Posted in HowTo, Networking, System | No Comments »

How-To: Connect to a Cisco VPN with vpnc

Posted by chantra on 11th August 2007

This tutorial will show how-to connect to a Cisco VPN Concentrator using vpnc.

vpnc is a VPN client compatible with cisco3000 VPN Concentrator which runs in userspace and uses the tun kernel module.

Read the rest of this entry »

Tags: , ,
Posted in Administration, HowTo, Networking | No Comments »

How-To: Unattended Ubuntu Deployment over Network — page 5 — Preseed File

Posted by chantra on 23rd June 2007

This entry is part 4 of 5 in the series How-To: Unattended Ubuntu Deployment over Network

5. Preseed: Installation automation:

Like Red Hat's kickstart file, Debian based distribution can use a preseed file. The preseed file will contain the different information that the installer will require in order to proceed with the installation.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: Unattended Ubuntu Deployment over Network — page 4 — PXELinux

Posted by chantra on 23rd June 2007

This entry is part 4 of 5 in the series How-To: Unattended Ubuntu Deployment over Network

4. PXELinux

PXELinux is a boot loader similar to syslinux. As syslinux is used for booting from a CD, Pxelinux is designed for PXE booting.

To get PXE Boot Loader and anything required to set up a netboot install, you will need to get the archive netboot.tar.gz from ubuntu repositories.

Let's go to our TFTP server root directory and get PXELinux set up.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: Unattended Ubuntu Deployment over Network — page 3 — TFTP server

Posted by chantra on 23rd June 2007

This entry is part 3 of 5 in the series How-To: Unattended Ubuntu Deployment over Network

3. TFTP server

There is a couple of tftp server around there. The one chosen for this tutorial is tftpd-hpa does the job.tftpd package could not handle PXE protocol.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: Unattended Ubuntu Deployment over Network — page 2 — DHCP server

Posted by chantra on 23rd June 2007

This entry is part 2 of 5 in the series How-To: Unattended Ubuntu Deployment over Network

For the purpose of this tutorial, I decided to choose dnsmasq to act as a DNS/DHCP server. The reason behind this is that dnsmasq is simple to configure and does a good job in providing DNS and DHCP services for a small LAN.

2. DHCP server:

The DHCP server is going to be involved twice in this scenario. First, when our client is going to boot on its network interface, the DHCP server is going to provide the client with an IP address to be able to communicate with other servers. Also, on this first contact, the DHCP server is going to supply our client with a filename and a server address where to get the bootloader using TFTP protocol.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, Networking, System | No Comments »