Koozali.org: home of the SME Server

sme 7.2 pptp problems [SOLVED]

Offline crusader

  • ****
  • 71
  • +0/-0
    • http://www.far-galaxy.de
sme 7.2 pptp problems [SOLVED]
« on: August 05, 2007, 11:56:02 PM »
I've done a newly setup for a sme 7.2 server. I've configured anything as it was on the old 7.1.x system, but now I can't establish no pptp connection. Every time I try to connect I get this error in /var/log/messages

Aug  5 21:43:40 officeserver pptpd[4994]: CTRL: Client 87.163.110.73 control con
nection started
Aug  5 21:43:40 officeserver pptpd[4994]: CTRL: Starting call (launching pppd, o
pening GRE)
Aug  5 21:43:40 officeserver pppd[4995]: Plugin radius.so loaded.
Aug  5 21:43:40 officeserver pppd[4995]: RADIUS plugin initialized.
Aug  5 21:43:40 officeserver kernel: CSLIP: code copyright 1989 Regents of the U
niversity of California
Aug  5 21:43:40 officeserver kernel: PPP generic driver version 2.4.2
Aug  5 21:43:40 officeserver pppd[4995]: pppd 2.4.4 started by root, uid 0
Aug  5 21:43:40 officeserver kernel: divert: not allocating divert_blk for non-e
thernet device ppp0
Aug  5 21:43:40 officeserver pppd[4995]: Using interface ppp0
Aug  5 21:43:40 officeserver pppd[4995]: Connect: ppp0 <--> /dev/pts/1
Aug  5 21:43:40 officeserver pptpd[4994]: CTRL: Ignored a SET LINK INFO packet w
ith real ACCMs!
Aug  5 21:43:50 officeserver pppd[4995]: Peer admin failed CHAP authentication
Aug  5 21:43:50 officeserver pppd[4995]: Connection terminated.
Aug  5 21:43:50 officeserver kernel: divert: no divert_blk to free, ppp0 not eth
ernet
Aug  5 21:43:50 officeserver pppd[4995]: Exit.
Aug  5 21:43:50 officeserver pptpd[4994]: GRE: read(fd=6,buffer=804e5a0,len=8196
) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Aug  5 21:43:50 officeserver pptpd[4994]: CTRL: PTY read or GRE write failed (pt
y,gre)=(6,7)
Aug  5 21:43:50 officeserver pptpd[4994]: CTRL: Reaping child PPP[4995]
Aug  5 21:43:50 officeserver pptpd[4994]: CTRL: Client 87.163.110.73 control con
nection finished

Offline pfloor

  • *****
  • 889
  • +1/-0
sme 7.2 pptp problems [SOLVED]
« Reply #1 on: August 06, 2007, 05:58:00 AM »
Quote
Aug 5 21:43:50 officeserver pppd[4995]: Peer admin failed CHAP authentication
Aug 5 21:43:50 officeserver pppd[4995]: Connection terminated.

This pretty much tells you what is wrong.  Make sure your username and password are correct by retyping them into your client machine and that the user has vpn access enabled in the server-manager.
In life, you must either "Push, Pull or Get out of the way!"

Offline crusader

  • ****
  • 71
  • +0/-0
    • http://www.far-galaxy.de
sme 7.2 pptp problems [SOLVED]
« Reply #2 on: August 06, 2007, 01:00:56 PM »
The problem is that I have only ssh access from outside, so what do I hat to set in "db accounts" and which "signal-events" do I have to trigger. To get my user vpn connectable.

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
sme 7.2 pptp problems [SOLVED]
« Reply #3 on: August 06, 2007, 01:29:45 PM »
Quote from: "crusader"
The problem is that I have only ssh access from outside, so what do I hat to set in "db accounts" and which "signal-events" do I have to trigger. To get my user vpn connectable.
Have you set the number of allowed pptp connections to > 0 in the remote access panel of server-manager?

And then selected VPN Client Access=Yes on the modify users screen?

Trevor B

Offline crusader

  • ****
  • 71
  • +0/-0
    • http://www.far-galaxy.de
sme 7.2 pptp problems [SOLVED]
« Reply #4 on: August 06, 2007, 04:28:49 PM »
Yes I know how to do that on the sme server-manager webgui, but how can I do that on command line level?

Offline raem

  • *
  • 3,972
  • +4/-0
sme 7.2 pptp problems [SOLVED]
« Reply #5 on: August 06, 2007, 05:32:21 PM »
Quote from: "crusader"
The problem is that I have only ssh access from outside, so what do I hat to set in "db accounts" and which "signal-events" do I have to trigger. To get my user vpn connectable.


You would look in the config & accounts db's most probably. No need to do that though.

You can access a text based server manager using ssh.
Once logged in as root, or a user with root privileges, type
console
then select server manager and log in as admin and make your changes.
Alternatively log in as admin at the ssh prompt, then select server manager as above.
Edit your users to enable VPN and edit the Remote Access panel to enable the number of permissable VPN connections.

You should also check/confirm that your router passes the gre protocol correctly.
...

Offline pfloor

  • *****
  • 889
  • +1/-0
sme 7.2 pptp problems [SOLVED]
« Reply #6 on: August 06, 2007, 05:35:35 PM »
Quote from: "crusader"
Yes I know how to do that on the sme server-manager webgui, but how can I do that on command line level?

The easiest (and safest) way to make sure you get everything right is to log on as "admin" through ssh.  Go to #6 "Access server manager" and use the text based server manager.

Otherwise you can try the following, I think it has all the steps required:
Code: [Select]
config setprop pptpd access public sessions 5 status enabled
db accounts setprop username1 VPNClientAccess yes
db accounts setprop username2 VPNClientAccess yes
signal-event remoteaccess-update
signal-event user-modify
In life, you must either "Push, Pull or Get out of the way!"

Offline pfloor

  • *****
  • 889
  • +1/-0
sme 7.2 pptp problems [SOLVED]
« Reply #7 on: August 06, 2007, 05:36:52 PM »
Hey Ray,....Ditto :-)
In life, you must either "Push, Pull or Get out of the way!"

Offline raem

  • *
  • 3,972
  • +4/-0
sme 7.2 pptp problems [SOLVED]
« Reply #8 on: August 06, 2007, 06:08:53 PM »
paul

Quote
....Ditto :-)


great minds think alike !!
...

Offline crusader

  • ****
  • 71
  • +0/-0
    • http://www.far-galaxy.de
sme 7.2 pptp problems [SOLVED]
« Reply #9 on: August 06, 2007, 10:39:22 PM »
Thank you that was the solution I searched for. It works now.