fix
This commit is contained in:
parent
cfcd2d9b19
commit
7e895c30b8
1 changed files with 3 additions and 3 deletions
|
@ -73,13 +73,15 @@ uci set dhcp.@dnsmasq[0].noresolv='1'
|
||||||
|
|
||||||
# Fix DNS: make the OS use the locally provided DNS servers
|
# Fix DNS: make the OS use the locally provided DNS servers
|
||||||
# otherwise the VPN tunnel cannot be established
|
# otherwise the VPN tunnel cannot be established
|
||||||
dhcp.@dnsmasq[0].localuse='0'
|
uci set dhcp.@dnsmasq[0].localuse='0'
|
||||||
|
|
||||||
# DNS upstream over VPN gives DNS64
|
# DNS upstream over VPN gives DNS64
|
||||||
uci delete dhcp.@dnsmasq[0].server
|
uci delete dhcp.@dnsmasq[0].server
|
||||||
uci add_list dhcp.@dnsmasq[0].server='2a0a:e5c0:0:a::a'
|
uci add_list dhcp.@dnsmasq[0].server='2a0a:e5c0:0:a::a'
|
||||||
uci add_list dhcp.@dnsmasq[0].server='2a0a:e5c0:2:a::a'
|
uci add_list dhcp.@dnsmasq[0].server='2a0a:e5c0:2:a::a'
|
||||||
|
|
||||||
|
uci set system.@system[0].hostname="${viwib_hostname}"
|
||||||
|
|
||||||
# wifi ip address
|
# wifi ip address
|
||||||
# uci set network.wifi=interface
|
# uci set network.wifi=interface
|
||||||
# uci set network.wifi.proto='static'
|
# uci set network.wifi.proto='static'
|
||||||
|
@ -154,8 +156,6 @@ uci set network.@wireguard_wg0[0].endpoint_host="${vpn_endpoint_host}"
|
||||||
uci set network.@wireguard_wg0[0].endpoint_port='51820'
|
uci set network.@wireguard_wg0[0].endpoint_port='51820'
|
||||||
uci set network.@wireguard_wg0[0].route_allowed_ips='1'
|
uci set network.@wireguard_wg0[0].route_allowed_ips='1'
|
||||||
|
|
||||||
uci set system.@system[0].hostname="${viwib_hostname}"
|
|
||||||
|
|
||||||
# Firewall configuration
|
# Firewall configuration
|
||||||
if ! uci show firewall | grep "name='Allow-SSH'"; then
|
if ! uci show firewall | grep "name='Allow-SSH'"; then
|
||||||
uci add firewall rule
|
uci add firewall rule
|
||||||
|
|
Loading…
Reference in a new issue