Archive for the 'Networking' Category
How Tos related to networking from accessing remote hosts, configuring a service or administration.
Posted by chantra on 17th December 2008
3. Creating users
Here we will be using sha1 password. To create a password, you can use the following command:
# echo -n ‘password’ | sha1sum
5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8 -
Read the rest of this entry »
Tags: apache, mysql, network, security
Posted in Administration, HowTo, HTTP, Networking, System | 3 Comments »
Posted by chantra on 17th December 2008
this tutorial will explain how to use a MySQL backend in order to authentication users against your Apache website.
To achieve this we will use Apache2 and its auth_mysql module.
Read the rest of this entry »
Tags: apache, mysql, network, security
Posted in Administration, HowTo, HTTP, Networking, System | 1 Comment »
Posted by chantra on 6th December 2008
While doing a server migration, it happens that some traffic still go to the old machine because the DNS servers are not yet synced or simply because some people are using the IP address instead of the domain name….
By using iptables and its masquerade feature, it is possible to forward all traffic to the old server to the new IP.
This tutorial will show which command lines are required to make this possible.
Read the rest of this entry »
Tags: iptables, network, system
Posted in Administration, HowTo, Networking | No Comments »
Posted by chantra on 2nd November 2008
3. Setting BGP
As told earlier on, vyatta-bgp1 will advertise AS 1 with network 1.1.1.0/24 to its neighbor vyatta-bgp2 handling AS 2
and
vyatta-bgp2 will advertise AS 2 with network 2.2.2.0/24 to its neighbor vyatta-bgp1 handling AS 1
They will use a common password for this communication, which is BGPtutorial.
Read the rest of this entry »
Tags: bgp, network
Posted in Administration, HowTo, Networking, Softwares, System | No Comments »
Posted by chantra on 1st November 2008
2. Setting the network interfaces
During this part, we are going to set up the 2 Border Gateway routers’network interfaces. In vyatta world, you need to enter the interactive configuration shell by typing:
Read the rest of this entry »
Tags: bgp, network
Posted in Administration, HowTo, Networking, Softwares, System | No Comments »
Posted by chantra on 1st November 2008
Vyatta is a Linux based distro that ease the set up of VPN, Routers, antivirus…. It has a really small footprint on your system as it only requires something like 800M to be installed and is based on Debian. On the top of that, it offers configuration wrappers to facilitate service settings.
This tutorial will explain how to set up 2 Border Gateway Protocol (BGP) boxes to route the traffic from one Autonomous System (AS) to the other using Vyatta.
Vyatta Community Edition 4.1.4 was used during this set up.
Read the rest of this entry »
Tags: bgp, network
Posted in Administration, HowTo, Networking, Softwares, System | No Comments »
Posted by chantra on 29th June 2008
3. Forwarding Internet traffic with IPtables
IPtables is both used to act as a firewall, but it is also the one passing packets from one network to another.
Read the rest of this entry »
Tags: dhcp, dns, iptables, network, system
Posted in Administration, HowTo, Networking, System | 7 Comments »
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: dhcp, dns, iptables, network, system
Posted in Administration, HowTo, Networking, System | No Comments »
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: dhcp, dns, iptables, network, system
Posted in Administration, HowTo, Networking, System | No Comments »
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: dhcp, dns, iptables, network, system
Posted in Administration, HowTo, Networking, System | No Comments »