*BSD News Article 80414


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.uoregon.edu!hunter.premier.net!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!in2p3.fr!swidir.switch.ch!swsbe6.switch.ch!scsing.switch.ch!ubnsrv.unisource.ch!peroni.ita.tip.net!cnn.iper.net!wariat.org!uw.edu.pl!mimuw.edu.pl!lackowa!jarekb
From: jarekb@pap.waw.pl (Jaroslaw Bazydlo)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: iijppp over telnet
Date: 10 Oct 1996 17:38:18 GMT
Organization: Division of Mathematics, Informatics and Mechanics, Warsaw University
Lines: 63
Message-ID: <53jcaa$s4p@parnas.mimuw.edu.pl>
References: <539t8i$nua@colias.tutics.tut.ac.jp>
NNTP-Posting-Host: lackowa.pap.waw.pl
X-Newsreader: TIN [version 1.2 PL2]

Sarif Koichi (sarif@protenor.dsl.tutics.tut.ac.jp.) wrote:

:    Here`s the problem. I need a ppp conection, but the computer center 
: on my University only accept a telnet connection (after the modem
: conection its ask for host to telnet). So I run iijppp (ppp -direct),
: whoila the ppp> prompt is changing to PPP>. But the problem is that
: the ping is only sending packets via modem and there`s no packets are
: coming in. I check the route table, and (somehow) sure that there`s
: nothing wrong whit it (I check it up with another host with ppp
: support and it work fine).
:    Do I need to be root to run `ppp -direct`?

Off course not. As far as I remember ppp (IJJ) and pppd are root-setuid 
programs and every user can play with it. 

My situation is pretty the same. I've got terminal server which perform telnet
to connect our servers. Although I've got some strange problems (connection
hangs from time to time and then unblock - this could be our local problem)
both ppp deamons works more just fine. 

This is my /etc/ppp/ppp.conf (assuming youu've got even empty 
/etc/ppp/ppp.secret)  file:

default:
 enable proxy
 set escape 0xff

mydirect:
 set ifaddr a.a.a.a b.b.b.b

EOF

where a.a.a.a is IP of the host you telnet to,
      b.b.b.b IP adres given to PP client 

Routing is set automaticly w/o problem. Aha both adress belongs to she same
subnet so you need just proxy arp to be visible from outside. 

So to initiate the PPP connection ypou  must execute ppp like this:

$ ppp -direct mydirect

From now on it's ready. Ohh hI would  forget to add that there is still
one bug in /usr/src/usr.sbin/ppp/route.c you need to do one thing:

1. Change the line containg 'struct ifreq reqbuf[4];' in GetIfIndex
   function . 4 replace with much greater number e.g. 720.

2. Recompile and install.

I'm not sure if you need to it for smal number of ppp interfaces, I have 64 
of them and that helped.

Greets
J.
PS. I use pppd too. Which is much more comfortable if you write some script
    for dynamic IP assigments. If you need some hints write me an email.
--
     _       ____       ____  
    | | __ _|  _ \ __ _/ ___|        POLISH PRESS AGENCY - Warsaw 
 _  | |/ _` | |_) / _` \___ \  email: ............... jarekb@pap.waw.pl
| |_| | Jaroslaw Bazydlo __) | irc: McJARAS ...... on: #Polska #Gandalf
 \___/ \__,_|_| \_\__,_|____/. home-page: http://www.pap.waw.pl/~jarekb