Specify the ssh command to use for a VPN inline.
This commit is contained in:
parent
a8d7acdc03
commit
24de4f3b19
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46103
@ -4,7 +4,7 @@
|
||||
#
|
||||
# Originally written by Toshiharu OHNO
|
||||
#
|
||||
# $Id: ppp.conf.sample,v 1.2 1999/02/13 00:59:19 brian Exp $
|
||||
# $Id: ppp.conf.sample,v 1.3 1999/03/28 00:22:44 brian Exp $
|
||||
#
|
||||
#################################################################
|
||||
|
||||
@ -316,7 +316,7 @@ radius-server:
|
||||
#
|
||||
direct-client:
|
||||
set dial ""
|
||||
set line /dev/cuaa0
|
||||
set device /dev/cuaa0
|
||||
set sp 115200
|
||||
set timeout 900
|
||||
set lqrperiod 10
|
||||
@ -394,15 +394,11 @@ loop-in:
|
||||
# If you're going to create a tunnel through a public network, your VPN
|
||||
# should be set up something like this:
|
||||
#
|
||||
# /etc/ppp/secure (which should be executable) says:
|
||||
# #! /bin/sh
|
||||
# exec ssh whatevermachine /usr/sbin/ppp -direct loop-in
|
||||
#
|
||||
# You should already have set up ssh using ssh-agent & ssh-add.
|
||||
#
|
||||
sloop:
|
||||
load loop
|
||||
set device !/etc/ppp/secure
|
||||
set device "!ssh whatevermachine /usr/sbin/ppp -direct loop-in"
|
||||
|
||||
# Example of non-PPP callback.
|
||||
# If you wish to connect to a server that will dial back *without* using
|
||||
|
Loading…
Reference in New Issue
Block a user