2023年3月1日星期三

is it possible to increase the maximum number of concurrent VPN connections of synology

 

/volume1/@appstore/VPNCenter/etc/openvpn/openvpn.conf

/volume1/@appstore/VPNCenter/user_data_collector/vpnserver.config


/volume1/@appconf/VPNCenter/openvpn/openvpn.conf

/var/packages/VPNCenter/etc/openvpn/openvpn.conf

上面两个文件是指向同一个地址,传说是这里改连接数量(确实是这里控制,但只对openvpn)


/volume1/@appconf/VPNCenter/synovpn.conf
这里配置的是单个用户可以连接的数量,不是主机连接数

/usr/syno/etc/user.data.conf/vpnserver.config



vi /var/packages/VPNCenter/etc/openvpn/openvpn.conf


Possible workaround is to edit configuration files over SSH

For PPTP edit the file /usr/syno/etc/packages/VPNCenter/pptp/accel-pppd.conf Change the line "tunnel=10.0.0.1-5" to "tunnel=10.0.0.1-10" - then the Maximum connection number will be set to 10.

For OpenVPN edit the file /usr/syno/etc/packages/VPNCenter/openvpn/openvpn.conf Adjust the line "Max-clients 5".

For L2TP edit /usr/syno/etc/packages/VPNCenter/l2tp/x12tpd.conf Change the line "ip range=10.2.0.1-5" to something like "ip range=10.2.0.1-10"

Finally restart NAS.

Keep in mind, that each encrypted VPN connection puts additional load on CPU, so keep the limit reasonable according to your model. Though with 1 GHz CPU in DS216j and 7 concurrent VPN users, I rarely see it go over 30%.













扩容/dev/mapper/pve-root

.执行 parted /dev/sdq 输入 print 找到要扩容的盘,应该是/dev/sdq3,检查大小 resizepart 3 100% quit 再检查大小 退出parted 更新物理卷的大小,当然这里前提是使用了LVM pvresize /dev/sda3 lvdis...