X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=wrt-setup-local;h=b8d36e02b2bd6bd23b29366945db079a939156c3;hb=4acdd54dd395d63eef73778547fa8cc119ac6fca;hp=642c1935150c17dd756a08740f8ed4d94a5c1f04;hpb=3f20eea52b8d7f665b2c3b483921f15a0e48d7ee;p=automated-distro-installer diff --git a/wrt-setup-local b/wrt-setup-local index 642c193..b8d36e0 100755 --- a/wrt-setup-local +++ b/wrt-setup-local @@ -212,6 +212,7 @@ cat /root/router >>/etc/shadow uset system.@system[0].ttylogin 1 + cat >/usr/bin/archlike-pxe-mount <<'EOFOUTER' #!/bin/bash # symlinks are collapsed for nfs mount points, so use a bind mount. @@ -408,18 +409,38 @@ EOF # option config /etc/openvpn/client.conf # EOF +wgip4=10.3.0.1/24 +wgip6=fdfd::1/64 +wgport=26000 v cedit /etc/config/network </dev/null; then + # cant mix cedit plus uci + echo | cedit /etc/config/firewall ||: + uci add_list firewall.@zone[1].network=wg0 + uci commit firewall + firewall-cedit ||: + firewall_restart=true +fi dnsmasq_restart=false v cedit /etc/hosts <