VPN on Mac OS X
Subject:   Why use the pty-redir hack?
Date:   2004-11-01 19:22:08
From:   went
Response to: Why use pty-redir

Why use pty-redir when ppd already has a ``pty'' command line switch within it? In other words, a command along the lines of this will work and require fewer steps than the original script:

/usr/sbin/pppd pty '/usr/bin/ssh -t' local noauth proxyarp

In addtion, note the ``-t'' option used with ssh so that it knows to force a pseudo-tty allocation.

Finally, note that the ``defaultroute'' option is available and could remove even a few more steps from the original script. The nice things about these options is that pppd will shoulder the responsibility for cleanly shutting down the ssh and deleting the route whenever pppd needs to quit.