User Tools

Site Tools


doc:appunti:hardware:gl_mt300n_v2

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
doc:appunti:hardware:gl_mt300n_v2 [2023/09/11 08:34] – [Starting OpenVPN] niccolodoc:appunti:hardware:gl_mt300n_v2 [2023/09/11 10:38] niccolo
Line 1: Line 1:
-====== GL-iNet MT-300N-V2 ======+====== GL-iNet GL-MT-300N-V2 ======
  
 {{gl-mt300n-v2.png?direct&240|GL-MT300N-V2}} {{gl-mt300n-v2.png?direct&240|GL-MT300N-V2}}
Line 28: Line 28:
 </file> </file>
  
-As of September 2023 they are no longer in service, so we are unable to update or install new packages.+As of September 2023 they are no longer in service, so we are unable to update or install new packages. A dirty hack can be to change the repository URLs with the following:
  
 +<file>
 +src/gz lede_core http://downloads.openwrt.org/releases/17.01.7/targets/ramips/mt7628/packages
 +src/gz lede_base http://downloads.openwrt.org/releases/17.01.7/packages/mipsel_24kc/base
 +src/gz lede_luci http://downloads.openwrt.org/releases/17.01.7/packages/mipsel_24kc/luci
 +src/gz lede_packages http://downloads.openwrt.org/releases/17.01.7/packages/mipsel_24kc/packages
 +src/gz lede_routing http://downloads.openwrt.org/releases/17.01.7/packages/mipsel_24kc/routing
 +src/gz lede_telephony http://downloads.openwrt.org/releases/17.01.7/packages/mipsel_24kc/telephony
 +</file>
 ===== Installing a new package ===== ===== Installing a new package =====
  
Line 40: Line 48:
 opkg update opkg update
 opkg list opkg list
 +</code>
 +
 +E.g. to manage the OpenVPN connection through the LuCI web interface, install the following two packages:
 +
 +<code>
 +opkg install luci-app-openvpn
 +opkg install luci-i18n-openvpn-en
 </code> </code>
  
 ===== Starting OpenVPN ===== ===== Starting OpenVPN =====
 +
 +**GL-iNet** added a custom service called **startvpn** which badly interacts witht the default OpenWRT **openvpn** service. If you don't want to interact with the simplified GL-iNet web interface, simply disable the **startvpn** service and manage only the OpenWRT default options:
  
 <code> <code>
-uci get glconfig.openvpn.enable+/etc/init.d/startvpn disable 
 +/etc/init.d/openvpn enable 
 +/etc/init.d/openvpn start
 </code> </code>
  
-**/etc/config/glconfig**+The usual OpenVPN configuration files can be placed into the **/etc/openvpn/** directory. You can instruct OpenVPN to start the configuration by adding a section into **/etc/config/openvpn** (beware that the **hyphen** is allowd into OpenVPN configuration file, but it is **forbidden** into the OpenWRT name): 
  
 <file> <file>
-config service 'openvpn' +config openvpn 'my_openpvpn
-        option force '0+        option enabled '1' 
-        option enable '1' +        option config '/etc/openvpn/my-openvpn.conf'
-        option ovpn '/etc/openvpn/my_openvpn.conf'+
 </file> </file>
 +
 +If you want to be more sure that OpenVPN will start, enable it also into the GL-iNet custom configuration:
 +
 +<code>
 +uci set glconfig.openvpn.enable=1
 +uci commit glconfig
 +</code>
 +
 +Verify that the option was saved into the **/etc/config/glconfig** config file, reading it or executing:
 +
 +<code>
 +uci get glconfig.openvpn.enable
 +</code>
  
doc/appunti/hardware/gl_mt300n_v2.txt · Last modified: 2023/09/11 10:39 by niccolo