Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  pfSense English Support» PPTP» PPTP Works great for ~15 secs. then times out for about 5 minutes
Username:
Password:
 
 

Pages: [1] 2  All   Go Down
  Print  
Author Topic: PPTP Works great for ~15 secs. then times out for about 5 minutes  (Read 5770 times)
0 Members and 1 Guest are viewing this topic.
datafirm
Jr. Member
**
Offline Offline

Posts: 45


View Profile
« on: April 03, 2008, 12:54:40 am »

Running 1.2 release.

I can get fast and reliable connections for about 15 seconds or so, then they all seem to stop.  They will work again in some about of time, say 5 minutes. 

It could also be that when it receives so much data it starts to time out.

Where could I start to troubleshoot such an issue?

Thanks
« Last Edit: April 03, 2008, 01:05:28 am by datafirm » Logged
hoba
Administrator
Hero Member
*****
Offline Offline

Posts: 5844


What was the problem to this solution again?


View Profile WWW
« Reply #1 on: April 03, 2008, 01:34:17 am »

Systemlogs.
Logged
datafirm
Jr. Member
**
Offline Offline

Posts: 45


View Profile
« Reply #2 on: April 03, 2008, 11:58:20 am »

Systemlogs.

Yes, I could not find anything relevant there.  This is why I called out to the forum! Smiley
Logged
hoba
Administrator
Hero Member
*****
Offline Offline

Posts: 5844


What was the problem to this solution again?


View Profile WWW
« Reply #3 on: April 03, 2008, 12:01:55 pm »

So the pptp session is not dropped but is just unusable for some time though you stay connected and it starts working again by itself? Maybe some synchronizing sarts to happen once the client is connected that loads the connection 100%? From the shellmenu or via ssh watch pftop to see what the client is doing once it is connected.
Logged
datafirm
Jr. Member
**
Offline Offline

Posts: 45


View Profile
« Reply #4 on: April 03, 2008, 12:10:40 pm »

So the pptp session is not dropped but is just unusable for some time though you stay connected and it starts working again by itself? Maybe some synchronizing sarts to happen once the client is connected that loads the connection 100%? From the shellmenu or via ssh watch pftop to see what the client is doing once it is connected.

Correct, the connection is not dropped, but the layer is (just found some logs).  Let me paste a log snippet below to see if this helps:

<code>
Apr  3 10:03:50 routethis mpd: [pt0] LCP: no reply to 1 echo request(s)
Apr  3 10:04:00 routethis mpd: [pt0] LCP: no reply to 2 echo request(s)
Apr  3 10:04:10 routethis mpd: [pt0] LCP: no reply to 3 echo request(s)
Apr  3 10:04:20 routethis mpd: [pt0] LCP: no reply to 4 echo request(s)
Apr  3 10:04:30 routethis mpd: [pt0] LCP: no reply to 5 echo request(s)
Apr  3 10:04:30 routethis mpd: [pt0] LCP: peer not responding to echo requests
Apr  3 10:04:30 routethis mpd: [pt0] LCP: LayerFinish
Apr  3 10:04:30 routethis mpd: [pt0] LCP: LayerStart
Apr  3 10:04:30 routethis mpd: [pt0] LCP: state change Opened --> Starting
Apr  3 10:04:30 routethis mpd: [pt0] LCP: phase shift NETWORK --> DEAD
Apr  3 10:04:30 routethis mpd: [pt0] setting interface ng1 MTU to 1500 bytes
Apr  3 10:04:30 routethis mpd: [pt0] up: 0 links, total bandwidth 9600 bps
Apr  3 10:04:30 routethis mpd: [pt0] IPCP: Down event
Apr  3 10:04:30 routethis mpd: [pt0] IPCP: state change Opened --> Starting
Apr  3 10:04:30 routethis mpd: [pt0] IPCP: LayerDown
Apr  3 10:04:30 routethis mpd: [pt0] IFACE: Down event
Apr  3 10:04:30 routethis mpd: [pt0] exec: /usr/local/sbin/vpn-linkdown ng1 inet wprater
</code>
Logged
datafirm
Jr. Member
**
Offline Offline

Posts: 45


View Profile
« Reply #5 on: April 03, 2008, 12:11:27 pm »

So the pptp session is not dropped but is just unusable for some time though you stay connected and it starts working again by itself? Maybe some synchronizing sarts to happen once the client is connected that loads the connection 100%? From the shellmenu or via ssh watch pftop to see what the client is doing once it is connected.

FYI, this is happening on multiple clients (iphone and OS X Leopard).
Logged
hoba
Administrator
Hero Member
*****
Offline Offline

Posts: 5844


What was the problem to this solution again?


View Profile WWW
« Reply #6 on: April 03, 2008, 02:08:08 pm »

Interesting. My leopard is connected 24h currently to the office using pptp and lots of coworkers use pptp on windows as well and we even have one iphone that is using pptp access. No issues so far. Is there something in front of your pfSense that might firewall/nat packets?
Logged
datafirm
Jr. Member
**
Offline Offline

Posts: 45


View Profile
« Reply #7 on: April 03, 2008, 06:09:53 pm »

Interesting. My leopard is connected 24h currently to the office using pptp and lots of coworkers use pptp on windows as well and we even have one iphone that is using pptp access. No issues so far. Is there something in front of your pfSense that might firewall/nat packets?

Yes, our ISP has a firewall in front of PFsense on the router level.  I had them open tcp 1723 and 47.
Logged
hoba
Administrator
Hero Member
*****
Offline Offline

Posts: 5844


What was the problem to this solution again?


View Profile WWW
« Reply #8 on: April 03, 2008, 06:18:37 pm »

You need TCP 1723 and the GRE protocol. Not TCP 47.
Logged
datafirm
Jr. Member
**
Offline Offline

Posts: 45


View Profile
« Reply #9 on: April 03, 2008, 06:32:38 pm »

You need TCP 1723 and the GRE protocol. Not TCP 47.

Thats what they claim are open

==
UDP isn't used for PPTP tunnels...only TCP 1723 and protocol 47 (GRE), which are both open.
==
Logged
datafirm
Jr. Member
**
Offline Offline

Posts: 45


View Profile
« Reply #10 on: April 03, 2008, 06:48:46 pm »

I just realized I did not have protocol GRE opened as a rule on the PPTP interface on PfSense.  Hope this is what was needed.
Logged
hoba
Administrator
Hero Member
*****
Offline Offline

Posts: 5844


What was the problem to this solution again?


View Profile WWW
« Reply #11 on: April 03, 2008, 08:38:34 pm »

By enabling the PPTP-Server on pfSense all needed rules are generated invisibly behind the scenes for pptp to work. The rules at the pptp tab are to allow or block traffic that is coming in through connected pptp sessions.

Are you trying to pptp in (from clients at wan to your pfsense pptp server) or are you trying to go through from lan clients to pptp servers at wan?
Logged
datafirm
Jr. Member
**
Offline Offline

Posts: 45


View Profile
« Reply #12 on: April 03, 2008, 11:28:55 pm »

By enabling the PPTP-Server on pfSense all needed rules are generated invisibly behind the scenes for pptp to work. The rules at the pptp tab are to allow or block traffic that is coming in through connected pptp sessions.

Are you trying to pptp in (from clients at wan to your pfsense pptp server) or are you trying to go through from lan clients to pptp servers at wan?

I am trying to come in through the WAN to the pfSense PPTP server.  From home to pptp to get to our internal network.
Logged
datafirm
Jr. Member
**
Offline Offline

Posts: 45


View Profile
« Reply #13 on: April 04, 2008, 12:01:36 am »

By enabling the PPTP-Server on pfSense all needed rules are generated invisibly behind the scenes for pptp to work. The rules at the pptp tab are to allow or block traffic that is coming in through connected pptp sessions.

Things are working much better tonight when I added the rule to allow protocol 47 traffic, but you said that was not even needed.  Still getting timeouts Sad

There is nothing in /var/log/system.log
Logged
hoba
Administrator
Hero Member
*****
Offline Offline

Posts: 5844


What was the problem to this solution again?


View Profile WWW
« Reply #14 on: April 04, 2008, 05:27:25 am »

I doubt that the firewall in front of you is configured correctly. If it does NAT too things might even become worse (like handling multiple concurrent pptp sessions for example).

Try to bypass that firewall by connecting a client that is having issues directly to you pfSense WAN. Then try PPTP again. Does it work now? If yes the issue is located at the firewall in front of you.
Logged
Pages: [1] 2  All   Go Up
  Print  
 
Jump to:  

 

Page created in 0.034 seconds with 20 queries.