Hello everyone,
I tried to connect my private IT HomeLab via Ethernet to Internet via Home Wifi with my Raspberry Pi 4 Model B (OS: Debian GNU/Linux 12, kernel : 6.12.20). The goal is to connect my IT HomeLab to download install updates and softwares and to connect from Wifi to my IT HomeLab.
To summarize, my IT HomeLab has the network address 10.0.0.0/24 and my Wifi network address is 192.168.1.0/24. My idea is to make my Raspberry Pi as a router to transfer packages from Ethernet to Wifi and vice-versa, so act a network bridge between these two networks.
I understood that I should use the "iptables FORWARD and MASQUERADE" and "net.ipv4.ip_forward=1", but after testing and digging Internet (including this forum
), I cannot connect these two networks. It misses a piece, but I cannot find.
So here the last iptables, ip route and net.ipv4.ip_forward is set to 1 :I tried also to create a static route to my Home Wifi router, not working.
Have you suggestions? Did I miss something? What is wrong with my config?
Best regards,
ZeRedDiamond
I tried to connect my private IT HomeLab via Ethernet to Internet via Home Wifi with my Raspberry Pi 4 Model B (OS: Debian GNU/Linux 12, kernel : 6.12.20). The goal is to connect my IT HomeLab to download install updates and softwares and to connect from Wifi to my IT HomeLab.
To summarize, my IT HomeLab has the network address 10.0.0.0/24 and my Wifi network address is 192.168.1.0/24. My idea is to make my Raspberry Pi as a router to transfer packages from Ethernet to Wifi and vice-versa, so act a network bridge between these two networks.
I understood that I should use the "iptables FORWARD and MASQUERADE" and "net.ipv4.ip_forward=1", but after testing and digging Internet (including this forum
So here the last iptables, ip route and net.ipv4.ip_forward is set to 1 :
Code:
Chain INPUT (policy ACCEPT)target prot opt source destination Chain FORWARD (policy ACCEPT)target prot opt source destination ACCEPT all -- anywhere anywhere ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHEDChain OUTPUT (policy ACCEPT)target prot opt sourceCode:
default via 10.0.0.1 dev eth0 proto static metric 100 default via 192.168.1.1 dev wlan0 proto dhcp src 192.168.1.110 metric 600 10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.1 metric 100 192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.110 metric 600Have you suggestions? Did I miss something? What is wrong with my config?
Best regards,
ZeRedDiamond
Statistics: Posted by ZeRedDiamond — Sun Apr 06, 2025 4:47 pm — Replies 0 — Views 6