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
doc:appunti:hardware:gl_mt300n_v2 [2023/09/11 10:00] niccolodoc:appunti:hardware:gl_mt300n_v2 [2023/09/11 12:39] (current) niccolo
Line 1: Line 1:
-====== GL-iNet MT-300N-V2 ======+====== GL-iNet GL-MT-300N-V2 Smart Router ======
  
 {{gl-mt300n-v2.png?direct&240|GL-MT300N-V2}} {{gl-mt300n-v2.png?direct&240|GL-MT300N-V2}}
Line 12: Line 12:
 ^ Total Flash Storage  | 16 Mb   | ^ Total Flash Storage  | 16 Mb   |
 ^ Free Flash Storage   | 3.1 Mb  | ^ Free Flash Storage   | 3.1 Mb  |
 +
 +
 +===== Change repository =====
 +
 +The default repositories are set in file **/etc/opkg/distfeeds.conf**, they are GL-iNet customized of OpenWRT:
 +
 +<file>
 +src/gz lede_core http://www.gl-inet.com/lede/ramips/2.264/packages/mt7628
 +src/gz lede_base http://www.gl-inet.com/lede/ramips/2.264/packages/base
 +src/gz lede_luci http://www.gl-inet.com/lede/ramips/2.264/packages/luci
 +src/gz lede_packages http://www.gl-inet.com/lede/ramips/2.264/packages/packages
 +src/gz lede_routing http://www.gl-inet.com/lede/ramips/2.264/packages/routing
 +src/gz lede_telephony http://www.gl-inet.com/lede/ramips/2.264/packages/telephony
 +src/gz lede_shadowsocks http://www.gl-inet.com/lede/ramips/2.264/packages/shadowsocks
 +</file>
 +
 +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 =====
 +
 +<code>
 +opkg list-installed
 +</code>
 +
 +
 +<code>
 +opkg update
 +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>
 +
 +===== 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>
 +/etc/init.d/startvpn disable
 +/etc/init.d/openvpn enable
 +/etc/init.d/openvpn start
 +</code>
 +
 +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>
 +config openvpn 'my_openpvpn'
 +        option enabled '1'
 +        option config '/etc/openvpn/my-openvpn.conf'
 +</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.1694419254.txt.gz · Last modified: 2023/09/11 10:00 by niccolo