Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 98 16:12:00 +0200
From:      THIERRY.HERBELOT@telspace.alcatel.fr
To:        styih@mail.3pstudio.net
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   =?ISO-8859-1?Q?R=E9p_:_[help]Problems_with_PPP_dialin_Server_with_mgetty_..?=
Message-ID:  <H000057c015a94b2@MHS>
In-Reply-To: <3561796A.E3F3E94C@mail.3pstudio.net>

next in thread | previous in thread | raw e-mail | index | archive | help
     I have a similar config here
     
     differences :
     no pppuser in passwd
     
     cuaa0   "/usr/local/sbin/mgetty -D -s 19200 cuaa0"      dialup  on 
     insecure
     in /etc/ttys

set ifaddr xxx.yyy.zzz.12/0 xxx.yyy.zzz.11/0 255.255.255.255
in /etc/ppp.conf (note /0 above)

        TfH

____________________________ Séparateur Réponse ________________________________
Objet : [help]Problems with PPP dialin Server with mgetty ...
Auteur :  styih@mail.3pstudio.net
Date :    19/05/98 14:22


I set my PPP dialin as follows :
Server : Freebsd 2.2.6 Release
Client : Win95
It seems that ppp connection is ok, but no data transmission.
When connecting server , the RD and SD led light but after building the 
connction, the RD and SD never flash.
Please help me with any sugguestion. Thank you.
     
Below is the setup steps of my dialin server: 
================
*I compiled mgetty with AutoPPP options
     
*edit /etc/ttys:
cuaa1    "/usr/local/sbin/mgetty" dialup on
     
*kill -1 1
     
***as the time , I tried to use "TERM" to connect my server and it was 
ok!
     
and then
     
*I edit /usr/local/etc/mgetty+sendfax/login.config 
/AutoPPP/  -    -    /etc/ppp/ppp-pap-dialup
     
*edit a file /etc/ppp/ppp-pap-dialup 
#!/bin/sh
TTY=`tty`
IDENT=`basename $TTY`
exec /usr/sbin/ppp -direct pap$IDENT
     
*vipw
pppuser:*:1051:66:0:0:PPPuser:/home/ppp:/etc/ppp/ppp-pap-dialup
     
*/etc/ppp/ppp.conf
default:
 set log Phase Chat Connect Carrier LCP IPCP CCP tun command 
 enable msext
 set ns 210.66.235.8 139.175.55.244
     
papcuaa1:
 enable pap
 enable passwdauth
 set ifaddr 210.66.235.120 210.66.235.121 255.255.255.255 
 enable proxy
     
*/etc/ppp/ppp.linkup
MYADDR:
 delete ALL
 add 0 0 HISADDR
     
*/etc/ppp/ppp.linkdown
MYADDR:
     
*/etc/ppp/ppp.secret
empty
     
*edit /etc/rc.conf
network_interfaces='lo0 de0 tun0"
ifconfig_tun0=
     
*reboot
     
*the output of the netstat -rn command(before connecting) 
Routing tables
     
Internet:
Destination         Gateway                  Flags     Refs     Use 
Netif Expire
default                 210.66.235.254     UGSc        0        0 
de0
127.0.0.1            127.0.0.1               UH          0 
0       lo0
210.66.235         link#1                    UC          0        0 
210.66.235.8      0:40:5:39:9b:27      UHLW        0        2
de0   1132
210.66.235.254  link#1                     UHLW        1        0
     
*the output of the netstat -rn command(after connecting) 
Routing tables
     
Internet:
Destination        Gateway            Flags     Refs     Use     Netif 
Expire
default            210.66.235.254     UGSc        0        0       de0 
127.0.0.1          127.0.0.1          UH          0        0       lo0 
210.66.235         link#1             UC          0        0 
210.66.235.8       0:40:5:39:9b:27    UHLW        0        3       de0 
1142
210.66.235.121     210.66.235.120     UH          0        0      tun0 
210.66.235.121     0:80:c8:66:24:5c   UHLS2       0        0       de0 
210.66.235.254     link#1             UHLW        1        0
     
*the log file /var/log/ppp.log
May 18 20:43:57 theatre ppp[173]: Command: default: enable msext
May 18 20:43:57 theatre ppp[173]: Command: default: set ns 210.66.235.8 
139.175.55.244
May 18 20:43:57 theatre ppp[173]: tun0: Phase: Using interface: tun0 
May 18 20:43:57 theatre ppp[173]: tun0: Command: papcuaa1: enable pap 
May 18 20:43:57 theatre ppp[173]: tun0: Command: papcuaa1: enable 
passwdauth
May 18 20:43:57 theatre ppp[173]: tun0: Command: papcuaa1: set ifaddr 
210.66.235.120 210.66.235.121 255.255.255.255
May 18 20:43:57 theatre ppp[173]: tun0: Command: papcuaa1: enable proxy 
May 18 20:43:57 theatre ppp[173]: tun0: Phase: PPP Started.
May 18 20:43:57 theatre ppp[173]: tun0: Phase: Connected!
May 18 20:43:57 theatre ppp[173]: tun0: Phase: Packet mode enabled 
May 18 20:43:57 theatre ppp[173]: tun0: LCP: State change Initial --> 
Closed
May 18 20:43:57 theatre ppp[173]: tun0: LCP: State change Closed --> 
Stopped
May 18 20:43:58 theatre ppp[173]: tun0: LCP: LcpSendConfigReq 
May 18 20:43:58 theatre ppp[173]: tun0: LCP:  ACFCOMP[2]
May 18 20:43:58 theatre ppp[173]: tun0: LCP:  PROTOCOMP[2]
May 18 20:43:58 theatre ppp[173]: tun0: LCP:  ACCMAP[6] 0x00000000 
May 18 20:43:58 theatre ppp[173]: tun0: LCP:  MRU[4] 1500
May 18 20:43:58 theatre ppp[173]: tun0: LCP:  MAGICNUM[6] 0x0a3574cd 
May 18 20:43:58 theatre ppp[173]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP) 
May 18 20:43:58 theatre ppp[173]: tun0: LCP: State change Stopped --> 
Req-Sent
May 18 20:43:58 theatre ppp[173]: tun0: LCP: Received Configure Ack (1) 
state = Req-Sent (6)
May 18 20:43:58 theatre ppp[173]: tun0: LCP: State change Req-Sent --> 
Ack-Rcvd
May 18 20:44:00 theatre ppp[173]: tun0: LCP: Received Configure Request 
(2) state = Ack-Rcvd (7)
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  ACCMAP[6] 0x000a0000 
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  MAGICNUM[6] 0x0099dafb 
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  PROTOCOMP[2]
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  ACFCOMP[2]
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  CALLBACK[3] 06
May 18 20:44:00 theatre ppp[173]: tun0: LCP: SendConfigRej(Ack-Rcvd) 
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  CALLBACK[3] 06
May 18 20:44:00 theatre ppp[173]: tun0: LCP: Received Configure Request 
(3) state = Ack-Rcvd (7)
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  ACCMAP[6] 0x000a0000 
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  MAGICNUM[6] 0x0099dafb 
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  PROTOCOMP[2]
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  ACFCOMP[2]
May 18 20:44:00 theatre ppp[173]: tun0: LCP: SendConfigAck(Ack-Rcvd) 
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  ACCMAP[6] 0x000a0000 
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  MAGICNUM[6] 0x0099dafb 
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  PROTOCOMP[2]
May 18 20:44:00 theatre ppp[173]: tun0: LCP:  ACFCOMP[2]
May 18 20:44:00 theatre ppp[173]: tun0: LCP: State change Ack-Rcvd --> 
Opened
May 18 20:44:00 theatre ppp[173]: tun0: LCP: LcpLayerUp
May 18 20:44:00 theatre ppp[173]: tun0: Phase: NewPhase: Authenticate 
May 18 20:44:00 theatre ppp[173]: tun0: Phase:  his = none, mine = PAP 
May 18 20:44:00 theatre ppp[173]: tun0: Phase: PapInput: REQUEST
May 18 20:44:00 theatre ppp[173]: tun0: LCP: Using PasswdAuth 
May 18 20:44:00 theatre ppp[173]: tun0: Phase: PapOutput: ACK 
May 18 20:44:00 theatre ppp[173]: tun0: Phase: NewPhase: Network
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: State change Initial --> 
Closed
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: IPCP Up event!! 
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: IpcpSendConfigReq
May 18 20:44:00 theatre ppp[173]: tun0: IPCP:  IPADDR[6] 210.66.235.120 
May 18 20:44:00 theatre ppp[173]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots 
with slot compres
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: State change Closed --> 
Req-Sent
May 18 20:44:00 theatre ppp[173]: tun0: CCP: State change Initial --> 
Closed
May 18 20:44:00 theatre ppp[173]: tun0: CCP: CCP Up event!! 
May 18 20:44:00 theatre ppp[173]: tun0: CCP: CcpSendConfigReq
May 18 20:44:00 theatre ppp[173]: tun0: CCP:  DEFLATE[4] win 15 
May 18 20:44:00 theatre ppp[173]: tun0: CCP:  PRED1[2]
May 18 20:44:00 theatre ppp[173]: tun0: CCP: State change Closed --> 
Req-Sent
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: Received Configure Request
     
(1) state = Req-Sent (6)
May 18 20:44:00 theatre ppp[173]: tun0: IPCP:  COMPPROTO[6]  16 VJ slots
     
with slot compression
May 18 20:44:00 theatre ppp[173]: tun0: IPCP:  IPADDR[6]  210.66.235.4 
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: MS NS req 
129:0.0.0.0->0.0.0.0 - nak
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: MS NBNS req 130:0.0.0.0 ok
     
- ack
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: MS NS req 
131:0.0.0.0->0.0.0.0 - nak
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: MS NBNS req 132:0.0.0.0 ok
     
- ack
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: SendConfigNak(Req-Sent) 
May 18 20:44:00 theatre ppp[173]: tun0: IPCP:  IPADDR[6]  210.66.235.121
     
May 18 20:44:00 theatre ppp[173]: tun0: CCP: Received Configure Request 
(1) state = Req-Sent (6)
May 18 20:44:00 theatre ppp[173]: tun0: CCP:  MSPPC[6] 
May 18 20:44:00 theatre ppp[173]: tun0: CCP:  STAC[5]
May 18 20:44:00 theatre ppp[173]: tun0: CCP: SendConfigRej(Req-Sent) 
May 18 20:44:00 theatre ppp[173]: tun0: CCP:  MSPPC[6]
May 18 20:44:00 theatre ppp[173]: tun0: CCP:  STAC[5]
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: Received Configure Ack (1)
     
state = Req-Sent (6)
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: State change Req-Sent --> 
Ack-Rcvd
May 18 20:44:00 theatre ppp[173]: tun0: CCP: Received Configure Reject 
(1) state = Req-Sent (6)
May 18 20:44:00 theatre ppp[173]: tun0: CCP: RecvConfigRej. 
May 18 20:44:00 theatre ppp[173]: tun0: CCP:  DEFLATE[4] 
May 18 20:44:00 theatre ppp[173]: tun0: CCP:  PRED1[2]
May 18 20:44:00 theatre ppp[173]: tun0: CCP: CcpSendConfigReq
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: Received Configure Request
     
(2) state = Ack-Rcvd (7)
May 18 20:44:00 theatre ppp[173]: tun0: IPCP:  COMPPROTO[6]  16 VJ slots
     
with slot compression
May 18 20:44:00 theatre ppp[173]: tun0: IPCP:  IPADDR[6]  210.66.235.121
     
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: MS NS req 129:210.66.235.8
     
ok - ack
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: MS NBNS req 130:0.0.0.0 ok
     
- ack
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: MS NS req 
131:139.175.55.244 ok - ack
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: MS NBNS req 132:0.0.0.0 ok
     
- ack
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: SendConfigAck(Ack-Rcvd) 
May 18 20:44:00 theatre ppp[173]: tun0: IPCP:  COMPPROTO[6]  16 VJ slots
     
with slot compression
May 18 20:44:00 theatre ppp[173]: tun0: IPCP:  IPADDR[6]  210.66.235.121
     
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: State change Ack-Rcvd --> 
Opened
May 18 20:44:00 theatre ppp[173]: tun0: IPCP: IpcpLayerUp(9).
May 18 20:44:00 theatre ppp[173]: tun0: IPCP:  myaddr = 210.66.235.120 
hisaddr = 210.66.235.121
May 18 20:44:00 theatre ppp[173]: tun0: Phase: Found interface de0 for 
proxy arp
May 18 20:44:00 theatre ppp[173]: tun0: LCP: OsLinkup: 210.66.235.121 
May 18 20:44:00 theatre ppp[173]: tun0: Command: MYADDR: delete ALL
May 18 20:44:00 theatre ppp[173]: tun0: Command: MYADDR: add 0 0 HISADDR
     
May 18 20:44:00 theatre ppp[173]: tun0: Warning: Add route failed: 
0.0.0.0 already exists
May 18 20:44:00 theatre ppp[173]: tun0: CCP: Received Configure Ack (2) 
state = Req-Sent (6)
May 18 20:44:00 theatre ppp[173]: tun0: CCP: State change Req-Sent --> 
Ack-Rcvd
May 18 20:44:03 theatre ppp[173]: tun0: CCP: Received Configure Request 
(2) state = Ack-Rcvd (7)
May 18 20:44:03 theatre ppp[173]: tun0: CCP: SendConfigAck(Ack-Rcvd) 
May 18 20:44:03 theatre ppp[173]: tun0: CCP: State change Ack-Rcvd --> 
Opened
May 18 20:44:03 theatre ppp[173]: tun0: CCP: CcpLayerUp(9).
May 18 20:44:03 theatre ppp[173]: tun0: CCP: Out = none[-1], In = 
none[-1]
May 18 20:44:03 theatre ppp[173]: tun0: CCP: Received Terminate Request 
(3) state = Opened (9)
May 18 20:44:03 theatre ppp[173]: tun0: CCP: CcpLayerDown.
May 18 20:44:03 theatre ppp[173]: tun0: CCP: CcpSendTerminateAck
May 18 20:44:03 theatre ppp[173]: tun0: CCP: State change Opened --> 
Stopping
May 18 20:44:06 theatre ppp[173]: tun0: CCP: State change Stopping --> 
Stopped
May 18 20:44:06 theatre ppp[173]: tun0: CCP: CcpLayerFinish.
May 18 20:45:05 theatre ppp[173]: tun0: LCP: Received Terminate Request 
(4) state = Opened (9)
May 18 20:45:05 theatre ppp[173]: tun0: IPCP: OsLinkdown: 210.66.235.121
     
May 18 20:45:05 theatre ppp[173]: tun0: IPCP: IpcpLayerDown.
May 18 20:45:05 theatre ppp[173]: tun0: IPCP: Connect time: 65 secs: 0 
octets in, 0 octets out
May 18 20:45:05 theatre ppp[173]: tun0: IPCP:  total 0 bytes/sec
May 18 20:45:05 theatre ppp[173]: tun0: IPCP: State change Opened --> 
Starting
May 18 20:45:05 theatre ppp[173]: tun0: CCP: CcpLayerStart.
May 18 20:45:05 theatre ppp[173]: tun0: CCP: State change Stopped --> 
Starting
May 18 20:45:05 theatre ppp[173]: tun0: LCP: LcpLayerDown
May 18 20:45:05 theatre ppp[173]: tun0: LCP: LcpSendTerminateAck. 
May 18 20:45:05 theatre ppp[173]: tun0: LCP: State change Opened --> 
Stopping
May 18 20:45:07 theatre ppp[173]: tun0: Phase: Disconnected!
May 18 20:45:07 theatre ppp[173]: tun0: LCP: State change Stopping --> 
Starting
May 18 20:45:07 theatre ppp[173]: tun0: LCP: LcpLayerFinish
May 18 20:45:07 theatre ppp[173]: tun0: Phase: Modem: Connect time: 70 
secs: 443 octets in, 333 octets out
May 18 20:45:07 theatre ppp[173]: tun0: Phase:  total 11 bytes/sec 
May 18 20:45:07 theatre ppp[173]: tun0: Phase: NewPhase: Dead
May 18 20:45:08 theatre ppp[173]: tun0: Phase: PPP Terminated (dead).
     
     
     
     
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message


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?H000057c015a94b2>