Until now all is good but I have problem when trying to setup GRE tunnel and IPIP, for example
CMD: sudo ip tunnel add gre2 mode gre local 192.168.10.57 remote 192.168.1.62 ttl 64
Result: add tunnel “gre0” failed: No such device
Please note all routing works, the problem with config set of gre tunnel
I tiried to
1- sudo modprobe ip_gre
2- CMD: echo “ip_gre” | sudo tee -a /etc/modules
Resualt: ip_gre
3- CMD: sudo modprobe ip_gre
Resualt: modprobe: FATAL: Module ip_gre not found in directory /lib/modules/5.15.77
4- I downloaded linux-6.7.3 and from sudo make menuconfig, I enabled “GRE tunnel” from network option , then I execute sudo make -j $(nproc) for Compile Kernel, it takes 2h and the SDcard full but after that gre keep not working .
5- sudo make modules_install
I tried to reboot after all steps but gre not working.
Is there any this I miss ?
what should I do for resolve this problem ?
uname -a
Linux 5.15.77 #2 SMP Sun Nov 20 19:04:00 CST 2022 aarch64 GNU/Linux
Gre tunnel is:
Generic Routing Encapsulation (GRE) tunnel connects two endpoints (a firewall and another appliance) in a point-to-point, logical link. The firewall can terminate GRE tunnels; you can route or forward packets to a GRE tunnel.
I did the same gre tunnel with raspberry pi R4 with debian11 (I download it from debian11 website)and it works fine.
So you do not boot your self compiled kernel but you have to figure out how your image gets the right kernel to boot…in worst case backup old kernel and rename your one to its old filename
So it sounds like software tunnel without hw offloading…so if you manage to boot your kernel it should work. You can also build an image with my router images repo and replace kernel with one built from my kernel-repo. You can also build kernel first and use pack option and set this tarball as kernelsource for the imagebuilder
Thank you frank
I will try it
But please note I am building firewall and router similar to openwrt but easer in my opinion.
This is why I am adding tunnels and other technologies
Hello
I did all of these stepes and the “./build.sh” has been finished,
but the gre still not working
please note after the step :
./buildimg.sh bpi-r3 bookworm
it return :
./buildimg.sh bpi-r3 bookworm
needed: python3 parted qemu-user-static debootstrap binfmt-support
please install python3
please install parted
please install qemu-user-static
please install debootstrap
please install binfmt-support
./buildimg.sh: line 57: return: can only `return' from a function or sourced script
sudo: unable to resolve host bpi-r3: Name or service not known
create image for bpi-r3 (arm64) bookworm 6.1
./buildimg.sh: line 77: python3: command not found
ls: cannot access 'sourcefiles_bpi-r3.conf': No such file or directory
sourcefiles_bpi-r3.conf file missing
why do you start the script from sd? it is designed to run on a host-system (ubuntu x86_64), not on the target board itself
First 2 lines should go into the conf file with filename i posted above the block (replace kernelpackage.tar.gz with filename you get after compiling+packing kernel and copied to the imagebuilder directory)
added GRE to bpi-r3 defconfig of my 6.6-main branch, after pipeline is finished you can create image with my image-builder script. make sure you have latest code as i recently changed default kernel from 6.1 to 6.6