OpenVPN

From Kolmisoft Wiki

Jump to: navigation, search

[edit] Quality problems

Let's check:

netstat -su
IcmpMsg:
   InType0: 122
   InType3: 87766934
   InType4: 1
   InType8: 588647
   InType11: 34425
   OutType0: 588647
   OutType3: 361015
   OutType8: 147
   OutType11: 4
   OutType69: 81
Udp:
   6466380347 packets received
   1734023 packets to unknown port received.
   114290 packet receive errors
   7286849797 packets sent
   RcvbufErrors: 755
UdpLite:
IpExt:
   InNoRoutes: 235
   InBcastPkts: 6939
   InOctets: 645972134459
   OutOctets: 761963749406
   InBcastOctets: 2398693

Here are the problems:

  1734023 packets to unknown port received.
  114290 packet receive errors
  RcvbufErrors: 755

Let's check receive socket size:

sysctl -a | grep rmem
net.core.rmem_default = 212992
net.core.rmem_max = 212992

200 kb is too low.

Lets increase it to default 1mb, max 4mb:

sysctl -w net.core.rmem_default=1048576
sysctl -w net.core.rmem_max=4194304

In order to survive reboot, put this into /etc/sysctl.conf

...
net.core.rmem_default = 1048576
net.core.rmem_max = 4194304

[edit] Based on

Personal tools

Try MOR

Try M2