LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-10-2014, 12:30 PM   #1
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Rep: Reputation: 32
ppp connection loss


Today I am posting what IMOH is a real ugly thing and I think I would not even post an answer for this if I would read it.

I have a raspberry pi working as a VPN GW which it did very nice for 5 days. Now the whole night and till the beginning of workhours everything works fine and the vpn is working, but when the users start to use the connection, the whole ppp connection breaks down.

When the reboot the pi, everything is nice again for lets say 10 minutes to 2 houres and than it breaks down again.

The whole weekend the connection was up and working. I started a download from kernel.org just to get a litle trouble on the wire, but the connection did not break down.

Does anyone have any idea what to do ?

I will now check all the cables
maybe switch the pi
have a look at the system in place
 
Old 12-11-2014, 04:00 PM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by saavik View Post
Today I am posting what IMOH is a real ugly thing and I think I would not even post an answer for this if I would read it.

I have a raspberry pi working as a VPN GW which it did very nice for 5 days. Now the whole night and till the beginning of workhours everything works fine and the vpn is working, but when the users start to use the connection, the whole ppp connection breaks down.

When the reboot the pi, everything is nice again for lets say 10 minutes to 2 houres and than it breaks down again.

The whole weekend the connection was up and working. I started a download from kernel.org just to get a litle trouble on the wire, but the connection did not break down.

Does anyone have any idea what to do ?

I will now check all the cables
maybe switch the pi
have a look at the system in place
Exactly how many users are using this VPN?
The rasp is not enterprise hardware, hell its not even entry level server hardware, using the rasp for 2-3 users at most is pushing the boundries.
 
Old 12-12-2014, 02:45 PM   #3
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Original Poster
Rep: Reputation: 32
We use it for two user, and i would disagree the we are pushing it to the edge. The pi is only doing the network traffic, no one is really working on the pi.
We have very good experience with openWRT and more then 200 network connections (no VPN).

But i am always thankful for any input and other opinions.
 
Old 12-12-2014, 02:53 PM   #4
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by saavik View Post
We use it for two user, and i would disagree the we are pushing it to the edge. The pi is only doing the network traffic, no one is really working on the pi.
We have very good experience with openWRT and more then 200 network connections (no VPN).

But i am always thankful for any input and other opinions.
Its the network traffic I am worried about, the rasp doesnt have full Gbit through put because it shares the bus with the USB2.0 interface, meaning the max throughput you can achive is 480Mbit at best (that is enough for 2-3 people granted) but keeping the connections reliable and alive on a USB controller is another matter. You can try to see if there are any driver options you can play around with, but I would be very surprised if you got this to work without having to restart it through out the day.

Also what is the connection timeout on openvpn service? Setting the timeout lower to kick users off might free up resources the downside is they would have to reconnect every x amount of hours.
 
Old 12-12-2014, 03:02 PM   #5
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Original Poster
Rep: Reputation: 32
Ok, i got that.
I did not think about the network traffic, as we only use it for 2 users having a citrix-connection to the computing center.

Anyone an idea what hardware to use, for more than 2 users ?

Let`s say 20-30. I am also thinking about a remoteconnection for other branches.
 
Old 12-12-2014, 03:17 PM   #6
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Original Poster
Rep: Reputation: 32
So i tested the throuput with a download from kernel.org.

Got 901KB/s.
 
Old 12-12-2014, 03:20 PM   #7
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by saavik View Post
Ok, i got that.
I did not think about the network traffic, as we only use it for 2 users having a citrix-connection to the computing center.

Anyone an idea what hardware to use, for more than 2 users ?

Let`s say 20-30. I am also thinking about a remoteconnection for other branches.
For 20-30 users you are going into Cisco ASA and Juniper areas of expertise.
Not to say they can't be done with off the self parts it can, just not as relibly these products were made to do these things.

If you really want to go down the hinz 57 route, then 4 GB ram, intel core duo and 2-4 nic's call trunked together as one big pipe going into a 24-48 port switch.
That should be good enough for running just a VPN (openvpn) and holding the encryption tunnel stable.
 
Old 12-12-2014, 03:25 PM   #8
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by saavik View Post
So i tested the throuput with a download from kernel.org.

Got 901KB/s.
Yes with compression, without compression your getting 600Kb/sec (600/3)= 200K (if all 3 users are on,thats if you hit the max throughput)
 
Old 12-13-2014, 01:57 PM   #9
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Original Poster
Rep: Reputation: 32
Off topic

But what would be an alternative ?
Something like the Pi with 2 nics ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Loss Of Network Connection After Power Loss etpoole60 Linux - Virtualization and Cloud 2 10-27-2014 03:14 PM
etablish one connection ppp between a client ppp and a server ppp camilla261086 Linux - Server 2 07-20-2010 07:09 AM
Network Connection Loss And USB Connection Loss. Novatian Linux - Desktop 1 11-07-2008 02:09 PM
High packet loss PPP connection brianrw96 Linux - Networking 2 08-04-2005 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration