Kevin,
I would really be interested in the scripts you use. I do
not have a diald problem for the ssh connection I need
since that goes out via my ISDN router, but it sounds
like your scripts would work just fine for me.
Thanks,
Dave Warman
Kevin Buettner wrote:
> On Jul 1, 5:50pm, Lasevich, Michael wrote:
>
> > I want to know if I can use diald to generate a VPN on demand. I
> > want diald to bring up a VPN every time I try to access certain
> > networks. (And leave things alone when I try to go to the Internet)
> >
> > Can this be done?
>
> I looked into doing this a few months ago. It turned out to be harder
> than I expected it to be (with diald), so I ended up using the
> connect-on-demand feature of pppd for creating an ssh tunnel instead.
>
> As things stand now, I have a perl script which starts a local pppd.
> It uses a pty to communicate with the local pppd process. When the
> perl script sees data coming over the pty from the pppd process, this
> means that it's time to connect to the remote machine via ssh. Once
> this connection is made, the remote machine also starts a pppd and
> data is relayed between the two machines via the aforementioned perl
> script. The local pppd process is responsible for deciding when the
> link should be terminated. The perl script detects the EOF condition
> on the pty and then terminates the ssh process by closing the pty to
> which it is connected.
>
> I really wanted to use diald, but I needed a way of opening a pty from
> the diald process in order to glue the pppd process and the ssh
> process together. I'm not saying it's impossible, but it did look to
> me to be substantially harder than using pppd with the 'demand'
> option.
>
> Kevin
>
> --
> Kevin Buettner
> [EMAIL PROTECTED]
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-diald" in
> the body of a message to [EMAIL PROTECTED]
--
Dave Warman
====================================================
Warman's First Law:
Everything that can be configured, must be
Corollary:
Defaults aren't
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]