File tree Expand file tree Collapse file tree 4 files changed +28
-0
lines changed
Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,17 @@ uci commit rsyslog
5353rm -f /usr/share/ns-plug/client.conf
5454```
5555
56+ ### MTU management
57+
58+ In some cases the VPN connection may not work properly due to MTU issues.
59+ You can custom set the MTU values by:
60+ ```
61+ uci set ns-plug.config.tun_mtu=<value>
62+ uci set ns-plug.config.mssfix=<value>
63+ uci commit ns-plug
64+ reload_config
65+ ```
66+
5667## Machine registration
5768
5869To register a machine:
Original file line number Diff line number Diff line change @@ -7,3 +7,5 @@ config main 'config'
77 option backup_url 'https://backupd.nethesis.it'
88 option repository_url 'https://updates.nethsecurity.nethserver.org'
99 option channel ''
10+ option tun_mtu ''
11+ option mssfix ''
Original file line number Diff line number Diff line change @@ -136,6 +136,15 @@ auth-nocache
136136verb 3
137137EOF
138138
139+ tun_mtu=" $( uci -q get ${UCI_CONF} .config.tun_mtu) "
140+ mssfix=" $( uci -q get ${UCI_CONF} .config.mssfix) "
141+ if [ -n " ${tun_mtu} " ] && [ -n " ${mssfix} " ]; then
142+ echo " tun-mtu ${tun_mtu} " >> ${CONFIG_FILE}
143+ echo " mssfix ${mssfix} " >> ${CONFIG_FILE}
144+ else
145+ echo " mtu-test" >> ${CONFIG_FILE}
146+ fi
147+
139148# Configure rsyslog to send to promtail
140149uci set rsyslog.promtail=forwarder
141150uci set rsyslog.promtail.source=* .*
Original file line number Diff line number Diff line change @@ -32,3 +32,9 @@ service_triggers()
3232{
3333 procd_add_reload_trigger " ns-plug"
3434}
35+
36+ reload_service ()
37+ {
38+ stop
39+ start
40+ }
You can’t perform that action at this time.
0 commit comments