Koozali.org: home of the SME Server

remote dial-in to SME box

Joel

remote dial-in to SME box
« on: February 27, 2003, 01:03:49 AM »
Where or what should I be looking for How-To
I have two SME networks and I want to give them access to each other with some sort of dial-up connection

Lloyd Keen

Re: remote dial-in to SME box
« Reply #1 on: February 27, 2003, 12:59:41 PM »
Joel,
I wrote this some time ago so not too sure if it'll work under 5.6, but it might put you on the right track:
HOWTO GET YOUR E-SMITH BOX TO DIAL
INTO ANOTHER E-SMITH BOX.

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