Posted on Leave a comment

InterVLAN Routing using CentOS with 1 Interface

Scenario:
  • Router: CentOS Server with 1 network card.
  • Clients: 2 WindowsXP in VLAN10,1 Ubuntu and 1 CentOS in VLAN20.
  • Switch: Cisco 2960
Cisco 2960 Switch Configuration:
interface FastEthernet0/1
description CONNECTED TO CentOS ROUTER
switchport mode trunk
!
!
!
interface FastEthernet0/5
description WINXP-1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/6
description WINXP-2
switchport access vlan 10
switchport mode access
!
!
!
interface FastEthernet0/15
description UBUNTU CLIENT
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/16
description CentOS CLIENT
switchport access vlan 20
switchport mode access
CentOS Router Configuration:

First, we need to disable the SELinux:

sudo nano /etc/selinux/config

Change SELINUX from enforcing to disabled:

To configure the base interface(in my case, eth0):

sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0

It should have at least the following elements:

DEVICE=eth0 
BOOTPROTO=none   #if it didn’t work then use static
ONBOOT=yes 
TYPE=Ethernet

To setup a VLAN10, on eth0, then we should create a file ifcfg-vlan10 inside /etc/sysconfig/network-scripts/:

ifcfg-vlan10 should have following elements:

Again to setup a VLAN20, on eth0, then we should create a file ifcfg-vlan20 inside /etc/sysconfig/network-scripts/:

ifcfg-vlan20 should have following elements:

To enable ip forwarding, edit /etc/sysctl.conf file:

sudo nano /etc/sysctl.conf

Change net.ipv4.ip_forward from 0 to 1:

Restart the Networking service:

sudo service network restart

Use the ifconfig command to check the newly created vlan interfaces:

ifconfig

To forward the traffic between the vlans, we should configure the iptables:

sudo nano /etc/sysconfig/iptables

Add these two lines (place them according to your iptables file configuration):

-A FORWARD -i vlan10 -o vlan20 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i vlan20 -o vlan10 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT

Test from WinXP-1:

Test from WinXP-2:

Test from Ubuntu Client:

Test from CentOS Client:

 

Hope this will help you!

Posted on Leave a comment

InterVLAN Routing using Ubuntu with 1 Interface

Scenario:
  • Router: Ubuntu Server with 1 network card.
  • Clients: 2 WindowsXP in VLAN10,1 Ubuntu and 1 CentOS in VLAN20.
  • Switch: Cisco 2960
Cisco 2960 Switch Configuration:
interface FastEthernet0/1
description CONNECTED TO UBUNTU ROUTER
switchport mode trunk
!
!
!
interface FastEthernet0/5
description WINXP-1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/6
description WINXP-2
switchport access vlan 10
switchport mode access
!
!
!
interface FastEthernet0/15
description UBUNTU CLIENT
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/16
description CentOS CLIENT
switchport access vlan 20
switchport mode access
Ubuntu Router Configuration:

To install the vlan support on ubuntu, use this command:

sudo apt-get install vlan

Now we shall configure the vlans on Ubuntu router by editing the /etc/network/interfaces:

sudo nano /etc/network/interfaces

To enable ip forwarding, edit /etc/sysctl.conf file:

sudo nano /etc/sysctl.conf

Change net.ipv4.ip_forward from 0 to 1:

Load “8021q” kernel module:

(Optional): If the Ubuntu router didn’t load the 8021q kernel module at boot time, then use this command to add the module to the kernel on boot:

sudo su -c 'echo "8021q" >> /etc/modules'

Restart the Networking service:

sudo /etc/init.d/networking restart

Use the ifconfig command to check the newly created vlan interfaces:

ifconfig

Verify the vlan configuration:

sudo cat /proc/net/vlan/config

Test from WinXP-1:

Test from WinXP-2:

Test from Ubuntu Client:

Test from CentOS Client:

Hope this will help you!

Posted on Leave a comment

How to Setup a DHCP Server on CentOS 6.2

In this scenario, we have a CentOS server with two network cards, but it will only listen the dhcp request on one card (eth1).

Here is the configuration of eth1 interface:

cat /etc/sysconfig/network-scripts/ifcfg-eth1

CentOS as DHCP Server:

To install dhcp server, enter the following command at a terminal prompt:

sudo yum -y install dhcp

To make the dhcp server start at boot time, use this commands:

sudo chkconfig dhcpd on

As we are using more than one network card(s) in our CentOS server, so we need to specify on which interface our server will be listen for dhcp request. (By default, it listens on eth0).

You can change this by editing /etc/sysconfig/dhcpd file:

sudo nano /etc/sysconfig/dhcpd

Add the name of the interface on which you want that your server will listen for dhcp request (In my case, it is eth1):

DHCPDARGS=eth1

Copy the default configuration file from /usr/share/doc/dhcp-versidhcp/dhcpd.conf.sample to the /etc/dhcp/dhcpd.conf :

sudo cp /usr/share/doc/dhcp-*/dhcpd.conf.sample /etc/dhcp/dhcpd.conf

Now we will change the default configuration by editing /etc/dhcp/dhcpd.conf, I normally delete everything inside the file and manually add the configuration that suits my needs :-)

sudo nano /etc/dhcp/dhcpd.conf

Here is my dhcpd.conf file, you need to change it according to your needs:

ddns-update-style none;
authoritative;
log-facility local7;
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 172.16.10.255;
option routers 172.16.10.1;
option domain-name-servers 172.16.1.1;
option domain-name "centos.local";
subnet 172.16.10.0 netmask 255.255.255.0 {
 range 172.16.10.10 172.16.10.100;
}

Restart dhcp service using the following command:

sudo service dhcpd restart

Configure Windows as DHCP Client:

Just follow these steps, in order to configure your Windows machine as DHCP client (In my case, it’s Windows XP):

To check the IP Address on Windows XP:

To Check the DHCP Leases on CentOS Server:
cat /var/lib/dhcpd/dhcpd.leases

Hope this will help you!

Posted on Leave a comment

RIP routing between Ubuntu and CentOS using Quagga

Topology:

Topology

 

Scenario:

  • Routers: 1 Ubuntu Linux with 2 nics, 1 Centos Linux with 2 nics.
  • Clients: 2 Windows 7 with 1 nic.
IP Details

All the Routers in this scenario have a default password of “zebra“.

UbuntuRouter:

  • eth0: 172.16.10.1/24
  • eth1: 10.10.10.1/24

CentOSRouter:

  • eth0: 172.16.10.2/24
  • eth1: 192.168.10.1/24

Clients:

  • Dektop: 192.168.10.50/24
  • Laptop: 10.10.10.50/24
UbuntuRouter Configuration:

UbuntuRouter Configuration 1

UbuntuRouter Configuration 1a

Restart the Router!!!

CentOSRouter Configuration:

Restart the Router!!!

Troubleshooting Steps for CentOS:

Verification from Routers :-)

Test from Clients :-)

Make a simple test from Laptop.

Make a simple test from Desktop.

Hope this will help you!

Posted on Leave a comment

Installation WHMCS

Installing Ioncube

WHMCS is encrypted using the Ioncube system. There are therefore two ways to use WHMCS. You can use the runtime decoders or you can install the Ioncube decoders into php directly. The first way is simplest as all you have to do is upload the ioncube folder from the Ioncube download in our client area to your WHMCS directory but it doesn’t always work. So the second is slightly more difficult, but more commonly successful, and here is a tutorial on how to do it.

You WILL require root access to the server in order to do this.

  1. Download the latest loaders to your computer from�http://www.ioncube.com/loaders.php
  2. Extract the contents of the archived file on your local PC to a folder of your choice.
  3. Upload the folder IONCUBE via FTP to your domain webspace
  4. Now establish an SSH connection with server using a suitable client (e.g. Putty for PC’s or Terminal on Mac). This is usually done using the command: SSH rootusername@yourserver.com (you will then be asked for your password).
  5. You will need to browse to the public folder where you uploaded the IONCUBE directory (search internet for change and view directory commands in Unix).
  6. Move the ioncube folder to a permanent location by entering: mv ioncube /usr/local
  7. Next, you need to locate the php.ini file, to do this enter: locate php.ini – You should find it is in /usr/local/lib/php.ini. Now that you know the location of php.ini you need to edit it. pico /usr/local/lib/php.ini
  8. Now find where other zend extentions are in the file: ctrl + w: zend_extension
  9. Paste in your new line for ioncube loader: zend_extension = /usr/local/ioncube/ioncube_loader_lin_x.so (Replace x with your version of PHP eg. 4.4)
  10. Save the changes: ctrl + X then Y and enter
  11. Restart the web server to take effect: /etc/init.d/httpd restart

That’s it! Ioncube is now installed on your server! You should now see a section in your PHP Info page that says:

Additional Modules
Module Name ionCube Loader

Installing WHMCS

Installing WHMCS is very simple. The following steps will guide you through the process:

  1. Unzip the contents of the zip file to a folder on your computer
  2. Rename the file configuration.php.new to configuration.php
  3. Upload the entire whmcs folder to your website – if you experience problems, try uploading in binary mode
  4. Next you can rename the folder to whatever you like (billing, clients, etc…)
  5. Now visit the installation script at�http://www.yourdomain.com/whmcs/install/install.php to run the installer process – if you get an Ioncube related error message, see the installation Ioncube steps above
  6. Follow the instructions on screen to install which will involve setting file permissions as listed below, entering your license key and setting up your primary admin account
  7. When complete, delete the install folder from your web server and CHMOD the configuration.php file back to 644.
Required file & folders permissions (unless your php is suPHP or PHPSuExec):

/configuration.php          CHMOD 777 Writeable
/attachments                CHMOD 777 Writeable
/downloads                  CHMOD 777 Writeable
/templates_c                CHMOD 777 Writeable

Post Installation Suggested Steps

After installation is completed, we recommend that you go through and configure your new WHMCS system in the following order:

  1. Login to the Admin Area and configure your General Settings (Setup >�General Settings)
  2. Setup your Payment Gateways (Setup >�Payment Gateways)
  3. Setup your Products & Services (Setup >�Products/Services)
  4. Configure your Domain Pricing (Setup >�Domain Pricing)
  5. Setup your Support Ticket Departments (Setup >�Support Departments)
  6. Setup email piping so you can manage tickets using the WHMCS Support Desk – for full instructions on this please see the�Email Piping article
  7. Ensure the WHMCS Cron Job is setup and configure automated tasks (Setup >�Automation Settings)
  8. Place some test orders on your website to check everything works as expected

For furthur guidance, you can watch video tutorials we have prepared for the above tasks @www.whmcs.com/tutorials.php

Installing Ioncube

WHMCS is encrypted using the Ioncube system. There are therefore two ways to use WHMCS. You can use the runtime decoders or you can install the Ioncube decoders into php directly. The first way is simplest as all you have to do is upload the ioncube folder from the Ioncube download in our client area to your WHMCS directory but it doesn’t always work. So the second is slightly more difficult, but more commonly successful, and here is a tutorial on how to do it.

You WILL require root access to the server in order to do this.

  1. Download the latest loaders to your computer from�http://www.ioncube.com/loaders.php
  2. Extract the contents of the archived file on your local PC to a folder of your choice.
  3. Upload the folder IONCUBE via FTP to your domain webspace
  4. Now establish an SSH connection with server using a suitable client (e.g. Putty for PC’s or Terminal on Mac). This is usually done using the command: SSH rootusername@yourserver.com (you will then be asked for your password).
  5. You will need to browse to the public folder where you uploaded the IONCUBE directory (search internet for change and view directory commands in Unix).
  6. Move the ioncube folder to a permanent location by entering: mv ioncube /usr/local
  7. Next, you need to locate the php.ini file, to do this enter: locate php.ini – You should find it is in /usr/local/lib/php.ini. Now that you know the location of php.ini you need to edit it. pico /usr/local/lib/php.ini
  8. Now find where other zend extentions are in the file: ctrl + w: zend_extension
  9. Paste in your new line for ioncube loader: zend_extension = /usr/local/ioncube/ioncube_loader_lin_x.so (Replace x with your version of PHP eg. 4.4)
  10. Save the changes: ctrl + X then Y and enter
  11. Restart the web server to take effect: /etc/init.d/httpd restart

That’s it! Ioncube is now installed on your server! You should now see a section in your PHP Info page that says:

Additional Modules
Module Name ionCube Loader

Installing WHMCS

Installing WHMCS is very simple. The following steps will guide you through the process:

  1. Unzip the contents of the zip file to a folder on your computer
  2. Rename the file configuration.php.new to configuration.php
  3. Upload the entire whmcs folder to your website – if you experience problems, try uploading in binary mode
  4. Next you can rename the folder to whatever you like (billing, clients, etc…)
  5. Now visit the installation script at�http://www.yourdomain.com/whmcs/install/install.php to run the installer process – if you get an Ioncube related error message, see the installation Ioncube steps above
  6. Follow the instructions on screen to install which will involve setting file permissions as listed below, entering your license key and setting up your primary admin account
  7. When complete, delete the install folder from your web server and CHMOD the configuration.php file back to 644.
Required file & folders permissions (unless your php is suPHP or PHPSuExec):

/configuration.php          CHMOD 777 Writeable
/attachments                CHMOD 777 Writeable
/downloads                  CHMOD 777 Writeable
/templates_c                CHMOD 777 Writeable

Post Installation Suggested Steps

After installation is completed, we recommend that you go through and configure your new WHMCS system in the following order:

  1. Login to the Admin Area and configure your General Settings (Setup >�General Settings)
  2. Setup your Payment Gateways (Setup >�Payment Gateways)
  3. Setup your Products & Services (Setup >�Products/Services)
  4. Configure your Domain Pricing (Setup >�Domain Pricing)
  5. Setup your Support Ticket Departments (Setup >�Support Departments)
  6. Setup email piping so you can manage tickets using the WHMCS Support Desk – for full instructions on this please see the�Email Piping article
  7. Ensure the WHMCS Cron Job is setup and configure automated tasks (Setup >�Automation Settings)
  8. Place some test orders on your website to check everything works as expected

For furthur guidance, you can watch video tutorials we have prepared for the above tasks @www.whmcs.com/tutorials.php

Posted on Leave a comment

Connecting to your service

In this tutorial, we will show you how to use FTP to download / upload your files.

In your FTP client, you should see something like:

Host:     Username:   Password:    Port:

For Host, you will put in the server hostname or IP address, for username, you would put in your account username, for password, you would put your account password, and for port, you can leave it blank or put 21.

Then you should be all set, ready to download or upload your files!

 In this tutorial, we will show you how to use FTP to download / upload your files.

In your FTP client, you should see something like:

Host:     Username:   Password:    Port:

For Host, you will put in the server hostname or IP address, for username, you would put in your account username, for password, you would put your account password, and for port, you can leave it blank or put 21.

Then you should be all set, ready to download or upload your files!

 

Posted on Leave a comment

ruTorrent Restart

Login to Your client area (https://clients.santrex.net/clientarea.php) on santrex.net then go to products (https://clients.santrex.net/clientarea.php?action=products).

On the right side of Your seedbox account there is a icon product details, click it.

Bellow the seedbox account informations You will see 3 links.

Login: RUtorrent – FTP
Functions: Restart

Use Function Restart then wait 1-5minutes.Login to Your client area (https://clients.santrex.net/clientarea.php) on santrex.net then go to products (https://clients.santrex.net/clientarea.php?action=products).

On the right side of Your seedbox account there is a icon product details, click it.

Bellow the seedbox account informations You will see 3 links.

Login: RUtorrent – FTP
Functions: Restart

Use Function Restart then wait 1-5minutes.

Posted on Leave a comment

Proxy

If you would like to use your proxy service that comes free of charge with your seedbox to connect to trackers using your seedbox hostname/ip then please use your hostname which in this case is your servername.santrex.net where servername is your server name that you’ve been delivered then use your username and password port 10080If you would like to use your proxy service that comes free of charge with your seedbox to connect to trackers using your seedbox hostname/ip then please use your hostname which in this case is your servername.santrex.net where servername is your server name that you’ve been delivered then use your username and password port 10080

Posted on Leave a comment

Flashget

Please kindly download flashget at http://www.flashget.com/en/download.htm then simply install it and download off your seedbox by using internet explorer or firefox then entering your santrex server name example ftp://servername.santrex.net then sign in by using your username and password. Once you login select the files you want to download and then download them using flashget that should give you the most optimum speeds, flashget uses a multi instance technique to achieve fast speeds off your remote host.Please kindly download flashget at http://www.flashget.com/en/download.htm then simply install it and download off your seedbox by using internet explorer or firefox then entering your santrex server name example ftp://servername.santrex.net then sign in by using your username and password. Once you login select the files you want to download and then download them using flashget that should give you the most optimum speeds, flashget uses a multi instance technique to achieve fast speeds off your remote host.

Posted on Leave a comment

Error: Bad link to rTorrent. Check if it is really running

Login to Your client area (https://clients.santrex.net/clientarea.php) on santrex.net then go to products (https://clients.santrex.net/clientarea.php?action=products).

On the right side of Your seedbox account there is a icon product details, click it.

Bellow the seedbox account informations You will see 3 links.

Login: RUtorrent – FTP
Functions: Restart

Use Function Restart then wait 1-5minutes.

If that won’t help please contact support.Login to Your client area (https://clients.santrex.net/clientarea.php) on santrex.net then go to products (https://clients.santrex.net/clientarea.php?action=products).

On the right side of Your seedbox account there is a icon product details, click it.

Bellow the seedbox account informations You will see 3 links.

Login: RUtorrent – FTP
Functions: Restart

Use Function Restart then wait 1-5minutes.

If that won’t help please contact support.