Jump to content

UCI command usage: Difference between revisions

Line 451: Line 451:
With all that we have learned lets try a more complicated example: lets you want to create an OpenVPN server. The server will be called '''MyServer''', will use a '''TUN''' type interface and '''TLS''' authentication. In order to create this server we will first have to create a section for the server in the openvpn config:
With all that we have learned lets try a more complicated example: lets you want to create an OpenVPN server. The server will be called '''MyServer''', will use a '''TUN''' type interface and '''TLS''' authentication. In order to create this server we will first have to create a section for the server in the openvpn config:


  # uci uci add openvpn server_MyServer
  # uci add openvpn server_MyServer
  # uci set openvpn.server_MyServer=openvpn
  # uci set openvpn.server_MyServer=openvpn