OpenWrt support for Linksys MX4200

I believe you should try connecting the WAN port to the internet, rather than using a LAN port for internet access.

I can't ssh into it when it is connected to the WAN port

ssh root@192.168.1.1
ssh: connect to host 192.168.1.1 port 22: Connection refused

Just curious, are there notes posted anywhere with the changes from build to build?

  1. Connect your desktop to the router's LAN port for SSH access.
  2. Connect the WAN port to the internet for the router to access the outside world.

This way, you’ll still be able to SSH into the router using ssh root@192.168.1.1 from the LAN side, while the router itself will be able to access the internet via the WAN port.

2 Likes

Your WAN port should be connected to the internet uplink and your laptop connected to one of the LAN ports. For initial setup I connected the MX4300's WAN port to one of my old router's LAN ports. Yeah it'll have double NAT but it's just for the initial install of luci.

that is how the router is set up(yellow: laptop to router's lan port1 and black: internet/wan/port4 to the internet). I can ssh into the router but the router or my laptop do not have access to internet.
1E2CE8E3-48DB-460D-B418-0BF956BDF983_4_5005_c

Is the DNS setup properly?

I'm a bit of a novice. How can I verify this?

Network - Interfaces - LAN - Advanced Settings, like the pic shows!

image

Nothing really. Just to sync with upstream.

1 Like

is that for my laptop or router? if it is for laptop I am having trouble finding those settings on my mac.

Did you try to sync the NSS git? I got merge errors.

The settings I posted are for the router. Are we talking about MX4300 or something else?

Since you ssh into the router, check the /etc/config/network file and see whether you have entries like this... if not, update it.

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '60'
	list dns '8.8.8.8'
	list dns '8.8.4.4'

Do you have another router on front of the mx4300 with same 192.168.1.1 IP? change mx4300 to another subnet.

yes, MX4300/ linksys ln1301. I was asking if the settings can be accessed from my macbook.

I do have another router in front of the mx4300. The black cable goes to the main router via powerline adapter. How do I change my mx4300 to another subnet?

Seems fine.

https://github.com/arix00/openwrt-mx4300/tree/nss-test

it's in /etc/config/network. Find where it is set to
option ipaddr '192.168.1.1'
and change it to
option ipaddr '192.168.4.1' or something

Does this persist during reboot?

TY! @JesseC @RainGater and others!
i changed the address to 192.168.4.1 and also added

list dns '8.8.8.8'
list dns '8.8.4.4'

suggested by RainGater and that seemed to have fixed the issue. I ran

opkg update && opkg install luci

but seeing some errors. I am wondering if I can ignore these

Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nfnetlink
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nf-reject
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nf-reject6
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nf-conntrack
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nf-conntrack6
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nf-nat
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nf-log
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nf-log6
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-crypto-hash
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-crypto-crc32c
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-lib-crc32c
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nft-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nft-fib
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nf-flow
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nft-nat
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nft-offload
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-nf-ipt
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-ipt found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-ipt-core
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-core found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-ipt-conntrack
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-conntrack found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~45634c8621725df6ea20fc891f3b84cb-r1) for kmod-ipt-nat
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-nat found, but incompatible with the architectures configured