Re: remote modem access
I have a simple system I wrote in perl/tk that is one step short of this,
that is, if you want users to have to request a connection each time
instead of having it dial up transparently as in diald.
The system consists of:
rdiald - perlscript that runs as a daemon and manages pppd; and
rdial - perl/tk script to be run on clients.
Requirements: perl and the Tk package.
Basically rdiald runs as a user who has permissions to dial up and keeps
track of the status of the dialup line; when a user starts rdial, it
contacts the host running rdiald and requests a lock. If everything works
okay, rdiald assigns a lock and dials up the system. The client runs fine
on windows hosts as well as *nix.
There are no *obvious* security holes, but it's not exactly fort knox -
it's designed for a home network (like mine) in which you're not really
worried about one host connecting and deleting somebody else's lock. I do
make it listen only on 192.168.0.*, so there's no concern of opening a
hole from the outside when dialled up.
I'll throw the two scripts on http://demog.berkeley.edu/~aperrin/tips/src
soon; feel free to use it but no guarantees.
Cheers,
Andy
----------------------------------------------------------------------
Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology
Chapel Hill, North Carolina, USA - http://demog.berkeley.edu/~aperrin
aperrin@socrates.berkeley.edu - aperrin@igc.apc.org
On Tue, 30 Jan 2001 kmself@ix.netcom.com wrote:
> on Mon, Jan 29, 2001 at 08:38:39AM -0500, mheyes@lincolnfp.com (mheyes@lincolnfp.com) wrote:
> > I have just setup a VERY small ethernet network with one user box and one
> > server. User and server can see each other, ping, etc and user can access
> > Internet provided the server is already logged on to my ISP. What is the
> > best way to enable the user to access the server's modem to dial out and
> > connect to the ISP? I was thinking of trying a shell script to rlogin and
> > pon, but is there a better way?
> >
> > Thanks! Just starting to learn a bit about networking (obviously).
>
> For an application such as this, diald, if you don't mind the modem
> being used _whenever_ network access is being requested. I have a 2nd
> dedicated phoneline and use a demand-dialed persistent PPP connection --
> it's always live, and reconnects when it goes down. DSL will happen
> eventually.
>
> --
> Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/
> What part of "Gestalt" don't you understand? There is no K5 cabal
> http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
>
Reply to: