CentOS 5 VPN Server won't work
- by Miro Markarian
I have a CentOS 5 server configured to be both a L2TP server and a PPTP server + a radius server for hosting the AAA.
My problem is that, the L2TP works great and I can connect to it, but can't connect to PPTP and every-time it ends up with error #619 when it gets to the verifying username and password section.
Here is the log I got from /var/log/messages
Dec 17 07:40:02 serverdl pptpd[8570]: CTRL: Client 5.52.247.62 control connection started
Dec 17 07:40:03 serverdl pptpd[8570]: CTRL: Starting call (launching pppd, opening GRE)
Dec 17 07:40:03 serverdl pppd[8571]: Plugin radius.so loaded.
Dec 17 07:40:03 serverdl pppd[8571]: RADIUS plugin initialized.
Dec 17 07:40:03 serverdl pppd[8571]: Plugin radattr.so loaded.
Dec 17 07:40:03 serverdl pppd[8571]: RADATTR plugin initialized.
Dec 17 07:40:03 serverdl pppd[8571]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Dec 17 07:40:03 serverdl pppd[8571]: pptpd-logwtmp: $Version$
Dec 17 07:40:03 serverdl pppd[8571]: pppd 2.4.4 started by root, uid 0
Dec 17 07:40:03 serverdl pppd[8571]: Using interface ppp0
Dec 17 07:40:03 serverdl pppd[8571]: Connect: ppp0 <--> /dev/pts/2
Dec 17 07:40:03 serverdl pptpd[8570]: GRE: read(fd=7,buffer=80515e0,len=8260) from network failed: status = -1 error = Protocol not available
Dec 17 07:40:03 serverdl pptpd[8570]: CTRL: GRE read or PTY write failed (gre,pty)=(7,6)
Dec 17 07:40:03 serverdl pppd[8571]: Modem hangup
Dec 17 07:40:03 serverdl pppd[8571]: Connection terminated.
Dec 17 07:40:03 serverdl pppd[8571]: Exit.
Dec 17 07:40:03 serverdl pptpd[8570]: CTRL: Client 5.52.247.62 control connection finished
Just yesterday when I hadn't set up the L2TP yet PPTP was working great but then I uninstalled it and removed all it's config from /etc/* and installed L2TP first and then installed PPTP after it. and then it stopped to work.
I believe it must be a radiusclient issue because both of the PPTP and L2TP services use radius to authenticate.
And another thing I think must be the issue is that when assigning IPs to the PPP interfaces, I have done the following config. Is that right?
For L2TP:
localip 10.10.10.1
remoteip 10.10.10.2-254
For PPTP:
localip 10.10.9.1
remoteip 10.10.9.2-254