Saturday, December 11, 2010

Networking Configuration Using Ubuntu Command

The basics for any network based on *nix hosts is the Transport Control Protocol/ Internet Protocol (TCP/IP) combination of three protocols. This combination consists of the Internet Protocol (IP),Transport Control Protocol (TCP), and Universal Datagram Protocol (UDP).

By Default most of the users configure their network card during the installation of Ubuntu. You can however, use the ifconfig command at the shell prompt or Ubuntu’s graphical network configuration tools, such as network-admin, to edit your system’s network device information or to add or remove network devices on your system

Configure Network Interface Using Command-Line

You can configure a network interface from the command line using the networking utilities. You configure your network client hosts with the command line by using commands to change your current settings or by editing a number of system files.

Configuring DHCP address for your network card

If you want to configure DHCP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card

sudo vi /etc/network/interfaces

# The primary network interface - use DHCP to find our address
auto eth0
iface eth0 inet dhcp

Configuring Static IP address for your network card

If you want to configure Static IP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card

sudo vi /etc/network/interfaces

# The primary network interface

auto eth0
iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255

After entering all the details you need to restart networking services using the following command

sudo /etc/init.d/networking restart

Setting up Second IP address or Virtual IP address in Ubuntu

If you are a server system administrator or normal user some time you need to assign a second ipaddress to your Ubuntu machine.For this you need to edit the /etc/network/interfaces file and you need to add the following syntax.Below one is the only example you need to chnage according to your ip address settings

sudo vi /etc/network/interfaces

auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x

You need to enter all the details like address,netmask,network,broadcast and gateways values after entering all the values save this file and you need to restart networking services in debian using the following command to take effect of our new ipaddress.

After entering all the details you need to restart networking services using the following command

sudo /etc/init.d/networking restart

Setting your ubuntu stytem hostname

Setting up your hostname upon a ubuntu installation is very straightforward. You can directly query, or set, the hostname with the hostname command.

As an user you can see your current hostname with

sudo /bin/hostname

Example

To set the hostname directly you can become root and run

sudo /bin/hostname newname

When your system boots it will automatically read the hostname from the file /etc/hostname

If you want to know more about how to setup host name check here

Setting up DNS

When it comes to DNS setup Ubuntu doesn’t differ from other distributions. You can add hostname and IP addresses to the file /etc/hosts for static lookups.

To cause your machine to consult with a particular server for name lookups you simply add their addresses to /etc/resolv.conf.

For example a machine which should perform lookups from the DNS server at IP address 192.168.3.2 would have a resolv.conf file looking like this

sudo vi /etc/resolv.conf

enter the following details

search test.com
nameserver 192.168.3.2

Monday, October 4, 2010

How to Create and Configure FTP Sites in Windows Server 2003

  • Creating an FTP Site
  • Controlling Access to an FTP Site
  • Configuring FTP Site Logging
  • Stopping and Starting FTP Sites
  • Implementing FTP User Isolation

For sake of interest, we''ll again explain these tasks in the context of a fictitious company called TestCorp as it deploys FTP sites for both its corporate intranet and for anonymous users on the Internet.

Preliminary Steps

As mentioned in the previous article, IIS is not installed by default during a standard installation of Windows Server 2003, and if you installed IIS using Manage Your Server as described in the previous article this installs the WWW service but not the FTP service. So before we can create FTP sites we first have to install the FTP service on our IIS machine. To do this, we need to add an additional component to the Application Server role we assigned our machine when we used Manage Your Server to install IIS.

Begin by opening Add or Remove Programs in Control Panel and selecting Add/Remove Windows Components. Then select the checkbox for Application Server:

Click Details and select the checkbox for Internet Information Services (IIS):

Click Details and select the checkbox for File Transfer Protocol (FTP) Services.

Click OK twice and then Next to install the FTP service. During installation you''ll need to insert your Windows Server 2003 product CD or browse to a network distribution point where the Windows Server 2003 setup files are located. Click Finish when the wizard is done.

Creating an FTP Site

As with web sites, the simplest approach to identifying each FTP site on your machine is to assign each of them a separate IP address, so let''s say that our server has three IP addresses (172.16.11.210, 172.16.11.211 and 172.16.11.212) assigned to it. Our first task will be to create a new FTP site for the Human Resources department, but before we do that let''s first examine the Default FTP Site that was created when we installed the FTP service on our machine. Open IIS Manager in Administrative Tools, select FTP Sites in the console tree, and right-click on Default FTP Site and select Properties:

Just like the Default Web Site, the IP address for the Default FTP Site is set to All Unassigned. This means any IP address not specifically assigned to another FTP site on the machine opens the Default FTP Site instead, so right now opening either ftp://172.16.11.210, ftp://172.16.11.211 or ftp://172.16.11.212 in Internet Explorer will display the contents of the Default FTP Site.

Let''s assign the IP address 172.16.11.210 for the Human Resources FTP site and make D:\HR the folder where its content is located. To create the new FTP site, right-click on the FTP Sites node and select New --> FTP Site. This starts the FTP Site Creation Wizard. Click Next and type a description for the site:

Click Next and specify 172.16.11.210 as the IP address for the new site:

Click Next and select Do not isolate users, since this will be a site that anyone (including guest users) will be free to access:

Click Next and specify C:\HR as the location of the root directory for the site:

Click Next and leave the access permissions set at Read only as this site will only be used for downloading forms for present and prospective employees:

Click Next and then Finish to complete the wizard. The new Human Resources FTP site can now be seen in IIS Manager under the FTP Sites node:

To view the contents of this site, go to a Windows XP desktop on the same network and open the URL ftp://172.16.11.210 using Internet Explorer:

Note in the status bar at the bottom of the IE window that you are connected as an anonymous user. To view all users currently connected to the Human Resources FTP site, right-click on the site in Internet Service Manager and select Properties, then on the FTP Site tab click the Current Sessions button to open the FTP User Sessions dialog:

Note that anonymous users using IE are displayed as IEUser@ under Connected Users.

Now let''s create another FTP site using a script instead of the GUI. We''ll create a site called Help and Support with root directory C:\Support and IP address 172.16.11.211:

Here's the result of running the script:

The script we used here is Iisftp.vbs, which like Iisweb.vbs and Iisvdir.vbs which we discussed in the previous article is one of several IIS administration scripts available when you install IIS on Windows Server 2003. A full syntax for this script can be found here. Once you create a new FTP site using this script you can further configure the site using IIS Manager in the usual way.

Note: At this point you could add structure to your FTP site by creating virtual directories, and this is done in the same way as was described in the previous article for working with web sites.

Controlling Access to an FTP Site

Just like for web sites, there are four ways you can control access to FTP sites on IIS: NTFS Permissions, IIS permissions, IP address restrictions, and authentication method. NTFS permissions are always your first line of defense but we can't cover them in detail here. IIS permissions are specified on the Home Directory tab of your FTP site's properties sheet:

Note that access permissions for FTP sites are much simpler (Read and Write only) than they are for web sites, and by default only Read permission is enabled, which allows users to download files from your FTP site. If you allow Write access, users will be able to upload files to the site as well. And of course access permissions and NTFS permissions combine the same way they do for web sites.

Like web sites, IP address restrictions can be used to allow or deny access to your site by clients that have a specific IP address, an IP address in a range of addresses, or a specific DNS name. These restrictions are configured on the Directory Security tab just as they are for web sites, and this was covered in the previous article so we won't discuss them further here.

FTP sites also have fewer authentication options than web sites, as can be seen by selecting the Security Accounts tab:

By default Allow anonymous connections is selected, and this is fine for public FTP sites on the Internet but for private FTP sites on a corporate intranet you may want to clear this checkbox to prevent anonymous access to your site. Clearing this box has the result that your FTP site uses Basic Authentication instead, and users who try to access the site are presented with an authentication dialog box:

Note that Basic Authentication passes user credentials over the network in clear text so this means FTP sites are inherently insecure (they don't support Windows integrated authentication). So if you're going to deploy a private FTP site on your internal network make sure you close ports 20 and 21 on your firewall to block incoming FTP traffic from external users on the Internet.

Configuring FTP Site Logging

As with web sites, the default logging format for FTP sites is the W3C Extended Log File Format, and FTP site logs are stored in folders named

%SystemRoot%\system32\LogFiles\MSFTPSVCnnnnnnnnnn

where nnnnnnnnnn is the ID number of the FTP site. And just as with web sites, you can use the Microsoft Log Parser, part of the IIS 6.0 Resource Kit Tools, to analyze these FTP site logs.

Stopping and Starting FTP Sites

If an FTP site becomes unavailable you may need to restart it to get it working again, which you can do using IIS Manager by right-clicking on the FTP site and selecting Stop and then Start. From the command-line you can type net stop msftpsvc followed by net start msftpsvc or use iisreset to restart all IIS services. Remember that restarting an FTP site is a last resort as any users currently connected to the site will be disconnected.

Implementing FTP User Isolation

Finally, let's conclude by looking at how to implement the new FTP User Isolation feature of IIS in Windows Server 2003. When an FTP site uses this feature, each user accessing the site has an FTP home directory that is a subdirectory under the root directory for the FTP site, and from the perspective of the user their FTP home directory appears to be the top-level folder of the site. This means users are prevented from viewing the files in other users' FTP home directories, which has the advantage of providing security for each user's files.

Let's create a new FTP site called Staff that makes use of this new feature, using C:\Staff Folders as the root directory for the site and 172.16.11.212 for the site's IP address. Start the FTP Site Creation Wizard as we did previously and step through it until you reach the FTP User Isolation page and select the Isolate users option on this page:

Continue with the wizard and be sure to give users both Read and Write permission so they can upload and download files.

Now let's say you have two users, Bob Smith (bsmith) and Mary Jones (mjones) who have accounts in a domain whose pre-Windows 2000 name is TESTTWO. To give these users FTP home directories on your server, first create a subfolder named \TESTTWO beneath \Staff Folders (your FTP root directory). Then create subfolders \bsmith and \mjones beneath the \Accounts folder. Your folder structure should now look like this:

C:\Staff Folders
\TESTTWO
\bsmith
\mjones

To test FTP User Isolation let's put a file name Bob's Document.doc in the \bsmith subfolder and Mary's Document.doc in the \mjones subfolder. Now go to a Windows XP desktop and open Internet Explorer and try to open ftp://172.16.11.212, which is the URL for the Staff FTP site we just created. When you do this an authentication dialog box appears, and if you're Bob then you can enter your username (using the DOMAIN\username form) and password like this:

When Bob clicks the Log On button the contents of his FTP home directory are displayed:

Note that when you create a new FTP site using FTP User Isolation, you can't convert it to an ordinary FTP site (one that doesn't have FTP User Isolation enabled). Similarly, an ordinary FTP site can't be converted to one using FTP User Isolation.

We still need to explore one more option and that's the third option on the FTP User Isolation page of the FTP Site Creation Wizard, namely Isolate users using Active Directory. Since we've run out of IP addresses let's first delete the Help and Support FTP site to free up 172.16.11.211. One way we can do this is by opening a command prompt and typing iisftp /delete "Help and Support" using the iisftp.vbs command script. Then start the FTP Site Creation Wizard again and select the third option mentioned above (we'll name this new site Management):

Click Next and enter an administrator account in the domain, the password for this account, and the full name of the domain:

Click Next and confirm the password and complete the wizard in the usual way. You'll notice that you weren't prompted to specify a root directory for the new FTP site. This is because when you use this approach each user's FTP home directory is defined by two environment variables: %ftproot% which defines the root directory and can be anywhere including a UNC path to a network share on another machine such as \\test220\docs, and %ftpdir% which can be set to %username% so that for example Bob Smith's FTP home directory would be \\test220\docs\bsmith and this folder would have to be created beforehand for him. You could set these environment variables using a logon script and assign the script using Group Policy, but that's beyond the scope of this present article.

Wednesday, September 15, 2010

How-to Set Prolink Hurricane 5200 Modem/Router to Bridge Mode


prolink
above image is a Prolink 6300G

Here’s a quick guide on how to set your Prolink Hurricane 5200 Modem/Router to bridge mode (modem only).

1. Reset your modem by holding the reset button at the back of the device for 1-2 minutes.

2. Open your modem/router GUI by going to this address http://192.168.1.1

username: admin
password: password

3. Remove your old account by going to WAN settings and clicking the trash icon right next to your account username. (Skip this part if you don’t have one yet).

4. Create a new account in WAN configuration by applying the following settings:

VPI: 0
VCI: 35 (for Globe broadband)

5. Change the encapsulation to Bridge 1483

6. Check if the account is enabled

7. Go to DHCP page and disable DHCP

8. Go to Routing page and disable routing

9. Commit and Reboot

I’m thinking of a step 10 but I think that should do. Don’t forget to change your router IP to 192.168.2.1 (Linksys routers) then select PPOE as your type of connection. Provide your ISP username and password to start browsing. Good luck!

Sunday, August 22, 2010

How to Configure 3CX


Configuring 3CX
Here we will configure the 3CX IP PBX through the web interface to properly route both incoming and outgoing calls. The information presented in this guide is based on Version 7.1.3379 (FREE Edition) of the 3CX software. If you are running a different software version (or a different software edition), some of menu options and settings may be different. This guide assumes that you have installed the 3CX IP PBX and that you have administrative access to the 3CX administration web interface.

We recommend that you read each step through in its entirety before performing the action indicated in the step.

STEP 1 Adding an extension

Log into the 3CX administrative interface and click on the Extensions header, from the left side of the page.



Click on the Add Extension link at the top of the loaded page. From the Add Extensions page, enter your Extension Number, name, and a password. Once you have entered your credentials for this extension, please click on the Ok button to continue.



STEP 2 Adding a VoIP Provider

Next click on the VOIP Providers link from the left side of the page. Click on the Add Provider link from the top of the loaded page.



Once the Add VOIP Provider Wizard page loads enter callcentric in the Name Of Provider field. You may now choose to configure a Generic VoIP Provider or use the Callcentric template. If you wish to use the Callcentric template then continue with this step, otherwise go to step 2a. Once you have made your choice please click on the Next button to continue.



You will now be provided with the ability to configure the servers which you connect to. You may click Next as these settings have already been filled in as shown below.



Once you have looked over this information you may continue on to Setp 3 by clicking Next.

STEP 2a Adding a VoIP Provider manually

We will now configure a Generic VoIP Provider. Please select this option and then click Next.



On the next page, please enter the following as indicated on the images below:

SIP server hostname or IP
yourdomain.com
SIP server port5060
Outbound proxy hostname or IPyourdomain.com
Outbound proxy port (default is 5060):5060




Once done click Next to configure the account details.

STEP 3 Configuring account details

On the loaded page, click next again. You will now be required to enter your account information. As indicated in the picture below, please enter the following:

External Number1777MYCCID
Authentication ID1777MYCCID
Authentication Password


Where 1777MYCCID is your VOIP number and is the same password you create when you sign up for you Callcentric account. Optionally you may change it in your preferences.

You may then set the Maximum simultaneous calls value to 3. Only users who are sure of what they are doing should change this value. Once done click Next.



STEP 4 Adding an Inbound rule

You will now be required to configure the inbound routing for incoming calls. You may send incoming calls to any pre-configured location such an extension or an IVR, among other choices. Here we select the extension created earlier as an example.

Once done click Next to continue configuring your 3CX system.



STEP 5 Adding an Outbound Rule

Next, you will be prompted to configure an Outbound Rule for the VoIP provider. By default, the name of the rule should be set to Rule for callcentric. Please ensure that the Calls to Numbers starting with field is blank. You may of course change this later to any number you wish. By doing so an extension would need to dial the set number on an outbound call, for example a popular qualifier is often the number 9.

To save your Outbound Rule and complete setup, please click on the Ok button.

Rule NameRule for callcentric
Calls to Numbers starting with (Prefix)




STEP 6 Line Status

Once you have successfully configured your 3CX phone system, you can click on the Port/Trunk Status link on the left side of the page to see if the PBX is registered normally. If there are problems with Registration please double check the logs to see the exact reason why 3CX is not registering normally to the Callcentric servers.



STEP 7 Configuring advanced settings

You can now configure advanced settings for the Callcentric trunk just configured. Ere we will configure the registration and codec settings. Please click on the VoIP Providers link from the left side of the page and then select the Callcentric configuration and click Edit Provider followed by selected the Advanced tab.

We will first configure the Registration Settings. Please make sure the following is set:

Time between registration attempts (in seconds)3600
Require (optionally: authorized) registration forBoth in-out calls
Which IP to use in 'Contact' field for registrationInternal


We will then configure the assigned codecs. Under the Codec Priorities section please make sure that the following codecs are active:

G.711U-law
G.711A-law
GSM-FR

Once done click Ok to save your changes. You may double check the Port/Trunk Status to make sure that your registration continues to operate normally.



Thank it! Your 3CX7 system should now be properly configured to work with the Callcentric services.

STEP 8 Configure and test UA (User Agent)

  • Choose your desired UA
  • Use the IP address or hostname for your 3CX phone system along with "100" (the extension created earlier which is the username) and the password for the 100 extension to connect to your 3CX phone system.

Next you will want to try placing test calls to and from your 3CX phone system using the UA currently connected to your newly created extension (100).

Once you have associated your UA to your 3CX phone system, you can make a test call to 17771234567

1 + the area code and number for calls to the US
Or
011 + the country code, area code, and number for calls worldwide (you may also use 00 instead of 011).

Resources : http://www.callcentric.com
Website:
www.3cx.com - 3CX Phone System Home Page

Help / Support
3CX Forums
3CX Support Page



About Me

My photo
Love adventure and Extreme Sports,