Skip to content

Commit

Permalink
Fix OpenVPN multi process
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Dec 26, 2024
1 parent 5a3e8cc commit 77b7ade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openmptcprouter/files/etc/uci-defaults/2020-omr-vpn
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ if [ "$NBCPU" -gt 1 ] && [ -z "$(uci -q get openvpn.omr2)" ]; then
set openvpn.omr$c.disable_dco=1
set openvpn.omr$c.ping_restart=60
set openvpn.omr$c.tun_mtu=1420
del_list firewall.zone_vpn.device=tun$((c-1))
add_list firewall.zone_vpn.device=tun$((c-1))
EOF
[ -z "$(uci -q get firewall.zone_vpn.device | grep tun$((c-1)))" ] && add_list firewall.zone_vpn.device=tun$((c-1))

done
uci -q commit openvpn
uci -q commit firewall
Expand Down

0 comments on commit 77b7ade

Please sign in to comment.