User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:public:openwisp-setup-turris [2019/07/08 14:03] (current)
ljelinek created
Line 1: Line 1:
 +====== OpenWISP installation on Turris ======
  
 +//​Information about OpenWISP itself and its features is available at the [[en:​public:​openwisp|main page]].//
 +
 +
 +Installation pre-requisities:​
 +
 +  - A Turris router with Turris OS 3.11 or 4.0
 +  - Working Internet access from the router
 +  - Finished the first Turris OS update
 +  - OpenWISP installed on a server according to the [[en:​public:​openwisp-setup-server|guide]].
 +
 +Installation procedure:
 +
 +  - Login to LuCI.
 +  - Go into **System -> Software.**
 +  - In **Available packages** search for the ''​openwisp-config-openssl''​ package.
 +  - If the package is present install it by clicking to **Install**.
 +  - If the package is missing search for the package with OpenSSl on http://​downloads.openwisp.io/​openwisp-config/​latest/​ najít balíček s OpenSSL and copy its URL.
 +  - In LuCI (see above for the section) insert the URL into the **Download and install package** field and press **OK**.
 +  - It's necessary to edit the configuration file ''/​etc/​config/​openwisp''​ as follows (usually only ''​url'',​ ''​verify_ssl''​ and ''​shared_secret''​ should be changed):
 +
 +<​code>​
 +# For more information about the config options please see the README
 +# or https://​github.com/​openwisp/​openwisp-config#​configuration-options
 +
 +config controller '​http'​
 +    option url '​https://​openwisp.server.address'​
 +    #option interval '​120'​
 +    option verify_ssl '​1'​
 +    option shared_secret '​fg5nbsf51snbfg15bsf'​
 +    #option consistent_key '​1'​
 +    #option mac_interface '​eth0'​
 +    #option merge_config '​1'​
 +    #option test_config '​1'​
 +    #option test_script '/​usr/​sbin/​mytest'​
 +    #option uuid ''​
 +    #option key ''​
 +    list unmanaged '​system.@led'​
 +    list unmanaged '​network.loopback'​
 +    list unmanaged '​network.@switch'​
 +    list unmanaged '​network.@switch_vlan'​
 +    # curl options
 +    #option connect_timeout '​15'​
 +    #option max_time '​30'​
 +    #option capath '/​etc/​ssl/​certs'​
 +</​code>​
 +
 +The ''​url''​ parameter must be set according to the real server address (preferably the name address). If TLS certificate verification is needed the address must be consistent to some of the addresses in the certificate. If you don't want to verify the server certificate set ''​verify_ssl''​ to 0. The ''​shared_secret''​ parameter value is obtained from the OpenWISP administration on the page **Organizations -> <​organization name>**.
 +
 +After installation,​ it's necessary to start the OpenWISP service/​daemon using ''/​etc/​init.d/​openwisp_config start''​.