Odd network behaviour caught by firewall - Xperia 10 III

Hello, my firewall caught some strange behaviour that is guaranteed to be related to my SailfishOS installed Xperia 10 III. Just thought I’d ask around to see if anyone here has seen similar behaviour or could explain it to me.

The IP addresses on the right side of the screenshot above are one of my telecom provider’s MMS servers, which I know from the port being used, having manually entered it into the settings on SailfishOS. However, the 2 IP addresses on the left are not anything I recognize. Some whois requests say the IP addresses belong to a range assigned to the UK Ministry of Defense. However, my firewall is listing this as a LAN initiated request, and I’m definitely nowhere near the UK, and my LAN has the standard 192.168.0.0/16 assignments. I know this request is somehow involving my Sailfish device, both from the timing (I was fooling around a lot with re-flashing and setting up my Xperia earlier that day), and because my Android devices never contact MMS servers through my WiFi network.

Again, just wondering if this can be explained by anyone here or if similar behaviour has been seen by others in the community…

Is it a fresh install without Android Apps?

It has the AppSupport option installed, but the service was not running (also disabled the auto-start on boot) by the time in the screenshot.

icann query gives 25.75.249.121 beein ripe database.

what is ripe database:

One of the activities of RIPE is to maintain a database of European IP networks, DNS domains and their contact persons and other infor- mation needed for the technical coordination of IP networks. This database is called the RIPE Network Management Database or sim- ply the "RIPE Database”

looks usefull, not harmfull.

2 Likes

Huh, I must have made a pretty big typo. Still confused as to why it’s showing up as a LAN originating IP, and why it would be contacting the MMS server. Perhaps a question partially better suited to pfSense’s forum.

Caught the behaviour again, though with IP 25.211.140.233. ICANN is corroborating my initial finding this time. Anyways, I wonder if this behaviour of trying to send/receive MMS via WiFi is a known bug? As far as I can remember they’ve always been forced to go through cellular data. Perhaps it is why MMS refuses to work here in Canada. That or I need to phone my carrier’s tech support to force associate my IMEI with my account, since it doesn’t seem to do it automatically…

Handle: 25.0.0.0 - 25.255.255.255

Lol, must be nice owning an ipv4 /8 block.
(I know, it’s RIPE, totally explainable. My whois query lists RegDate: 1985-01-28 btw. Fun.)

Anyhoo, ideas that come to mind: cold be the result some round-robin DNS, maybe DNS-Over-HTTPS? NTP (though that would probably use UDP)?

If you catch the event while it is happening, try (on the phone):

devel-su netstat -anp | grep [source port]

Which should gives you the process that owns the connection.

(Or if you want to be fancy about it, use the ss tool instead of netstat.)

devel-su ss -plants  dst = 25.0.0.0/8
devel-su ss -plants  dport = :47600
devel-su ss -plants  dport = :8799
...
3 Likes

… and if you want to be really stupid about it, you could use googerteller:

which is available here:

1 Like

I shall try that out next time I’m off work.

On another note, the folks over at the pfSense forum suggested that this behaviour could indicate a problem with network stack configuration. Does anyone know how I could check on and troubleshoot such things?

:backhand_index_pointing_up: This is in no way a specific enough description to warrant a question like this. :backhand_index_pointing_down:

You are probably better off asking the people that said that what they mean.

I’m just looking for pointers in such a direction really. I’ll link the thread for you to take a gander if you or anyone else so desires. They’re probably using the more technical language you’re looking for.

Did you check your device IP address?

Some of the big orgs that got large allocations way back when have returned parts of their address space to alleviate the IPv4 address shortages, in addition to that from what I have seen on my router Jolla “bleeds information”/bridges between cellular and wifi connections (security issue).

These two factors together could mean that your firewall is seeing packets that should have been sent out over your phone’s cell modem.

(It could also be on purpose assymetric routing so that when you are on wifi you get fast downloads but said downloads won’t be interrupted if you move off wifi though that sounds very iffy to me)

Well, my carrier here in Canada does not own any IPs in the 25.x.x.x block at all, and current IP while on mobile data in my area is not a 25 address either. So while my firewall is seeing something triggered by uploading/downloading MMS content, something’s going wrong with the network software somewhere. And the two experienced networking people over at pfSense seem decently certain about their conclusion, I just don’t know where to go from there.

I tried the ss tool, the process is (probably as expected): mms-engine (pid=11525,fd=11) from 192.0.0.2, both with and without WiFi connected

What happens with android device that uses mms or rcs that connects to your firewall device? Are they passing through without alarm? Maybe that’s the problem and you’re missing how google servers are passing those without triggering an alarm
Edit: with sim in and sim data off they should be using same communication tracks to communicate mms/rcs, no?

MMS never goes out over WiFi, only mobile data, on my Android device. My service provider’s MMS servers are programmed as DNS hostnames, so my firewall (which is also a DNS resolver) would log if those requests were ever going through it whether blocked or not. Only the Sailfish device sends anything related to MMS through WiFi. And I have painstakingly removed nearly all traffic to anything Google with my firewall, certainly anything DNS related.

MMS does not send or download with mobile data disabled here in Canada.

The thing is your carrier doesn’t need to own it, especially with blocks belonging to defense orgs that often are kept airgapped parties in severe need for IP space may play loose with the rules and “adopt” some/all of that space as internal address space for their CGNAT.

Should they? Absolutely not, but people do strange things to get things working and as long as the UK MoD doesn’t publish a route or they make sure that the internal address space is not being published out it will probably work.

Nah, I was receiving mms/rcs over wlan when in US on an unsupported band with US simcard, so this definitely can go over wifi
Literally in NY with XV and don’t remember if it was verizon or tmobile sim, zero ‘mobile connecitivity’ still chatting over sms/rcs (android mind you, would probably have been fcked on sfos) when had wifi

RCS maybe, but I’m not using that with Sailfish or Android. MMS definitely not here at least.

1 Like

MMS - is rcs fallback in most carriers