Skip to content

Setting up Linux Machine as a Router for your Microsoft Environment

April 29, 2010

I have recently installed Openfiler SAN  in my HyperV test environment to simulate common iscsi SAN for Exchange servers. Yes, you can install openfiler on hyperV virtual machine using Text mode of installation procedure. Installation and Configuration Openfiler is fairly easy as on VMware server.  Apart from providing real SAN for my test environment, I have configured openfiler machine to provide routing between two different networks switches of HyperV server.

Here below are few important commands, I used for my purpose to enable telnet, ftp and routing on Openfiler box.

1. Enable Telnet
=============
#nano /etc/securetty

=apend ports as mentioned below at the end of the file Securetty
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9

#nano /etc/xinetd.d/krb5-telnet
set disable = no

2 Enable FTP
==========
# nano /etc/xinetd.d/gssftp

set disable = no
Change the “server_args” line; remove the “-a” option.

Reload configuration to enable ftp and telnet
===================
# service xinetd reload

3 Create User in linux
===========
#useradd manish -u 667 -g users -d /home/manish

assign password to user

#passwd manish

Allow newly create user to use sudo command
=====================
# nano /etc/sudoers

Create one more entry for user ‘manish’ as mentioned for root user thi will allow user to open su session with command  “Sudo su -”

now you can open a telnet session with command #telnet <ip-address of linux box>

4 Make linux machine as router
==========================
Open file sysctl.conf and change <net.ipv4.ip_forward = 1>

#nano /etc/sysctl.conf
set “net.ipv4.ip_forward = 1”

5 Restart Network service to reload ethernet cards
=================
#service network restart

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: