Koozali.org: home of the SME Server

Sharing a modem on the network

g7pkf

Sharing a modem on the network
« on: July 16, 2003, 08:03:01 PM »
Well I have searched the forums to no avail. heres my situation.

I need to dial out from a windows (sorry for swearing) machine over the lan and out through a modem connected to e-smith.

Reason for this is I only have 1 phone connection in the house (near the server) I have no choice but to run windows on my laptop, I have a wireless connection to e-smith.

I do need to dial any number from the windows pc. (in fact 2 windows pc's and 1 linux pc) so i gather i need client software for these.

reason for this is to provide remote support to friends and customers.


anyone done this before?

cheers Dean

Ray Mitchell

Re: Sharing a modem on the network
« Reply #1 on: July 17, 2003, 07:31:39 AM »
Never heard of that one in these forums.

Alternatively you could probably do it using an Internet connection and VPN pptp into your friends and customers boxes.

Regs
Ray

Steven

Re: Sharing a modem on the network
« Reply #2 on: July 17, 2003, 12:02:44 PM »
Round about way, but you could telnet into your sme from your windows box, go into minicom, and dial the number you want, and then do your work from your windows machine.

Steven

Marc

Re: Sharing a modem on the network
« Reply #3 on: July 17, 2003, 07:13:40 PM »
I have seen this work before, albeit not on e-smith, where from the Windows PC using Procomm, I could select a network modem, and then dial out from the network modem.

g7pkf

Re: Sharing a modem on the network
« Reply #4 on: July 17, 2003, 10:28:20 PM »
Procomm got some of that but what i need to do is have the windows box "just see" a virtual modem port with the modem located on the sme box. I know it can be done as i ahve been at a company that did it but unfortunatrely they no longer exist..

Andrew Gray

Re: Sharing a modem on the network
« Reply #5 on: September 27, 2003, 05:12:18 PM »
I can share what I've not, although it's not secure.

I have created two accounts on e-smith, I can ssh into these accounts using public-keys in ssh (or just program putty with the password and create a shortcut...eg: "C:\Program Files\Putty\putty.exe" -ssh dialon@myesmith -pw mypassword")

then edit the .profile on that account so that it kicks off the dialup process on e-smith.  need scripting skills to do this.  you could perhaps just get it to sudo and run /etc/rc.d/init.d/diald start or something.

but if you want to tell it the dialup number, well I suppose you could edit the .profile of the dialon user (described above), to ask for the number, then edit the chat script: /etc/sysconfig/network-scripts/chat-ppp0 somehow.  perhaps use sed or grep out the line and then replace it, or head the file minus the last two lines and then replace them with the
'OK' 'ATDT'
'CONNECT'
or somehting like that.  

That way, you can have an icon on your desktop (which is actually to putty), which then logs in as a particular user, and that user has login scripts which setup the dialup config.

pretty messy, I know, but I don't know of a more efficient method...surely there is one out there????

Cheers,

- Andy Gray