Major F*ck-up with the gateway (my own fault, help please)

Started by dergroddi, April 21, 2023, 08:52:42 AM

Previous topic - Next topic
Hi,

in my setup I have two networks (192.168.1.x for main, 10.10.10.x for IOT devices). I also have a Raspi Pi Zero W with a camera mounted inside my birdhouse (which - at the moment - is filled with eggs about to hatch, so no physical access possible as not to disturb or drive away the bird parents).

Normally this birdhouse device is on DHCP with IP 10.10.10.10, gateway 10.10.10.1 and DNS 192.168.1.2 (which is my Pi-Hole). Since I had connection issues with the birdhouse I wanted to see if a static IP address instead of DHCP would solve my problem.

So I went in and changed the static IP to 10.10.10.10, the DNS to 192.168.1.2 and THE GATEWAY to 192.168.1.1 (instead of 10.10.10.1). And now I cannot connect AT ALL.

Is there any way I can fix this without being able to access the SD card from the Zero W?

Sure, 2 options:

- activate outbound NAT on that interface
- ssh to your opnsense and then from there to your raspi

All that so the raspi does not have to use its gateway.

Perfect, I ssh-ed into my opnsense and from there to the birdcam.

Thank you for this valuable advice, I learned something useful  :)