[HOWTO] Installing OpenWrt on Sophos SG105w

OpenWrt doesn't care whether it's RJ-45 or SFP; it's the same driver interacting with the same NIC. If you have a cartridge compatible with the port, the connection will be operational.

And over a year later I find this thread. I am running into the same problem that “Ultraschorsch” had with not being able to connect to the internet to download and install the OpenWrt.

I have a XG 115w that came with Pfsense 2.7.2 installed on it. I was able to get it working and updated to 2.8.1 and it seems to be working just fine but I think it is a bit overkill for my home.

Are the steps listed above still valid with the latest version of OpenWrt “24.10.4”?

Which revision of XG 115w do you have? Revision 3 has a port layout that’s different from Revisions 1 and 2. See my mea culpa earlier in this thread:

[HOWTO] Installing OpenWrt on Sophos SG105w - #12 by NC1

1 Like

Ver 3. I figured out the ports but for some reason it just wont connect to internet. I just finished setting up OPNsense on it to see how it runs and it installed fine with no issues. Not sure why OpenWrt is giving me such a hard time. :exploding_head:

Please post your /etc/config/network. Let’s see what’s holding you back…

1 Like

I have made some progress! I had to edit the /etc/config/network to change LAN port IP as 192.168.1.1 was already being used by my current router. vi editor is a nightmare to use! Key strokes don’t seem to register via serial connection or direct connection with HDMI and USB keyboard so that took a bit if fuzzing around to get it changed but after that following the instructions when very smoothly.

I ran the automated script and got all the disc space back but I am not sure about the ports. I should have 4 ports, 1 WAN and 3 LAN ports correct? Can I set those up in the Network Interfaces or does that have to be done via the console?

Check if they've been added to br-lan, if not, add them, if available.
You might need to modify /etc/board.json too.

Anyone care to share what the correct /etc/config/network should look like for the Version 3? :folded_hands:

don't post screen shots, they're useless.

keep adding list ports lines in the br-lan section to add any extra ports to lan.
you were told the same thing 6 hrs ago.

All very new and Greek to me, but I think I am picking-up what you are putting down.

Edit the /etc/config/network and under the config device section, add 2 more lines with the list ports of the other 2 available ports.

Like this:

config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
list ports 'eth1'
list ports 'eth3'

(above list for future me when I need to do this again)

This seems to be the fix as I now shows 3 lan ports in the Interfaces section all grouped in br-lan and I plugged into those ports and they all seem to work now with internet access.

Thanks for everyone’s help on this! I think I am ready to swap out the old Linksys EA6900 router with the Sophos SG115w.

:partying_face:

Once you’ve done this, does it create any issues when you upgrade?

Since this thread started, there was a development; @vgaetera has made a script that makes the repartitioning process much less labor-intensive:

https://openwrt.org/docs/guide-user/advanced/expand_root

I, in turn, have made a Web page about repartitioning and its persistence across upgrades that draws on that script:

https://ncbase.net/notes/openwrt-persistent-repartitioning

Hope this helps…

2 Likes

Thanks. Separate question, has anyone on this thread successfully managed to reset the bios on one of these devices - one of the ones I got had a drained bios battery, and it won’t post to console/HDMI so I suspect it may have a corrupt bios.