why does my gl-inet get no internet connection?

Hey guys, I want to use my 300m as a Network Emulator. For this I need some configurations on him.

The Setup:

  • ive using an Macbook with MacOs
  • GL-INet 300m
  • the 300m is via lan connected to my Mac via lan port
  • ive changed the ip adress of the interface of the connection to 192.168.8.2 , Subnetmask = 255.255.255.0
  • the Mac is connected to the internet via wlan
  • ive shared the internet connection via wlan to the interface of the connection with the 300m

My configurations so far:

  • ive connected via terminal an the following ssh with the router : ‘ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-rsa root@192.168.8.1
  • After that I changed some settings in the network settings

The Changes

all deletet except of the ‘loopback’ and ‘globals’ configurations

  • inserted the following:

config interface ‘lan’

option type ‘bridge’

option proto ‘static’

option netmask ‘255.255.255.0

option ip6assign ‘60’

option hostname ‘GL-AR300M-56a’

option ipaddr ‘192.168.8.1

option ifname ‘eth0 eth1’

option gateway ‘192.168.8.2

option delegate ‘0’

list dns ‘9.9.9.9

  • after the I rebooted the router and reconnected
  • so far all this steps worked

What I need to do

  • I need to install via command or in the dashboard the following packages:

opkg update; opkg install tcpdump nano bash kmod-netem luci

  • When I used this command I get the following error:

root@GL-AR300M:~#opkg update; opkg install tcpdump nano bash kmod-netem luci

Downloading https://fw.gl-inet.com/releases/v19.07.8/packages-3.0/ath79/packages/Packages.gz

Failed to send request: Operation not permitted

#observations
when I watched via Wireshark the ip packages I can see that the router can ping my laptop and get an response. But when I try to ping like websites over the internet I didn’t get any response. I can see that the pings were sending over my laptop to the internet but no response coming.

Help me here

  • so how can I connect my 300m with the internet so that I can download the packages via dashboard (plug ins)?
  • why does this command not work?

Since you did some manual configuration via the config files instead of using the GUI: Are you sure that these are all correct?

Please test ping and DNS resolution.

That’s my thought. When I test ping I can ping my laptop and getting a response. When I ping something on the Internet like Google I can see via Wireshark that the ping request is going through my laptop and reaching the internet but I can’t see any response on Wireshark. In Wireshark I can see that the routers ping ip package is send from 192.168.8.1. Is that a problem? How can I set the DNS? Ive testes it via nslookup server01 and it sad : ;; connection timed out; no servers could be reached

Do nslookup google.com 1.1.1.1 and report the output please.
After that do ping 1.1.1.1

So here is what ive done :
root@GL-AR300M:~# nslookup google.com 1.1.1.1
;; connection timed out; no servers could be reached

root@GL-AR300M:~# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
^C
— 1.1.1.1 ping statistics —
36 packets transmitted, 0 packets received, 100% packet loss
root@GL-AR300M:~#

Based on your changes I would say that you broke the routing here. You can’t just change the gateway IP without changing the interface IP as well.

That makes sense, so what should I do now? revert all changes?

Yep. Revert all of them and then check what was the wrong one.

Thank you for help and youre time.