On Wednesday 27 November 2002 12:43 am, Ian C. Sison wrote:
> It seems you are trying to build a DIY VPN via ssh, are you?
just an ssh tunnel to a remote SMTP server that i can connect to
with key authentication. almost a year ago i was looking into ssh
keepalive too (same reason, i'm travelling). i remember that there
was some discussion on the matter back then.
i've looked into things a little. it looks like ssh keepalive just sets
SO_KEEPALIVE when it opens the socket. so it doesn't work
the way I need it to. what i'd like is some sort of internal keepalive
(not SO_KEEPALIVE) where ssh actually sends "are you there"
messages and the other end sends "i am here" in reply. the
interval could be configurable.
SO_KEEPALIVE is a pain, and i haven't figured out how to make
it do what i want it to do.
the reason i need this is, i want the tunnel to be up when i'm online
somehow (i shuttle between different networks a lot, and sometimes
all i have is dialup), and i want it to be automatic, i shouldn't have
to remember to bring it up, etc. finally i just set up a script (run from
crontab, although maybe sub-minute intervals would be nicer)
that detects if there's a route to the remote box and brings it up then.
if there's no route, then the tunnel is shut down (and all outgoing mail
is just queued locally until the next time i go online somehow).
tiger
--
Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph
Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78"
Veritas liberabit vos.
my name is Inigo Montoya. You killed my father. Prepare to die.
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]