Note underscore! Seems that OpenWrt does not likeĀ hyphen
config openvpn ‘lan’
option script_security ‘2’
option enable ‘1’
option remote ‘212.x.y.z’
option port ‘1194’
option proto ‘udp’
option dev ‘tap0’
#
option persist_key ‘1’
option persist_tun ‘1’
option keepalive “10 120”
#
option comp-lzo “yes”
#
option secret “/etc/config/static.key”
#
option user ‘nobody’
option group ‘nogroup’
option status ‘/tmp/openvpn-status.log’
option verb ‘3’
#
Or
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
uci set openvpn.vpn_mf=openvpn uci set openvpn.vpn_mf.enabled=1 uci set openvpn.vpn_mf.local=192.168.0.254 uci set openvpn.vpn_mf.proto=udp uci set openvpn.vpn_mf.port=1194 uci set openvpn.vpn_mf.dev=tap0 uci set openvpn.vpn_mf.script_security=2 uci set openvpn.vpn_mf.secret=/etc/config/static2.key uci set openvpn.vpn_mf.persist_key=1 uci set openvpn.vpn_mf.persist_tun=1 uci set openvpn.vpn_mf.keepalive="10 120" uci set openvpn.vpn_mf.comp_lzo=yes uci set openvpn.vpn_mf.log=/tmp/openvpn.log uci set openvpn.vpn_mf.verb=3 uci set openvpn.vpn_mf.user=nobody uci set openvpn.vpn_mf.group=nogroup |