I'm trying to turn my Pi into a bridge using a wifi adapter and it's ethernet port plugged into the router through a couple floors worth of wires and switches. Doing so however removes me of the ability to ssh into it. I thought maybe it's because as the two interfaces are bridged, they lose their ip's and are controlled by br0, but sshd.conf has the default setup to listen on all ips (although on a different port than 22).
I am following the bridging section of this guide: https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md#internet-sharing
Through trial and error I discovered the problem occurs after editing /etc/network/interfaces
. Here's my current file:
auto br0
iface br0 inet manual
bridge_ports eth0 wlan0
//
bridge_stp off
bridge_fd 0
bridge_maxwait 0
up /etc/init.d/ssh restart
The slashes are added here in to signify all lines under it are from another stack exchange question on the matter that suggested adding them, so I'm unsure what they do exactly, but adding them hasn't made a difference - ssh is unusable with just the first three, or all of them.
I am using a Pi-1.
/etc/networking/interfaces
anymore. I could provide you a solution with systemd-networkd but I'm unsure if it works with the old RPi-1. May it be a possibility for you? – Ingo Sep 20 '18 at 13:29