From owner-freebsd-questions Sun Mar 17 12:16:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from bilbo.in.mat.cc (bilbo.in.mat.cc [212.43.217.121]) by hub.freebsd.org (Postfix) with ESMTP id 584E437B400 for ; Sun, 17 Mar 2002 12:16:18 -0800 (PST) Received: from bilbo.in.org (localhost [127.0.0.1]) by bilbo.in.mat.cc (Postfix) with ESMTP id D404C71183 for ; Sun, 17 Mar 2002 21:16:14 +0100 (CET) Received: from sauron (sauron.in.mat.cc [212.43.217.122]) by bilbo.in.mat.cc (Postfix) with ESMTP id E1D5B71183 for ; Sun, 17 Mar 2002 21:16:11 +0100 (CET) Date: Sun, 17 Mar 2002 21:16:11 +0100 From: Mathieu Arnold To: questions@freebsd.org Subject: ppp problem Message-ID: <101993203.1016399771@sauron> X-Mailer: Mulberry/2.2.0b2 (Win32) X-wazaaa: True, true MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi I currently use a linux box to establish a vpn. I do : $ cat maketunnel MYTTY=`/usr/sbin/pty-redir /usr/bin/ssh -C -c none vpn@` /usr/bin/sudo /home/vpn/Smaketunnel $MYTTY pty-redir is a small program which emulates a tty. $ cat Smaketunnel /usr/sbin/pppd $1 noauth nodetach local 10.0.5.10:10.0.5.1 and on the server, the vpn user has a script shell as login shell : $ cat tunnel /usr/bin/sudo /usr/sbin/pppd passive noauth it works great :) now, I want to switch my home box to freebsd, so I read the sample conf file and did : $ cat /etc/ppp/ppp.conf default: vpn: set timeout 0 set log phase chat connect lcp ipcp command set dial set login set ifaddr 10.0.5.2 10.0.5.1 set server /var/run/ppp/loop "" 0177 # Passive mode allows ssh plenty of time to establish the connection set openmode passive set device "!ssh vpn@" then, I launch : $ ppp -foreground ppp Working in foreground mode Using interface: tun0 sshd[18096]: connection from "" sshd[22199]: User vpn, coming from , authenticated. sudo: vpn : TTY=unknown ; PWD=/home/vpn ; USER=root ; COMMAND=/usr/sbin/pppd passive noauth pppd[22203]: no device specified and stdin is not a tty how could I do to have the thing I have with my linux vpn : sudo: vpn : TTY=pts/1 ; PWD=/home/vpn ; USER=root ; COMMAND=/usr/sbin/pppd passive noauth pppd[10943]: pppd 2.3.8 started by vpn, uid 0 I believe there is some way to have freebsd's ppp to emulate a tty, but I can't find out :) -- Mathieu Arnold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message