added also a part from my nft ruleset to enable masquerading and some basic rules. apply with (maybe change path, as i have it in /usr/local/bin because of nft-script i have not added here):
No connection between internal and external network in r2.
in my default gateway for net behind my r2 have no limits.
R2 receives PI and responds to the world.
R2 distributes IP within its network.
The internal network does not see the world. R2 pings with the world, but the internal user cannot ping with the world.
i guess your “main-router” does not know subnet behind your r2…
client (on r2 lan) sends packet to r2, r2 forwards to main-router=default-route (if forwarding active), server in internet responds to your main-router and this does not know where your client is (need to send packet to r2 first)
I understand what you want to tell me.
How can I fix the R2 subnet? my home subnet is 192.168.1.1. I want to do 192.168.2.1 on R2
I did not find in which file you have the network configuration.
/etc/network/interfaces does not have the required information or I don’t know how to change it correctly.
Thank you.
If your home-lan (r2 wan) has already 192.168.1.1/24, you have to change lan-ip and dhcp-server.
Bullseye image does not use /etc/network/interfaces. It uses systemd configuration (/etc/systemd/network). I’m not sure if i used dnsmasq as dhcp-server or if i used systemd here too.
So either the module is missing in image or somehow broken…
With knowledge of other kernel working (userspace files are ok) you could try moving to (actual) 5.15 again. Afair wifi in 5.15 was tested…only in 5.18/5.19 is r2-wifi untested yet
Symbol: MTK_COMBO_WIFI [=m] │
│ Type : tristate │
│ Defined at drivers/misc/mediatek/connectivity/Kconfig:217 │
│ Prompt: MediaTek combo chip Wi-Fi support │
│ Depends on: ARM [=y] && MTK_COMBO [=y] && CFG80211 [=m]
the symbol itself is set to module in 5.15 too…strange that this is reported
works on my device…
root@bpi-r2:~# wifi.sh
wifidev does not exist...create it...
loading wifi driver module
18: ap0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 02:08:22:78:3b:fc brd ff:ff:ff:ff:ff:ff
Done, all good, ready to lauch hostapd
hostapd started...set IP
restart dnsmasq...
root@bpi-r2:~# uname -a
Linux bpi-r2 5.15.41-bpi-r2-main #1 SMP Sun Jun 12 14:24:53 CEST 2022 armv7l GNU/Linux
root@bpi-r2:~#
root@bpi-r2:~# lsmod
Module Size Used by
bnep 24576 2
stp_chrdev_bt 24576 0
wlan_gen2 1556480 0
wmt_chrdev_wifi 20480 1 wlan_gen2
xt_CHECKSUM 16384 0
nft_chain_nat 16384 1
xt_MASQUERADE 16384 0
nf_nat 45056 2 xt_MASQUERADE,nft_chain_nat
nf_conntrack 139264 2 xt_MASQUERADE,nf_nat
nf_defrag_ipv6 20480 1 nf_conntrack
nf_defrag_ipv4 16384 1 nf_conntrack
nft_counter 16384 0
xt_tcpudp 16384 0
nft_compat 20480 0
nf_tables 212992 3 nft_compat,nft_chain_nat,nft_counter
nfnetlink 20480 2 nft_compat,nf_tables
mt7915e 102400 0
mt76 81920 1 mt7915e
spidev 20480 0
mac80211 839680 2 mt76,mt7915e
libarc4 16384 1 mac80211
cfg80211 774144 4 mt76,mt7915e,mac80211,wlan_gen2
lima 61440 0
gpu_sched 40960 1 lima
spi_mt65xx 20480 0
pwm_mediatek 16384 0
mtk_pmic_keys 16384 0
fuse 139264 3
ip_tables 24576 0
x_tables 36864 5 ip_tables,nft_compat,xt_tcpudp,xt_MASQUERADE,xt_CHECKSUM
root@bpi-r2:~# zgrep -i 'COMBO' /proc/config.gz
CONFIG_MTK_COMBO=y
# CONFIG_MTK_COMBO_CHIP_MT6620 is not set
# CONFIG_MTK_COMBO_CHIP_MT6628 is not set
# CONFIG_MTK_COMBO_CHIP_MT6630 is not set
# CONFIG_MTK_COMBO_CHIP_CONSYS_6572 is not set
# CONFIG_MTK_COMBO_CHIP_CONSYS_6582 is not set
# CONFIG_MTK_COMBO_CHIP_CONSYS_8127 is not set
CONFIG_MTK_COMBO_CHIP_CONSYS_7623=y
# CONFIG_MTK_COMBO_CHIP_CONSYS_6752 is not set
# CONFIG_MTK_COMBO_CHIP_CONSYS_6592 is not set
# CONFIG_MTK_COMBO_CHIP_CONSYS_8163 is not set
# CONFIG_MTK_COMBO_CHIP_CONSYS_6735 is not set
# CONFIG_MTK_COMBO_CHIP_CONSYS_6755 is not set
# CONFIG_MTK_COMBO_CHIP_CONSYS_6580 is not set
# CONFIG_MTK_COMBO_CHIP_CONSYS_6797 is not set
CONFIG_MTK_COMBO_CHIP="CONSYS_7623"
CONFIG_MTK_COMBO_PLAT_PATH=""
CONFIG_MTK_COMBO_COMM=y
# CONFIG_MTK_COMBO_COMM_UART is not set
# CONFIG_MTK_COMBO_COMM_SDIO is not set
# CONFIG_MTK_COMBO_COMM_NPWR is not set
# CONFIG_MTK_COMBO_COMM_APO is not set
CONFIG_MTK_COMBO_BT=m
CONFIG_MTK_COMBO_BT_HCI=y
CONFIG_MTK_COMBO_WIFI=m
root@bpi-r2:~#
edit: quick tested 5.18-main…there i got a dma page fault (and the “do_wlan_drv_init:CONFIG_MTK_COMBO_WIFI is not define” )