So I have been playing with it but it keeps giving me an unknown error. if I edit the GUI version it resets all the stuff. The config files look like they need other settings too.
This is what my default settings look like:
/etc/openvpn/ovpn/server.ovpn
client-to-client
persist-key
persist-tun
auth SHA1
cipher BF-CBC
comp-lzo adaptive
dev tun-SERVER
dev-type tun
group nogroup
keepalive 10 120
mode server
mute 5
port 250
proto udp
push “persist-key”
push “persist-tun”
push “redirect-gateway def1”
route-gateway dhcp
server 10.1.10.0 255.255.255.0
topology subnet
duplicate-cn
user nobody
verb 3
/etc/config/network
config interface ‘loopback’
option ifname ‘lo’
option proto ‘static’
option ipaddr ‘127.0.0.1’
option netmask ‘255.0.0.0’config globals ‘globals’
option ula_prefix ‘fdb7:c716:10cd::/48’config interface ‘lan’
option type ‘bridge’
option ifname ‘eth0.1’
option proto ‘static’
option netmask ‘255.255.255.0’
option ip6assign ‘60’
option hostname ‘GL-MT300N-V2-0cf’
option ipaddr ‘192.168.8.1’config interface ‘wan’
option ifname ‘eth0.2’
option proto ‘dhcp’
option hostname ‘GL-MT300N-V2-0cf’
option metric ‘10’config device ‘wan_dev’
option name ‘eth0.2’
option macaddr ‘e4:95:6e:46:30:cf’config interface ‘wan6’
option ifname ‘eth0.2’
option proto ‘dhcpv6’config switch
option name ‘switch0’
option reset ‘1’
option enable_vlan ‘1’config switch_vlan
option device ‘switch0’
option vlan ‘1’
option ports ‘1 6t’config switch_vlan
option device ‘switch0’
option vlan ‘2’
option ports ‘0 6t’config interface ‘tap0’
option type ‘bridge’
option proto ‘static’
option ifname ‘eth0.1’
/etc/config/dhcp
config dnsmasq
option domainneeded ‘1’
option boguspriv ‘1’
option filterwin2k ‘0’
option localise_queries ‘1’
option rebind_protection ‘1’
option rebind_localhost ‘1’
option local ‘/lan/’
option domain ‘lan’
option expandhosts ‘1’
option nonegcache ‘0’
option authoritative ‘1’
option readethers ‘1’
option leasefile ‘/tmp/dhcp.leases’
option resolvfile ‘/tmp/resolv.conf.auto’
option nonwildcard ‘1’
option localservice ‘1’config dhcp ‘lan’
option interface ‘lan’
option start ‘100’
option limit ‘150’
option leasetime ‘12h’
option force ‘1’
option dhcpv6 ‘server’
option ra ‘server’config dhcp ‘wan’
option interface ‘wan’
option ignore ‘1’config odhcpd ‘odhcpd’
option maindhcp ‘0’
option leasefile ‘/tmp/hosts/odhcpd’
option leasetrigger ‘/usr/sbin/odhcpd-update’
option loglevel ‘4’config domain ‘localhost’
option name ‘console.gl-inet.com’
option ip ‘192.168.8.1’