What's new

How to configure the size of OVPN socket buffers larger than 256K?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

RulerV

New Around Here
I use the last release of Merlin firmware at ASUS hardware (a few different routers).


I’m trying to setting up the size of OVPN socket buffers 512K but I can’t do that. I’ve tried to put the corresponding instructions to the configuration file either of server or client but always receive the size of buffers 256K.

Code:
Dec  1 13:52:03 ovpn-client1[8912]: PUSH: Received control message: 'PUSH_REPLY,route 192.168.100.0 255.255.255.0 vpn_gateway 500,sndbuf 524288,rcvbuf 524288,route-gateway 192.168.3.1,topology subnet,ping 5,ping-restart 15,ifconfig 192.168.3.2 255.255.255.0,peer-id 0,cipher AES-128-GCM'
Dec  1 13:52:03 ovpn-client1[8912]: OPTIONS IMPORT: timers and/or timeouts modified
Dec  1 13:52:03 ovpn-client1[8912]: OPTIONS IMPORT: --sndbuf/--rcvbuf options modified
Dec  1 13:52:03 ovpn-client1[8912]: Socket Buffers: R=[245760->245760] S=[245760->245760]

May be I have to configure an other system variables for accepting the buffer size greater than 256K?
 
I’d like to anwer for my question by myself. We have to properly changed
/proc/sys/net/core/rmem_max and
/proc/sys/net/core/wmem_max variables. But firmware allow us to settings value twice much than allowed by variables :)
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top