I'm using mpd5 as a PPTP server to bring samba shares to my client machines. On 9.2 this setup was stable without any hiccups. On FreeBSD 10 I hit this annoying behavior - session timeouts more-less randomly.
Consider my public IP as 192.0.2.1. My setup is the following :
I've loopback interface - lo251 - with 192.168.251.0/24 network. On this interface I've assigned 192.168.251.1 to be the IP of the samba server. Samba is listening only on this interface.
PF allows PPTP traffic, PPTP clients can use this server as a default gateway (hence the first line):
mpd5 daemon is configured as follows (omitting admin user setup:
Users on this network can access public shares. Daemons are of the following versions (the same before and after upgrade):
Everything is working as expected when client is not idle, i.e. traffic is passing through. Problem occurs when client is idle. Session timeouts randomly. Sometimes even matter of minute(s). Clients are still the same, clients from different location have the same problem.
EDIT: today my session got terminated even when I was pushing data through it. But still, nothing in the log.
In mpd5 log I see the only that call was terminated:
Did someone maybe hit the same behavior ?
UPDATE: Seems to be fixed in newer releases (verified in r264316).
UPDATE2: actually, it didn't solve it at all. It took longer for the issue to occur (2days), but now it's the same :/. Nightmare ..
Consider my public IP as 192.0.2.1. My setup is the following :
I've loopback interface - lo251 - with 192.168.251.0/24 network. On this interface I've assigned 192.168.251.1 to be the IP of the samba server. Samba is listening only on this interface.
PF allows PPTP traffic, PPTP clients can use this server as a default gateway (hence the first line):
Code:
nat pass on em0 inet from 192.168.251.0/24 to any -> 192.0.1.2
rdr pass on em0 inet proto tcp from any to 192.0.1.2 port = pptp -> 192.168.251.1 port 1723
rdr pass on em0 inet proto gre from any to 192.0.1.2 -> 192.168.251.1
mpd5 daemon is configured as follows (omitting admin user setup:
Code:
default:
load cloud
cloud:
set ippool add cloud251 192.168.251.64 192.168.251.128
# this connection is used for each peer connection
create bundle template cloud_b
set iface enable proxy-arp
set iface enable tcpmssfix
set ipcp yes vjcomp
set ipcp ranges 192.168.251.2/24 ippool cloud251
# MS point-to-point encryption
set bundle enable compression
set bundle crypt-reqd
set ccp yes mppc
set mppc yes e40
set mppc yes e128
set mppc yes stateless
create link template cloud_link pptp
set link action bundle cloud_b
set link enable multilink
set link no pap chap eap
set link enable chap
set link enable chap-msv2
set link keep-alive 0 0
set link mtu 1448
# configure pptp
set pptp self 192.168.251.1
set enable always-ack
set link enable incoming
#
Code:
# pkg info mpd5 samba36
mpd5-5.7
samba36-3.6.22
#
EDIT: today my session got terminated even when I was pushing data through it. But still, nothing in the log.
In mpd5 log I see the only that call was terminated:
Code:
Feb 16 18:43:04 host mpd: [cloud_b-1] IFACE: Up event
Feb 16 18:46:02 host mpd: [cloud_link-1] PPTP call terminated
Feb 16 18:46:02 host mpd: [cloud_link-1] Link: DOWN event
Feb 16 18:46:02 host mpd: [cloud_link-1] LCP: Close event
Feb 16 18:46:02 host mpd: [cloud_link-1] LCP: state change Opened --> Closing
Feb 16 18:46:02 host mpd: [cloud_link-1] Link: Leave bundle "cloud_b-1"
Did someone maybe hit the same behavior ?
UPDATE: Seems to be fixed in newer releases (verified in r264316).
UPDATE2: actually, it didn't solve it at all. It took longer for the issue to occur (2days), but now it's the same :/. Nightmare ..