[pptp-server] linux-client

Alaa Alamood aaa at netman.dk
Wed Jul 12 08:13:53 CDT 2000


Hi

No body can help with this problem



Alaa Alamood wrote:

> Alaa Alamood wrote:
>
> > "Kenneth E. Lussier" wrote:
> >
> > I still have the same problem, that when the pptp client connect to the server
> > and all the authnticvation accepted it take while and it disconnect after that
> >
> > I set in my option file
> > logfile /var/ppp/log
> >
> > the following line show the disconnection messages
> >
> > Script /etc/ppp/ip-up started (pid 1988)
> > Script /etc/ppp/ip-up finished (pid 1988), status = 0x0
> > Modem hangup
> > Can't execute /etc/ppp/auth-down: Invalid argument
> > ipcp: down
> > Untimeout 0x805959c:0x0.
> > Script /etc/ppp/ip-down started (pid 2026)
> > Connection terminated.
> > Connect time 1.5 minutes.
> > Sent 459 bytes, received 375 bytes.
> > Waiting for 1 child processes...
> >   script /etc/ppp/ip-down, pid 2026
> > Script /etc/ppp/ip-down finished (pid 2026), status = 0x0
> >
> > can you help with that
> >
> > thanks a lot
> >
> > > Glad to heat that the authentication is working now.. What was the final
> > > resolution?
> > >
> > > As for the new problem,  from the server side logs, it looks like the
> > > connetion is made, but the client is not responding, at lest not it
> > > time:
> > > Jun 22 04:10:28 GRE: Discarding duplicate packet
> > > Jun 22 04:11:35 CTRL: Sending ECHO REQ id 1
> > > Jun 22 04:11:35 CTRL: Made a ECHO REQ packet
> > > Jun 22 04:11:35 CTRL: I wrote 16 bytes to the client.
> > > Jun 22 04:11:35 CTRL: Sent packet to client
> > > Jun 22 04:12:40 CTRL: Session timed out, ending call
> > > Jun 22 04:12:40 CTRL: Client 193.88.72.75 control connection finished
> > > Jun 22 04:12:40 CTRL: Exiting with active call
> > >
> > > When I  encountered this issue, there were two problems: a firewall
> > > problem and a routing problem. The traffic was allowed out from the
> > > server, but the firewall didn't let the return traffic in, and the route
> > > on the server was trying to send the request packets through the wrong
> > > NIC. is there anything between you and the server? Sometimes even a
> > > router can be the problem if it is on a LAN, but 2 different subnets.
> > > Firewalling code on the pptp server can also be a problem if it doesn't
> > > allow for return traffic.
> > >
> > > Kenny
> > > Alaa Alamood wrote:
> > > >
> > > > "Kenneth E. Lussier" wrote:
> > > >
> > > > > Ok,
> > > > > The problem remains that the client is trying to make the server
> > > > > authenticate to it. If it's not because of the optios file, then it
> > > > > could be the chap-secrets file. I noticed that you have it set up for
> > > > > two-way authentication. On the client side, try something like this:
> > > > > username        *       password        *
> > > > >
> > > > > with nothing else. I never use two-way authentication unless I absolutly
> > > > > have to. Give that a try and send me the output of both the client and
> > > > > server logs again
> > > > >
> > > > > Kenny
> > > > >
> > > > >
> > > >
> > > > Thanks
> > > >
> > > > I have solve the problem with the authentication, but I got another problem, that when
> > > > the connection established, between the client and server the client disconnect after
> > > > about 2 minutes, when i write
> > > > ps -ef |grep pptp
> > > > durinng this two minuts, I get
> > > >
> > > > pptp: call manager for xxx.xxx.xxx
> > > > pptp: GRE-to-ppp gateway on /dev
> > > >
> > > > if I do the same for ppp I will get
> > > > /usr/sbin/pppd   /dev/ttya0 38400
> > > > running
> > > >
> > > > after this two minuts I got Closing pptp connection
> > > >
> > > > now my  /etc/ppp/options on the client side look like
> > > >
> > > > lock
> > > > debug
> > > > noauth
> > > > name snow.netman.dk
> > > > user aaa
> > > > password PASSWORD
> > > > allow-ip yyy.yyy.yyy.yyy           #server ip address
> > > > +chapms
> > > > +chapms-v2
> > > > mppe-40
> > > > mppe-128
> > > > mppe-stateless
> > > > defaultroute
> > > > logfile /var/log/log.options
> > > >
> > > > the log message is
> > > > Jun 22 11:36:02 mobile50 (unknown)[1381]:
> > > > log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:531]: Client connection established.
> > > > Jun 22 11:36:03 mobile50 (unknown)[1381]:
> > > > log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:637]: Outgoing call established.
> > > >
> > > > Jun 22 11:39:35 mobile50 (unknown)[1312]: log[pptp_conn_close:pptp_ctrl.c:275]:
> > > > Closing PPTP connection
> > > >
> > > > ______________________
> > > >
> > > > on the server side
> > > >
> > > > Jun 22 04:10:25 pptp_server  pptpd[1160]: MGR: Launching /usr/sbin/pptpctrl to handle
> > > > client
> > > > Jun 22 04:10:25 pptp_server pptpd[1160]: CTRL: local address = 172.17.0.1
> > > > Jun 22 04:10:25 pptp_server pptpd[1160]: CTRL: remote address = 172.17.0.50
> > > > Jun 22 04:10:25 pptp_server pptpd[1160]: CTRL: pppd speed = 115200
> > > > Jun 22 04:10:25 pptp_server pptpd[1160]: CTRL: pppd options file = /etc/ppp/options
> > > > Jun 22 04:10:25 pptp_server pptpd[1160]: CTRL: Client 193.88.72.75 control connection
> > > > started
> > > > Jun 22 04:10:25 pptp_server pptpd[1160]: CTRL: Received PPTP Control Message (type: 1)
> > > >
> > > > Jun 22 04:10:25 pptp_server pptpd[1160]: CTRL: Made a START CTRL CONN RPLY packet
> > > > Jun 22 04:10:25 pptp_server pptpd[1160]: CTRL: I wrote 156 bytes to the client.
> > > > Jun 22 04:10:25 pptp_server pptpd[1160]: CTRL: Sent packet to client
> > > > Jun 22 04:10:26 pptp_server pptpd[1160]: CTRL: Received PPTP Control Message (type: 7)
> > > >
> > > > Jun 22 04:10:26 pptp_server pptpd[1160]: CTRL: Set parameters to 152 maxbps, 3 window
> > > > size
> > > > Jun 22 04:10:26 pptp_server pptpd[1160]: CTRL: Made a OUT CALL RPLY packet
> > > > Jun 22 04:10:26 pptp_server pptpd[1160]: CTRL: Starting call (launching pppd, opening
> > > > GRE)
> > > > Jun 22 04:10:26 pptp_server pptpd[1160]: CTRL: pty_fd = 5
> > > > Jun 22 04:10:26 pptp_server pptpd[1160]: CTRL: tty_fd = 6
> > > > Jun 22 04:10:26 pptp_server pptpd[1161]: CTRL (PPPD Launcher): Connection speed =
> > > > 115200
> > > > Jun 22 04:10:26 pptp_server pptpd[1160]: CTRL: I wrote 32 bytes to the client.
> > > > Jun 22 04:10:26 pptp_server pptpd[1160]: CTRL: Sent packet to client
> > > > Jun 22 04:10:26 pptp_server pptpd[1161]: CTRL (PPPD Launcher): local address =
> > > > 172.17.0.1
> > > > Jun 22 04:10:26 pptp_server pptpd[1161]: CTRL (PPPD Launcher): remote address =
> > > > 172.17.0.50
> > > > Jun 22 04:10:28 pptp_server pptpd[1160]: GRE: Discarding duplicate packet
> > > > Jun 22 04:11:35 pptp_server pptpd[1160]: CTRL: Sending ECHO REQ id 1
> > > > Jun 22 04:11:35 pptp_server pptpd[1160]: CTRL: Made a ECHO REQ packet
> > > > Jun 22 04:11:35 pptp_server pptpd[1160]: CTRL: I wrote 16 bytes to the client.
> > > > Jun 22 04:11:35 pptp_server pptpd[1160]: CTRL: Sent packet to client
> > > > Jun 22 04:12:40 pptp_server pptpd[1160]: CTRL: Session timed out, ending call
> > > > Jun 22 04:12:40 pptp_server pptpd[1160]: CTRL: Client 193.88.72.75 control connection
> > > > finished
> > > > Jun 22 04:12:40 pptp_server pptpd[1160]: CTRL: Exiting with active call
> > > > Jun 22 04:12:40 pptp_server pptpd[1160]: CTRL: Made a CALL DISCONNECT RPLY packet
> > > > Jun 22 04:12:40 pptp_server pptpd[1160]: CTRL: I wrote 148 bytes to the client.
> > > > Jun 22 04:12:40 pptp_server pptpd[1160]: CTRL: Sent packet to client
> > > > Jun 22 04:12:40 pptp_server pptpd[1160]: CTRL: Made a STOP CTRL REQ packet
> > > > Jun 22 04:12:40 pptp_server pptpd[1160]: CTRL: I wrote 16 bytes to the client.
> > > > Jun 22 04:12:40 pptp_server pptpd[1160]: CTRL: Sent packet to client
> > > > Jun 22 04:12:45 pptp_server pptpd[1160]: CTRL: Exiting now
> > > > Jun 22 04:12:45 pptp_server pptpd[748]: MGR: Reaped child 1160
> > > >
> > > > thanks for help
> > > >
> > > > > Alaa Alamood wrote:
> > > > > >
> > > > > > "Kenneth E. Lussier" wrote:
> > > > > >
> > > > > > Hi
> > > > > >
> > > > > > I still have the same problem
> > > > > >
> > > > > > > try using this for an options file on the client side:
> > > > > > >
> > > > > > > debug
> > > > > > > user your_username_here
> > > > > > > password your_password_here
> > > > > > > noauth
> > > > > > > lock
> > > > > > > defaultroute
> > > > > > >
> > > > > > > I believe that the client will require the server to authenticate bey
> > > > > > > default, so the `noauth` option is required.
> > > > > > > Kenny
> > > > > > >
> > > > > > > --
> > > > > > > Kenny Lussier
> > > > > > > Systems Administrator
> > > > > > > Mission Critical Linux
> > > > > > > ***********************************
> > > > > > > The road to happiness is paved
> > > > > > > with potholes. The road to
> > > > > > > Hell is paved with good intentions.
> > > > > > > Does the DPW know about this??
> > > > > > > ***********************************
> > > > > > >
> > > > > > > Alaa Alamood wrote:
> > > > > > > >
> > > > > > > > Hi
> > > > > > > >
> > > > > > > > When we tried to the pptp server from pptp client we got the following logs,
> > > > > > > > we have tested the server by using windows(95, 98 ,nt, 2000) clients, and it
> > > > > > > > working without any problems
> > > > > > > >
> > > > > > > > 1- PPTP server side logs
> > > > > > > >
> > > > > > > > Jun 19 09:55:54 pptp_server pptpd[18938]: MGR: Launching /usr/sbin/pptpctrl
> > > > > > > > to handle client
> > > > > > > > Jun 19 09:55:54  pptp_server pptpd[18938]: CTRL: local address = 172.16.1.1
> > > > > > > > Jun 19 09:55:54 pptp_server pptpd[18938]: CTRL: remote address = 172.16.0.10
> > > > > > > > Jun 19 09:55:54 pptp_server pptpd[18938]: CTRL: pppd speed = 115200
> > > > > > > > Jun 19 09:55:54 pptp_server pptpd[18938]: CTRL: pppd options file =
> > > > > > > > /etc/ppp/options
> > > > > > > > Jun 19 09:55:54 pptp_server pptpd[18938]: CTRL: Client 213.237.2.96 control
> > > > > > > > connection started
> > > > > > > > Jun 19 09:55:55 pptp_server pptpd[18938]: CTRL: Received PPTP Control Message
> > > > > > > > (type: 1)
> > > > > > > > Jun 19 09:55:55 pptp_server pptpd[18938]: CTRL: Made a START CTRL CONN RPLY
> > > > > > > > packet
> > > > > > > > Jun 19 09:55:55 pptp_server pptpd[18938]: CTRL: I wrote 156 bytes to the
> > > > > > > > client.
> > > > > > > > Jun 19 09:55:55 pptp_server pptpd[18938]: CTRL: Sent packet to client
> > > > > > > > Jun 19 09:55:55 pptp_server pptpd[18938]: CTRL: Received PPTP Control Message
> > > > > > > > (type: 7)
> > > > > > > > Jun 19 09:55:55 pptp_server pptpd[18938]: CTRL: Set parameters to 152 maxbps,
> > > > > > > > 3 window size
> > > > > > > > Jun 19 09:55:55 pptp_server pptpd[18938]: CTRL: Made a OUT CALL RPLY packet
> > > > > > > > Jun 19 09:55:55 pptp_server pptpd[18938]: CTRL: Starting call (launching
> > > > > > > > pppd, opening GRE)
> > > > > > > > Jun 19 09:55:55 pptp_server pptpd[18938]: CTRL: pty_fd = 5
> > > > > > > > Jun 19 09:55:55 pptp_server pptpd[18938]: CTRL: tty_fd = 6
> > > > > > > > Jun 19 09:55:56 pptp_server pptpd[18939]: CTRL (PPPD Launcher): Connection
> > > > > > > > speed = 115200
> > > > > > > > Jun 19 09:55:56 pptp_server pptpd[18939]: CTRL (PPPD Launcher): local address
> > > > > > > > = 172.16.1.1
> > > > > > > > Jun 19 09:55:56 pptp_server pptpd[18939]: CTRL (PPPD Launcher): remote
> > > > > > > > address = 172.16.0.10
> > > > > > > > Jun 19 09:55:56 pptp_server pptpd[18938]: CTRL: I wrote 32 bytes to the
> > > > > > > > client.
> > > > > > > > Jun 19 09:55:56 pptp_server pptpd[18938]: CTRL: Sent packet to client
> > > > > > > > Jun 19 09:55:56 pptp_server modprobe: Note: /etc/conf.modules is more recent
> > > > > > > > than /lib/modules/2.2.14-5.0/modules.dep
> > > > > > > > Jun 19 09:55:58 pptp_server pptpd[18938]: GRE: Discarding duplicate packet
> > > > > > > > Jun 19 09:56:02 pptp_server pptpd[18938]: GRE:
> > > > > > > > read(fd=5,buffer=804d7e0,len=8196) from PTY failed: status = -1 error =
> > > > > > > > Input/o
> > > > > > > > utput error
> > > > > > > > Jun 19 09:56:02 pptp_server pptpd[18938]: CTRL: PTY read or GRE write failed
> > > > > > > > (pty,gre)=(5,6)
> > > > > > > > Jun 19 09:56:02 pptp_server pptpd[18938]: CTRL: Client 213.237.2.96 control
> > > > > > > > connection finished
> > > > > > > > Jun 19 09:56:02 pptp_server pptpd[18938]: CTRL: Exiting now
> > > > > > > > Jun 19 09:56:03 pptp_server pptpd[749]: MGR: Reaped child 18938
> > > > > > > >
> > > > > > > > 2- Client logs side
> > > > > > > >
> > > > > > > >         Jun 19 19:23:04 arthur (unknown)[1108]:
> > > > > > > > log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:531]: Client connection
> > > > > > > > established.
> > > > > > > > Jun 19 19:23:04 arthur (unknown)[1108]:
> > > > > > > > log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:637]: Outgoing call established.
> > > > > > > > Jun 19 19:23:04 arthur pppd[1111]: pppd 2.3.10 started by root, uid 0
> > > > > > > > Jun 19 19:23:04 arthur pppd[1111]: Using interface ppp1
> > > > > > > > Jun 19 19:23:04 arthur pppd[1111]: Connect: ppp1 <--> /dev/ttya0
> > > > > > > > Jun 19 19:23:08 arthur pppd[1111]: peer refused to authenticate: terminating
> > > > > > > > link
> > > > > > > > Jun 19 19:23:08 arthur pppd[1111]: Connection terminated.
> > > > > > > > Jun 19 19:23:09 arthur pppd[1111]: Exit.
> > > > > > > >
> > > > > > > > "Kenneth E. Lussier" wrote:
> > > > > > > >
> > > > > > > > > I'm assuming that you are connecting to a poptop server. Do you log
> > > > > > > > > pptpd activity on the server side? If so that might be helpful. If not,
> > > > > > > > > enable it in /etc/syslogd.conf. As for having to reboot after each try,
> > > > > > > > > no you don't. Just delete /var/run/pptp/xxx.xxx.xxx.xxx (ip address of
> > > > > > > > > the server).
> > > > > > > > >
> > > > > > > > > Kenny
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Kenny Lussier
> > > > > > > > > Systems Administrator
> > > > > > > > > Mission Critical Linux
> > > > > > > > > ***********************************
> > > > > > > > > The road to happiness is paved
> > > > > > > > > with potholes. The road to
> > > > > > > > > Hell is paved with good intentions.
> > > > > > > > > Does the DPW know about this??
> > > > > > > > > ***********************************
> > > > > > > > >
> > > > > > > > > Alaa Alamood wrote:
> > > > > > > > > >
> > > > > > > > > > Hi
> > > > > > > > > >
> > > > > > > > > > I have installed linux client 1.0.2, on my redhat 62 box,
> > > > > > > > > >
> > > > > > > > > > the following files look like
> > > > > > > > > >
> > > > > > > > > > 1- /etc/ppp/options
> > > > > > > > > >
> > > > > > > > > >     lock
> > > > > > > > > >     name my_pptp_server
> > > > > > > > > >     +chapms
> > > > > > > > > >     +chapms-v2
> > > > > > > > > >     mppe-40
> > > > > > > > > >     mppe-128
> > > > > > > > > >     mppe-stateless
> > > > > > > > > >
> > > > > > > > > > 2 - /etc/ppp/chap-secret
> > > > > > > > > >
> > > > > > > > > > Alaa                   my_pptp_server       secret         *
> > > > > > > > > > my_pptp_server       aaa                    secret                   *
> > > > > > > > > >
> > > > > > > > > > I tried to connect to the server with
> > > > > > > > > >
> > > > > > > > > > ../pptp xxx.xxx.xxx.xxx  name aaa remotename my_pptp_server
> > > > > > > > > >
> > > > > > > > > > I got
> > > > > > > > > >
> > > > > > > > > > (unknown)[721]: log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:531]: Client
> > > > > > > > > > connection established.
> > > > > > > > > > (unknown)[721]: log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:637]: Outgoing
> > > > > > > > > >
> > > > > > > > > > call established.
> > > > > > > > > >
> > > > > > > > > > and  after 40 secunt I get
> > > > > > > > > >  (unknown)[721]: log[pptp_read_some:pptp_ctrl.c:368]: read error: Broken
> > > > > > > > > >
> > > > > > > > > > pipe
> > > > > > > > > >
> > > > > > > > > > the connection of course will terminat and I have to reboot the mashine
> > > > > > > > > > before I can try again
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > > Alaa
> > > > > > > > > >
> > > > > > > > > > _______________________________________________
> > > > > > > > > > pptp-server maillist  -  pptp-server at lists.schulte.org
> > > > > > > > > > http://lists.schulte.org/mailman/listinfo/pptp-server
> > > > > > > > > > List services provided by www.schulteconsulting.com!
> > > > > > > > > _______________________________________________
> > > > > > > > > pptp-server maillist  -  pptp-server at lists.schulte.org
> > > > > > > > > http://lists.schulte.org/mailman/listinfo/pptp-server
> > > > > > > > > List services provided by www.schulteconsulting.com!
> > > > > > > _______________________________________________
> > > > > > > pptp-server maillist  -  pptp-server at lists.schulte.org
> > > > > > > http://lists.schulte.org/mailman/listinfo/pptp-server
> > > > > > > List services provided by www.schulteconsulting.com!
> > > > > >
> > > > > > _______________________________________________
> > > > > > pptp-server maillist  -  pptp-server at lists.schulte.org
> > > > > > http://lists.schulte.org/mailman/listinfo/pptp-server
> > > > > > List services provided by www.schulteconsulting.com!




More information about the pptp-server mailing list