Koozali.org: home of the SME Server

connecting 2 e-smith servers with dial up

John

connecting 2 e-smith servers with dial up
« on: July 16, 2002, 12:26:02 PM »
Anybody know how to connect 2 e-smith servers with dial up connection
so i can make like a bridge, and share internet, etc

Lloyd Keen

Re: connecting 2 e-smith servers with dial up
« Reply #1 on: July 16, 2002, 01:37:58 PM »
Hi John,
This worked for me. YMMV

HOWTO GET YOUR E-SMITH BOX TO DIAL
INTO ANOTHER E-SMITH BOX.

A few notes prior to setup. The dungog dial-in RPM doesn’t add the entries into the inittab file so we need to do this manually. Also for some reason the dial-in does not work using dynamic IP’s. In order for this to work the client needs to have a static IP (hence the mods to diald.conf)

SETUP THE REMOTE ACCESS SERVER (192.168.30.1)

Install the following RPM’s onto the e-smith box that will become the dial-in server.
e-smith-dialin-0.4-2.noarch.rpm
mgetty-1.1.25-5.i386.rpm
Open up the E-smith manager and setup the entries for the dial-in access and don’t forget to allow access for the authorised users.
Now ssh into the server and create the file
/etc/e-smith/templates-custom/etc/inittab/S85dialin
containing the following line
mg:23457:respawn:/sbin/mgetty ttySx
(where x is the com port connected to the modem)
rebuild the template with the following command
#/sbin/e-smith/expand-template /etc/inittab
Lastly open up the e-smith manager and goto to the local networks tab and add the IP address and subnet mask of the Remote access client
(don’t worry about the router entry) then click on remote access and click the modify button (this reloads the IP masq rules to allow access to the remote client’s network)

SETUP THE REMOTE ACCESS CLIENT (192.168.40.1)

Ssh into the server as admin and configure the server for dial-up access using the phone number of the server specified previously and the user name that was granted dial-in access on the remote access server.
We need to make a couple of minor mods before proceeding further so log back into the client machine and stop diald with the following:
#/etc/rc.d/init.d/diald stop
Now edit the following files:
mcedit /etc/e-smith/templates/etc/diald.conf/options
and place a # sign in front of the line that reads dynamic like such
#dynamic
save the file then:
mcedit /etc/e-smith/templates/etc/diald.conf/pppd-options
remove the text “noipdefault” from line 7 of this file then save this file as well.
Now rebuild the template:
#/sbin/e-smith/expand-template /etc/diald.conf
Finally start diald using:
#/etc/rc.d/init.d/diald start

John

Re: connecting 2 e-smith servers with dial up
« Reply #2 on: July 16, 2002, 09:28:14 PM »
thx for the fast reply Lloyd,
will try that as soon as i get a chance, just another quick question
for you or anyone, I would like to be able to dial into my 5.12 sme
with windows 98/me/xp system and use the network just like the lan, can i set it up with out a scrip for logging in?
or will i have to make up a script for 98/me/xp?

thx again
John

Lloyd Keen

Re: connecting 2 e-smith servers with dial up
« Reply #3 on: July 17, 2002, 04:31:05 AM »
In the Properties for the dial-in connectoid, click on the server types tab and check the box saying "log onto the network". After handshaking you should be presented with a network logon dialogue box. If you have a netlogon.bat file all your mapped drives should appear after logon, alternatively you can just pull up a dos prompt and map them yourself (net use x: \server_name\share_name).