Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

Archive for the 'Networking' Category

How Tos related to networking from accessing remote hosts, configuring a service or administration.

How-To: Monitor your servers with SNMP and Cacti — page 2

Posted by chantra on 10th June 2007

This entry is part 2 of 3 in the series How-To: Monitor your servers with SNMP and Cacti

Now that we have our snmp server up and running, we are going to install cacti to manage the snmp server in our network.

2. Installing Cacti

Cacti displays system statistics through a PHP/MySQL web interface.

To gather informations, it runs a script which is going to poll the servers you registered in cacti: /usr/share/cacti/site/poller.php.

So, let’s get started an install cacti.

Read the rest of this entry »

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

How-To: FTP Virtual Host with ProFTPD and MySQL — page 2

Posted by chantra on 22nd May 2007

This entry is part 2 of 2 in the series How-To: FTP Virtual Host with ProFTPD and MySQL

4. Configure ProFTPd:

ProFTPd main configuration file is /etc/proftpd/proftpd.conf. On Debian, proFTPd over the capability of including files from the main configuration file. Thus, we are going to create a file call /etc/proftpd/mysql.conf which we will include from the main file.
This has the advantage that if the new config is not working, we can easily comment our include and fall back to the previous config.

So, get ready with your favorite text editor, edit /etc/proftpd/mysql.conf and put the following inside:

Read the rest of this entry »

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

How-To: FTP Virtual Host with ProFTPD and MySQL

Posted by chantra on 21st May 2007

This entry is part 1 of 2 in the series How-To: FTP Virtual Host with ProFTPD and MySQL

Using ProFTPD and its SQL module for MySQL, it is possible to give FTP access to non system users.
By doing so, one can give access to a Virtual User which is only allowed to use the FTP service.

This Tutorial will show how to create and populate the user and group tables as well as configure proftpd in order to use the MySQL backend.

Read the rest of this entry »

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

How-To set up a LDAP server and its clients — page 2

Posted by chantra on 22nd February 2007

This entry is part 2 of 2 in the series How-To set up a LDAP server and its clients

2. Configuring the clients

Each client will need a set of packages. So, now that you are logged on one of your clients, install:

#apt-get install libnss-ldap libpam-ldap nscd
LDAP Account for root: cn=admin,dc=debuntu,dc=local
Password: XXXX
Make local root database admin: yes
Database require logging in: No
Root login account: cn=admin,dc=debuntu,dc=local
Root login password: XXXX

Read the rest of this entry »

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

How-To set up a LDAP server and its clients

Posted by chantra on 22nd February 2007

This entry is part 1 of 2 in the series How-To set up a LDAP server and its clients

LDAP (Lightweight Directory Access Protocol) allows central user, group, domain….. authentication, information storage …

Using LDAP in a local network, you can allow your users to login and authenticate from anywhere on your network.

This tutorial will be split in 2 parts. In the first part, I will explain how-to install, configure the LDAP server, add a few users and group, in the second part, we will set up Linux client to authenticate through LDAP if the user does not exist on the local filesystem.

Read the rest of this entry »

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

Samba: How to share files for your LAN without user/password

Posted by chantra on 11th February 2007

This tutorial will show how to set samba to allow read-only file sharing for your LAN computers as guest (without be prompted for a password).
Because users won’t be prompted for a user/password, this tutorial is meant to be installed in a LAN where all host are to be trusted.

Read the rest of this entry »

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

Secure your SSH server with Public/Private key authentification — page 3

Posted by chantra on 11th January 2007

4. Disabling Authentication by password

In order to disable authentication by password, we need to connect as root on the remote machine. On connected, go and edit /etc/ssh/sshd_config and make sure you have the following setting:

….
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no

Read the rest of this entry »

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

Secure your SSH server with Public/Private key authentification — page 2

Posted by chantra on 11th January 2007

2. Adding the public key to the authorized key

In the first place, we need to upload the key to the remote machine:

user@host:~$ scp ~/.ssh/id_rsa.pub remoteuser@remotehost:~/

Now, the public key is uploaded, let’s add it to the authorized keys. To do so, we are going to connect to remotehost as remoteuser and add the key at the end of file ~/.ssh/authorized_keys and delete it once added:

Read the rest of this entry »

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

Secure your SSH server with Public/Private key authentification

Posted by chantra on 11th January 2007

Open SSH is the most widely used SSH server on Linux. Using SSH, one can connect to a remote host and gain a shell access on it in a secure manner as all traffic is encrypted.

A neat feature of open SSH is to authenticate a user using a public/private key pair to log into the remote host. By doing so, you won’t be prompted for the remote user’s password.

This tutorial will describe how to create a SSH public/private key pair, how to enable key based authentication and finally how to disable password authentication.

Read the rest of this entry »

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

Iptables: How-to Share your internet connection — page 4

Posted by chantra on 15th December 2006

This entry is part 4 of 4 in the series Iptables: How-to Share your internet connection

4. Using iptables’script

4.1. From the command line

One way to apply the rules we define, is simply to run the script from the command line like:

sudo sh /path/to/firewall-script.sh

but this has the bad effect of not being restore on reboot :s, but still, this will be of great help while tweaking up your firewall.

Read the rest of this entry »

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