Archive for the ‘Networking’ Category

Problem with PopTop VPN server and static IP’s

Tuesday, November 13th, 2007

When VPN clients disconnect it doesn't seem like the ppp interface is being dropped properly. When you dynamically assign IP's it doesn't really poses a problem because when clients reconnect they get another IP. When you define static IP's in /etc/ppp/chap-secrets a second ppp interface using the same IP is ...

Set hostname on CentOS/RHEL

Wednesday, July 25th, 2007

Check hostname uname -n or hostname Change hostname If your IP address is assigned to you by a DHCP server, then /etc/hosts is configured as follows: 127.0.0.1 mybox.mydomain.com localhost.localdomain localhost mybox If you have a static IP address, then /etc/hosts is configured as follows: 127.0.0.1 localhost.localdomain localhost 192.168.0.10 mybox.mydomain.com mybox If you have a static IP address, then /etc/sysconfig/network is ...

Map second NIC in VMWare

Saturday, June 16th, 2007

To map a second NIC in VMWare on a Linux host OS change to following in /etc/vmware/locations; answer VNET_2_INTERFACE eth1 Change eth1 to whatever is the fysical interface of your second NIC. Add a second NIC on your guest OS using the VMWare Server Console and map it as Custom to /dev/vmnet2.

Setup syslog to accept remote connections

Saturday, June 16th, 2007

If you want to setup a syslog server to accept messages from remote devices you have to make some changes to the default syslog configuration. Syslog will not listen for remote messages unless the SYSLOGD_OPTIONS variable in /etc/sysconfig/syslog has a -r included in it as shown below. SYSLOGD_OPTIONS="-m 0 -r" Restart syslog; service syslog ...

Install PopTop PPTP server on CentOS

Saturday, June 16th, 2007

PopTop is an open-source PPTP VPN solution for Linux. Here's a rudimentary guide on how to install and configure it on CentOS/RHEL based distro. The RPMs I refer to are available on http://sourceforge.net/project/showfiles.php?group_id=44827. Check kernel MPPE support Check if kernel is already compiled with MPPE; modprobe ppp-compress-18 && echo ok If not ok, install the ...

Install a bridged firewall (iptables) on CentOS

Friday, June 1st, 2007

Installing a bridged firewall enables you to use external IPs (no NAT) for the equipment behind your firewall. Here's a rudimentary guide on how to do it on CentOS/RHEL based distro; Requirements A server with at least 2 NICs. One NIC connects to your uplink, the other NIC connects to a switch where ...