Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 1999 12:32:43 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        "Samuel Castro" <scastro@tpv.com.mx>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Tunnel through proxy server 
Message-ID:  <199904211132.MAA02561@keep.lan.Awfulhak.org>
In-Reply-To: Your message of "Sat, 17 Apr 1999 14:20:21 CDT." <000001be891e$10924c40$30d422c8@alpha> 

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multipart MIME message.

--==_Exmh_-2179633170
Content-Type: text/plain; charset=us-ascii

> I have one machine behind a firewall (no control with that) and another in the outside, tryied to stablish a tunnel between the two systems using PPP over TCP, (I can open a telnet connection between the machines) but the PPP (LCP phase) never comes up.
> 
> Any ideas?
> 
> Samuel Castro

This is possible, but there are a number of gotcha's and a patch that 
must be applied (I've committed the patch to -current and -stable and 
it'll be available from http://www.Awfulhak.org/ppp.html soon.  I've 
also attached it here as it's pretty small).

o You must ``set escape 0xff'' so that telnet doesn't barf on these 
  characters.
o After ``set device !telnet'' and ``term'' you must type ``open 
  machine^M^J'' as you're in raw mode.
o You should ``set redial 1'', otherwise it looks like ppp is hanging 
  on second and subsequent ``term'' calls.
o Once you've connected and logged into the remote machine, you need 
  the ppp patch to run ``exec ppp -direct whatever''.  Without it ppp 
  -direct will barf because it doesn't expect to have to deal with 
  pseudo ttys that can't do ioctl(TIOCMGET).

Cheers.

-- 
Brian <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@uk.FreeBSD.org>


--==_Exmh_-2179633170
Content-Type: application/x-patch ; name="1.patch"
Content-Description: 1.patch
Content-Disposition: attachment; filename="1.patch"

diff -r -N -u --exclude=CVS --exclude=*.o --exclude=*.gz --exclude=*.orig --exclude=*.cat* --exclude=ppp --exclude=*.cat* --exclude=.??* ppp/modem.c 1/modem.c
--- ppp/modem.c	Mon Apr  5 19:37:07 1999
+++ 1/modem.c	Wed Apr 21 08:12:35 1999
@@ -287,9 +287,10 @@
 
     if (modem->fd >= 0) {
       if (ioctl(modem->fd, TIOCMGET, &modem->mbits) < 0) {
-	log_Printf(LogPHASE, "%s: ioctl error (%s)!\n", modem->link.name,
-                  strerror(errno));
-        datalink_Down(modem->dl, CLOSE_NORMAL);
+	log_Printf(LogPHASE, "%s: Carrier not required (pseudo tty ?)\n",
+                   modem->link.name);
+        timer_Stop(&modem->Timer);
+        modem->mbits = TIOCM_CD;
 	return;
       }
     } else

--==_Exmh_-2179633170--




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904211132.MAA02561>