Yes, I agree with you, unfortunately some rules were missing!
I’ve tested what you advised on your wiki, good basic!
I use it for my own script in order to switch on firewall at boot time!
For testing fw I recently take nmap from wan port of BPI-R2, have you other tip maybe?
you do not need all…these are examples from my config
for a firewall you should use whitelisting = block all except of known Packets.
my firewall is a mix of both…i block additionally some traffic to (e.g. ipv6-in-ipv4 like toredo and some lan-devices like my printer). for such you need to create a concept…
iptables (maybe also nftables) are executed for each packet “line by line” if one matches, the packet is handled and the other rules are not applied. e.g. it does not make sense to block anything after allowing it (lan drop have to be done before generic lan-allow).
so basicly this flow:
clean all
set policy drop (maybe with tcp-reset)
blacklisting things
whitelisting
other things like traffic control (bandwidth shaping, offloading,etc) which are not in the iptables flow (but maybe in nftables)
nmap should be best way to test…if you have a server listening you can also test with “telnet host port” if your firewall blocks traffic (have done this with dns forwarding )
Thank you for your support!
Other problem I’m facing with, I got a pci-e Wlan card(Intel 3945).
With lspci, dmesg, I can’t see anything related to it!
Wether card is broken, or pci-e interface not working correctly with this kernel?
Have you experience?
this should be a hardware-incompatibility…i’ve read somewhere here, that some intel-cards not working on r2…afair they are needing an addional bus (e.g. usb) or power (5v) to work. at least lspci should show anything for support it…my kernel has pcie enabled and working (tested with mt7612e card).
Downloaded the “bpi-r2-buster.img.tar.gz” and burned it to an SD card, then exploded the “wmt-tools+script+conf.zip” into BPI-ROOT. Booted ok but when I run “wifi.sh” it calls hostapd (which doesn’t seem to exist). I see where the conf for hostapd is getting created, but I don’t see the actual hostapd program in BPI-ROOT. What am I missing? Thanks!
I’ve installed your image and so far everything is ok.
But now i have to use a usb device, which driver is not found in the modules directory.
So I have to build the module by source.
I’ve tried some sources, but whatever I do, I get always the message
insmod r8152.ko
insmod: ERROR: could not insert module r8152.ko: Invalid module format
But where can I find the right sources and how to bind them correctly to the system?
A step by step guide would be great.
And can you provide your you kernel-config file? I think that could be helpful.
You need to compile kernel including the module by yourself. You can also compile the module with kernelsources but this is more difficult setup.
you can download kernel source from my github repo, and use build.sh (importconfig,config to enable your driver,then without param).
Your current kernel is in gitbranch 4.19-main use “git checkout 4.19-main” to switch to it after download. Build.sh asks after build to install to sdcard,then you only need to change uenv.txt (kernel variable to match your new uimage name)
Thanks for advise. Now I downloaded ciobys link, activated my desired module in the config and run the build.sh command.
Frank, you have said, i will be asked for installation to sdcard, but there is no such suggestion by the scrip
Hi Frank,
now I’ve installed from the R2 the new build directly to my sd, but the system won’t boot.
the build.sh script copied the kernel as “uImage_4.19.88-main” to the boot partition, but not the uImage_nodt (what is the nodt kernel?) and also not the dtb file. So I’ve copied them by hand and renamed the files to the original filenames in these directories.
Result: black screen - nothing happens - no boot.
So I had to roll back to the 66 kernel and machine is booting again.