OpenWrt on revision 3 of Sophos desktop appliances

Finally received a gen3 XG-135 but I can't get it to work properly -- it looks like the WAN and LAN ports are bridged and my network devices request public IPs from ISP when I plug it in.

I wonder if there's a switch which needs to be configured?

@NC1 -- any suggestions?

PS. Just like on rev1 and rev2 Sophos devices I have ports eth0 and eth2-7 listed for LAN and port eth1 for WAN (as per marking on the case). How can I test which port in OpenWrt corresponds to which physical port on device? Maybe the numbering is messed up?

Pull the ethernet cable, see what dmesg say?

2 Likes

Well, since I've been invoked by name... :smile:

I haven't worked with this specific model and revision, so let me first hazard a guess and then propose a course of action independent from that guess.

(The paragraphs below have been edited; the original version incorrectly used port labeling from SG 125 Rev 2)

The guess: Right now, the WAN port is most likely the one that is labeled 6 on the device (the second port in the second group of four ports). Here's what I think is happening here. There are two four-port NICs. When OpenWrt first starts, it finds the second (from the standpoint of the stock firmware) NIC first and enumerates its ports as eth0-eth3 (on device, those are labeled 5 through 8, so port 5 becomes eth0, port 6 becomes eth1, and so on). Then it finds the first NIC and enumerates its ports as eth4-eth7 (on device, those are labeled 1 through 4).

The course of action (basically, what @frollic said, but in more words): With a console connection active (or with a monitor connected to the SG 135's video output), connect the port labeled 6 on the SG 135 to an upstream device. Watch the output on the console; there will be messages telling you that the port state has changed, including the name of the port. If my guess is correct, those messages will be about the eth1 port. If not, keep trying other ports until you find the one that OpenWrt thinks is eth1.

1 Like

Both @frollic and @NC1 were spot on, the port assignment on this device is weird:

eth5 - 1 LAN
eth6 - 2 WAN
eth7 - 3 DMZ
eth8 - 4
eth0 - 5
eth1 - 6
eth2 - 7
eth3 - 8

I'm guessing eth4 is reservied for the missing card.

I'll submit a PR for this device whitin a few days.

1 Like

I think the technical term is "expansion module". Sophos brands their expansion modules "FleXi Port".

1 Like

PR: https://github.com/openwrt/openwrt/pull/12092

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.