Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2002 12:07:50 +0300
From:      "vlad" <vlad@sberbank.dp.ua>
To:        <freebsd-questions@FreeBSD.org>
Subject:   pppd
Message-ID:  <000801c1b537$164c1c40$1e20230a@sbank.dp.ua>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Ребята, помогите кто-нибудь, а то ни фига не выходит. В чём собственно проблема: я хочу запустить pppd в качестве сервера удалённого доступа.
ОС-FreeBSD 4.4 pppd её родной. IP роутера 10.35.32.129/29 имя gateway2
модем (JVC 56K) стоит на cuaa1.
строка запуска pppd /dev/ttyd1 persist
Вот конфы:
options:    
    -detach
    passive
    lock
    modem
    crtscts
    10.35.32.129:10.35.32.130
    proxyarp
    name gateway2

options.ttyd1:
    passive
    debug

ttys:
    ttyd1 "/usr/libexec/getty std.57600" dialup on insecure

gettytab:
    std.57600|57600-baud:\
     :np:sp#57600:
     :pp=/usr/sbin/pppd.sh

pppd.sh:
    #!/bin/sh
    /usr/sbin/pppd auth login require-pap refuse-chap

pap-secrets:
    pppuser   *  panasonic *

passwd:
    pppuser:*:1001:1001:ppp:/home/pppuser:/usr/sbin/pppd

ppp.log:
Feb 14 11:05:50 gateway2 pppd[213]: pppd 2.3.5 started by root, uid 0
Feb 14 11:06:31 gateway2 pppd[213]: Using interface ppp0
Feb 14 11:06:31 gateway2 pppd[213]: Connect: ppp0 <--> /dev/ttyd1
Feb 14 11:06:31 gateway2 pppd[213]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Feb 14 11:06:31 gateway2 pppd[213]: sent [LCP ConfReq id=0x1 <magic 0x101ba770> <pcomp> <accomp>]
Feb 14 11:06:58 gateway2 last message repeated 9 times
Feb 14 11:07:01 gateway2 pppd[213]: LCP: timeout sending Config-Requests
Feb 14 11:07:02 gateway2 pppd[213]: Modem hangup, connected for 1 minutes
Feb 14 11:07:02 gateway2 pppd[213]: Connection terminated, connected for 1 minutes 
Feb 14 11:07:02 gateway2 pppd[213]: Couldn't restore device fd flags: Inappropriate ioctl for device
Feb 14 11:07:02 gateway2 pppd[213]: ioctl(TIOCSETD): Inappropriate ioctl for device
Feb 14 11:07:03 gateway2 pppd[213]: tcsetattr: Inappropriate ioctl for device
Feb 14 11:07:31 gateway2 pppd[213]: Terminating on signal 15.
Feb 14 11:07:31 gateway2 pppd[213]: Exit.

Проблема:
    Когда с виндовс98 звоню, то хендшейк вроде происходит, затем эта виндовс98 пишет что проверяет имя и пароль пользователя (довольно долго) и в конце концов выдаёт сообщение, что удаенная сторона не отвечает на запросы сети обратитесь к администратору.

Вопрос: научите как надо.
vlad

email vlad@sberbank.dp.ua








[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=koi8-r" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Arial Cyr" size=2>Ребята, помогите кто-нибудь, а то ни фига не 
выходит. В чём собственно проблема: я хочу запустить pppd в качестве сервера 
удалённого доступа.</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>ОС-FreeBSD 4.4 pppd её родной. IP роутера 
10.35.32.129/29 имя gateway2</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>модем (JVC 56K) стоит на cuaa1.</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>строка запуска pppd /dev/ttyd1 
persist</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>Вот конфы:</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>options:&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>&nbsp;&nbsp;&nbsp; 
-detach<BR>&nbsp;&nbsp;&nbsp; passive<BR>&nbsp;&nbsp;&nbsp; 
lock<BR>&nbsp;&nbsp;&nbsp; modem<BR>&nbsp;&nbsp;&nbsp; 
crtscts<BR>&nbsp;&nbsp;&nbsp; 10.35.32.129:10.35.32.130<BR>&nbsp;&nbsp;&nbsp; 
proxyarp<BR>&nbsp;&nbsp;&nbsp; name gateway2<BR></FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>options.ttyd1:</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>&nbsp;&nbsp;&nbsp; 
passive<BR>&nbsp;&nbsp;&nbsp; debug</FONT><FONT face="Arial Cyr" 
size=2></DIV></FONT>
<DIV><FONT face="Arial Cyr" size=2>
<DIV><FONT face="Arial Cyr" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial Cyr" size=2>ttys:</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>&nbsp;&nbsp;&nbsp; 
ttyd1&nbsp;"/usr/libexec/getty std.57600"&nbsp;dialup&nbsp;on 
insecure</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV></FONT><FONT face="Arial Cyr" size=2>gettytab:</FONT></DIV></DIV>
<DIV><FONT face="Arial Cyr" size=2>&nbsp;&nbsp;&nbsp; 
std.57600|57600-baud:\<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
:np:sp#57600:<BR>&nbsp;&nbsp;&nbsp;&nbsp; :pp=/usr/sbin/pppd.sh<BR></FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>pppd.sh:</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>&nbsp;&nbsp;&nbsp; 
#!/bin/sh<BR>&nbsp;&nbsp;&nbsp; /usr/sbin/pppd auth login require-pap 
refuse-chap</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial Cyr" size=2>pap-secrets:</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>&nbsp;&nbsp;&nbsp; 
pppuser&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;panasonic&nbsp;*</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial Cyr" size=2>passwd:</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>&nbsp;&nbsp;&nbsp; 
pppuser:*:1001:1001:ppp:/home/pppuser:/usr/sbin/pppd</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial Cyr" size=2>ppp.log:</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>Feb 14 11:05:50 gateway2 pppd[213]: pppd 
2.3.5 started by root, uid 0<BR>Feb 14 11:06:31 gateway2 pppd[213]: Using 
interface ppp0<BR>Feb 14 11:06:31 gateway2 pppd[213]: Connect: ppp0 &lt;--&gt; 
/dev/ttyd1<BR>Feb 14 11:06:31 gateway2 pppd[213]: Warning - secret file 
/etc/ppp/pap-secrets has world and/or group access<BR>Feb 14 11:06:31 gateway2 
pppd[213]: sent [LCP ConfReq id=0x1 &lt;magic 0x101ba770&gt; &lt;pcomp&gt; 
&lt;accomp&gt;]<BR>Feb 14 11:06:58 gateway2 last message repeated 9 times<BR>Feb 
14 11:07:01 gateway2 pppd[213]: LCP: timeout sending Config-Requests<BR>Feb 14 
11:07:02 gateway2 pppd[213]: Modem hangup, connected for 1 minutes<BR>Feb 14 
11:07:02 gateway2 pppd[213]: Connection terminated, connected for 1 minutes 
<BR>Feb 14 11:07:02 gateway2 pppd[213]: Couldn't restore device fd flags: 
Inappropriate ioctl for device<BR>Feb 14 11:07:02 gateway2 pppd[213]: 
ioctl(TIOCSETD): Inappropriate ioctl for device<BR>Feb 14 11:07:03 gateway2 
pppd[213]: tcsetattr: Inappropriate ioctl for device<BR>Feb 14 11:07:31 gateway2 
pppd[213]: Terminating on signal 15.<BR>Feb 14 11:07:31 gateway2 pppd[213]: 
Exit.</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial Cyr" size=2>Проблема:</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>&nbsp;&nbsp;&nbsp; Когда с виндовс98 звоню, 
то хендшейк вроде происходит, затем эта виндовс98 пишет что проверяет имя и 
пароль пользователя (довольно долго) и в конце концов выдаёт сообщение, что 
удаенная сторона не отвечает на запросы сети обратитесь к 
администратору.</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial Cyr" size=2>Вопрос: научите как надо.<BR></FONT><FONT 
face="Arial Cyr" size=2>vlad</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial Cyr" size=2>email 
vlad@sberbank.dp.ua<BR><BR><BR></DIV></FONT>
<DIV><FONT face="Arial Cyr" size=2>&nbsp;</DIV></FONT>
<DIV><FONT face="Arial Cyr" size=2><BR>&nbsp;</DIV></FONT>
<DIV>&nbsp;</DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801c1b537$164c1c40$1e20230a>