Pptp connection problem

hello all,

just installed STABLE SNG7-FPBX-64bit-1707-1 and i’m trying to connect this to my vpn server.
i installed pptp.x86_64 package, created the connection, all seems fine, but my connection fails every 1’.
i have a script to check for it and restart the connection… below you can find the log file…

Aug 19 23:14:21 pbx pptp[9289]: anon log[main:pptp.c:333]: The synchronous pptp option is NOT activated
Aug 19 23:14:21 pbx pptp[9294]: anon log[ctrlp_rep:pptp_ctrl.c:254]: Sent control packet type is 1 'Start-Control-Connection-Request’
Aug 19 23:14:21 pbx pptp[9294]: anon log[ctrlp_disp:pptp_ctrl.c:754]: Received Start Control Connection Reply
Aug 19 23:14:21 pbx pptp[9294]: anon log[ctrlp_disp:pptp_ctrl.c:788]: Client connection established.
Aug 19 23:14:22 pbx pptp[9294]: anon log[ctrlp_rep:pptp_ctrl.c:254]: Sent control packet type is 7 'Outgoing-Call-Request’
Aug 19 23:14:22 pbx pptp[9294]: anon log[ctrlp_disp:pptp_ctrl.c:873]: Received Outgoing Call Reply.
Aug 19 23:14:22 pbx pptp[9294]: anon log[ctrlp_disp:pptp_ctrl.c:912]: Outgoing call established (call ID 0, peer’s call ID 2129).
Aug 19 23:14:22 pbx pppd[9295]: pppd 2.4.5 started by root, uid 0
Aug 19 23:14:22 pbx pppd[9295]: Using interface ppp0
Aug 19 23:14:22 pbx pppd[9295]: Connect: ppp0 <–> /dev/pts/1
Aug 19 23:14:24 pbx pppd[9295]: CHAP authentication succeeded
Aug 19 23:14:24 pbx pppd[9295]: MPPE 128-bit stateless compression enabled
Aug 19 23:14:25 pbx pppd[9295]: local IP address 10.122.91.14
Aug 19 23:14:25 pbx pppd[9295]: remote IP address 10.122.91.13
Aug 19 23:15:00 pbx php: /sbin/ip6tables -A fpbxinterfaces -i ppp0 -j zone-trusted
Aug 19 23:15:00 pbx php: /sbin/iptables -A fpbxinterfaces -i ppp0 -j zone-trusted
Aug 19 23:15:02 pbx pppd[9295]: Terminating on signal 15
Aug 19 23:15:02 pbx pppd[9295]: Connect time 0.7 minutes.
Aug 19 23:15:02 pbx pppd[9295]: Sent 84 bytes, received 420 bytes.
Aug 19 23:15:02 pbx pptp[9791]: anon log[main:pptp.c:333]: The synchronous pptp option is NOT activated
Aug 19 23:15:02 pbx pppd[9295]: MPPE disabled
Aug 19 23:15:02 pbx pptp[9294]: anon log[pptp_read_some:pptp_ctrl.c:559]: read returned zero, peer has closed
Aug 19 23:15:02 pbx pptp[9294]: anon log[callmgr_main:pptp_callmgr.c:266]: Closing connection (shutdown)
Aug 19 23:15:02 pbx pptp[9294]: anon log[ctrlp_rep:pptp_ctrl.c:254]: Sent control packet type is 12 'Call-Clear-Request’
Aug 19 23:15:02 pbx pptp[9294]: anon log[pptp_read_some:pptp_ctrl.c:559]: read returned zero, peer has closed
Aug 19 23:15:02 pbx pptp[9294]: anon log[call_callback:pptp_callmgr.c:81]: Closing connection (call state)
Aug 19 23:15:02 pbx pppd[9295]: Connection terminated.
Aug 19 23:15:02 pbx avahi-daemon[635]: Withdrawing workstation service for ppp0.
Aug 19 23:15:02 pbx pptp[9829]: anon log[ctrlp_rep:pptp_ctrl.c:254]: Sent control packet type is 1 'Start-Control-Connection-Request’
Aug 19 23:15:02 pbx pptp[9829]: anon log[ctrlp_disp:pptp_ctrl.c:754]: Received Start Control Connection Reply
Aug 19 23:15:02 pbx pptp[9829]: anon log[ctrlp_disp:pptp_ctrl.c:788]: Client connection established.
Aug 19 23:15:02 pbx pppd[9295]: Exit.
Aug 19 23:15:02 pbx pptp[9300]: anon warn[decaps_hdlc:pptp_gre.c:217]: short read (-1): Input/output error
Aug 19 23:15:02 pbx pptp[9300]: anon warn[decaps_hdlc:pptp_gre.c:229]: pppd may have shutdown, see pppd log
Aug 19 23:15:03 pbx pptp[9829]: anon log[ctrlp_rep:pptp_ctrl.c:254]: Sent control packet type is 7 'Outgoing-Call-Request’
Aug 19 23:15:03 pbx pptp[9829]: anon log[ctrlp_disp:pptp_ctrl.c:873]: Received Outgoing Call Reply.
Aug 19 23:15:03 pbx pptp[9829]: anon log[ctrlp_disp:pptp_ctrl.c:912]: Outgoing call established (call ID 0, peer’s call ID 2130).
Aug 19 23:15:03 pbx pppd[9872]: pppd 2.4.5 started by root, uid 0
Aug 19 23:15:03 pbx pppd[9872]: Using interface ppp0
Aug 19 23:15:03 pbx pppd[9872]: Connect: ppp0 <–> /dev/pts/2
Aug 19 23:15:05 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 1 (expecting 24)
Aug 19 23:15:05 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 2 (expecting 24)
Aug 19 23:15:05 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 3 (expecting 24)
Aug 19 23:15:06 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 4 (expecting 24)
Aug 19 23:15:06 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 5 (expecting 24)
Aug 19 23:15:09 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 6 (expecting 24)
Aug 19 23:15:09 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 7 (expecting 24)
Aug 19 23:15:12 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 8 (expecting 24)
Aug 19 23:15:12 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 9 (expecting 24)
Aug 19 23:15:15 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 10 (expecting 24)
Aug 19 23:15:17 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 11 (expecting 24)
Aug 19 23:15:18 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 12 (expecting 24)
Aug 19 23:15:21 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 13 (expecting 24)
Aug 19 23:15:24 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 14 (expecting 24)
Aug 19 23:15:24 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 15 (expecting 24)
Aug 19 23:15:27 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 16 (expecting 24)
Aug 19 23:15:30 pbx pptp[9875]: anon log[decaps_gre:pptp_gre.c:418]: discarding duplicate or old packet 17 (expecting 24)
Aug 19 23:15:33 pbx pppd[9872]: LCP: timeout sending Config-Requests
Aug 19 23:15:33 pbx pppd[9872]: Connection terminated.
Aug 19 23:15:33 pbx avahi-daemon[635]: Withdrawing workstation service for ppp0.
Aug 19 23:15:34 pbx pppd[9872]: Modem hangup
Aug 19 23:15:34 pbx pppd[9872]: Exit.
Aug 19 23:15:34 pbx pptp[9875]: anon warn[decaps_hdlc:pptp_gre.c:217]: short read (-1): Input/output error
Aug 19 23:15:34 pbx pptp[9875]: anon warn[decaps_hdlc:pptp_gre.c:229]: pppd may have shutdown, see pppd log
Aug 19 23:15:34 pbx pptp[9829]: anon log[callmgr_main:pptp_callmgr.c:242]: Closing connection (unhandled)
Aug 19 23:15:34 pbx pptp[9829]: anon log[ctrlp_rep:pptp_ctrl.c:254]: Sent control packet type is 12 'Call-Clear-Request’
Aug 19 23:15:34 pbx pptp[9829]: anon log[call_callback:pptp_callmgr.c:81]: Closing connection (call state)

can anyone help me to configure firewall ?
it seems that it drops GRE protocol connections…

In the integrated firewall, you will probably need to add the GRE connection ports to the “Custom” part of the system. Once you do that or define the source system as a ‘trusted’ source, your connections should start to work better.

PPTP is an unusual way to connect to a phone system. I doubt there are a lot of people with experience (including me) in getting this going.

i have pbx on the cloud, well protected and misc offices connected via pptp (vpn), so i can lock extensions on private addresses…

Good to know - you need to open the ports in the integrated firewall to support your needs. Once you’ve done that, the configuration is pretty standard (based on it working in a previous version before the integrated firewall).

If you are using static addresses from the VPN, you don’t need to Responsive Firewall (which is there specifically for “variable”/DynDNS addresses.