#2138·portmaster

Failed ASN lookup on allow rule blocks request despite all-allow rule

Author: TerranceCreated Mar 7, 2026Updated Sep 30, 2026
Labelsbugstalepinned

Pre-Submit Checklist:

What happened:

Portmaster sems to fail to resolve ASNs some of the time, which causes a request to be denied with something like:

Reason: allowed by rule: ASN data not available to match <rule>

This happens even if an app is set to allow all connections:

Image

What did you expect to happen?:

Firefox is set not to block any traffic, so should not be affected by an unresolvable allow rule. (If a deny rule can't be checked, then I would expect that to fail safe and block the request.)

How did you reproduce it?:

  1. Add a global allow rule permitting IPs from an ASN, e.g. for Steam game traffic:
    AS32590 UDP/27015-27250
  2. Set Default Network Action to Allow for an application.
Debug Information

Version 2.1.7:

Portmaster 2.1.7

built with go1.24.11 (gc -cgo) for windows/amd64
  at 2025-12-09T21:41:12Z

commit b5cb00693709167968545315c7150cdfaa8e273c (clean)
  at 2025-12-09T21:35:06Z
  from https://github.com/safing/portmaster.git

Licensed under the GPLv3 license.

Platform: Microsoft Windows 10 Pro 10.0.19045 Build 19045:

System: Microsoft Windows 10 Pro windows (Standalone Workstation) 10.0.19045 Build 19045
Kernel: 10.0.19045 Build 19045 x86_64

Unexpected Logs:

2026-03-07 19:10:10.691 WRN solver-tcp:454 > 838 resolver: read error from Blocky (tcp://172.16.1.1:53#config): read tcp 172.16.2.1:15412->172.16.1.1:53: wsarecv: An existing connection was forcibly closed by the remote host.
2026-03-07 19:10:25.055 WRN solver-tcp:454 > 894 resolver: read error from Blocky (tcp://172.16.1.1:53#config): read tcp 172.16.2.1:12677->172.16.1.1:53: wsarecv: An existing connection was forcibly closed by the remote host.
2026-03-07 19:10:37.617 WRN tel/entity:253 > 950 intel: failed to get location data for 104.82.234.109: invalid node in search tree
2026-03-07 19:10:37.871 WRN tel/entity:253 > 965 intel: failed to get location data for 104.82.234.109: invalid node in search tree
2026-03-07 19:10:42.048 WRN tel/entity:253 > 018 intel: failed to get location data for 104.82.234.109: invalid node in search tree
2026-03-07 19:10:42.297 WRN tel/entity:253 > 029 intel: failed to get location data for 104.82.234.109: invalid node in search tree
2026-03-07 19:11:01.380 WRN solver-tcp:454 > 087 resolver: read error from Blocky (tcp://172.16.1.1:53#config): read tcp 172.16.2.1:16539->172.16.1.1:53: wsarecv: An existing connection was forcibly closed by the remote host.
2026-03-07 19:11:04.068 WRN tel/entity:253 > 138 intel: failed to get location data for 104.78.173.167: invalid node in search tree
2026-03-07 19:11:13.457 WRN solver-tcp:454 > 240 resolver: read error from Blocky (tcp://172.16.1.1:53#config): read tcp 172.16.2.1:16934->172.16.1.1:53: wsarecv: An existing connection was forcibly closed by the remote host.
260307 19:11:23.821 CURRENT TIME

Status: Online:

OnlineStatus:          Online
CaptivePortal:         

SPN: disabled (module disabled):

HomeHubID:    
HomeHubName:  
HomeHubIP:    
Transport:    
---
Client:       true
PublicHub:    false
HubHasIPv4:   false
HubHasIPv6:   false

Resolvers: 4/4:

Blocky (tcp://172.16.1.1:53#config)
  tcp://172.16.1.1:53#config
  Failing: false

fe80::32b1:b5ff:fe91:3659 (dns://fe80::32b1:b5ff:fe91:3659:53#system)
  dns://fe80::32b1:b5ff:fe91:3659:53#system
  Search Domains: .home., .home.
  Failing: false

172.16.1.1 (dns://172.16.1.1:53#system)
  dns://172.16.1.1:53#system
  Search Domains: .home., .home.
  Failing: false

172.16.0.1 (dns://172.16.0.1:53#system)
  dns://172.16.0.1:53#system
  Search Domains: .home., .home.
  Failing: false

Config: 10:

core/automaticUpdates: false
core/devMode: true
core/expertiseLevel: developer
dns/nameserverRetryRate: 10
dns/nameservers: [redacted]
dns/useStaleCache: true
filter/askTimeout: 10
filter/defaultAction: ask
filter/endpoints: [redacted]
filter/removeOutOfScopeDNS: false

Updates: stable (17):

Binaries Index: v2.1.7 from 2026-02-14 13:56:54.7540054 +0000 GMT m=+0.558175201
Intel Index: v20260307.15.2 from 2026-03-07 15:02:53.443857737 +0000 UTC

File    Version   Index   SHA256

WebView2Loader.dll    2.1.7            binaries   609c974a8cdd6a76a745b3d81b62f321d79f2dc8f4929e1eea8469d9d78baf79
assets.zip            2.1.7            binaries   fb61a09b7223ad9dfcfafab71a25afca42fb5bb36250e5518effc7bc1fd31550
portmaster-core.dll   2.1.7            binaries   a0f7d615bdd58230e20fe66df6804fffc20a38bdae8b540780236f6b15dac580
portmaster-core.exe   2.1.7            binaries   9d0cf44490f4bb6098f4e581ed61ea83fe80aa537b40e93ab0345567f459991c
portmaster-kext.sys   2.1.7            binaries   4d72a8b43a4a3f2e2b5598edbd64a28de8c47a4db546607164c5e48c07103329
portmaster.exe        2.1.7            binaries   503b1d2db1a3fa1085942efa20e9b314d31b33231d32ee616f308dd1c536d675
portmaster.zip        2.1.7            binaries   693dd7ab84b04933768b38c0163b8f343550478c01c6af933a870ac5052031e9
uninstall.exe         2.1.7            binaries   a11147e365d3d84256b44ceafa5f98ca0a6b343997e7bb274dd64954b0cfb589
main-intel.yaml       20250930.11.57   intel      c73be8f0600af4500f5d3e6f8e354f5d96dba2ce37d59aa976306a8ea9e5bc6d
notifications.yaml    20250915.11.11   intel      8168f64860717712a9d0a00da876e84f03c34834b3a8e0e1dfa783a9c29f7235
news.yaml             20250812.8.58    intel      fa64e8d0f2adc61093df516d4be68ad536c4de29fd9f7c2473311dbdaaa1f9c6
index.dsd             2025.4.14        intel      026325cc7af459251fb08dce0a6166aeece4c9b5a4b7d26e15f4f7d94e0e6e0e
base.dsdl             20260201.0.1     intel      afd14c685f45bc8d05f4249692d30fd5b882d564197018ddc0873c7719c7f245
intermediate.dsdl     20260201.0.0     intel      101637f0a4fece1e57d95cd2e1a02ec5c5826f47d9f42cffbe4cc7fd87a04ece
urgent.dsdl           20260307.15.0    intel      3ed71b4195eee3434ff75254db7c9c3794cefd76d8b90b1a087c093191a1bbb7
geoipv4.mmdb          20260105.0.0     intel      6b6bd8beeb4ccc600d5e189d86585dcd54906defe3212da6a0cee7f260ff2e05
geoipv6.mmdb          20260105.0.0     intel      6b8b04fece7779541013b56e4acb31a8cca6ee85b4b1572d4d45a61cbefd3efa

Compatibility: WFP State (38):

Edge traversal Teredo Authorization Sublayer   SubLayer   Edge traversal Teredo Authorization Sublayer                                  {7b6b11f6-cbb5-433c-ae06-6a4f0076e49e}
IPxlat Forward IPv4 filter                     Callout    Filters forwarded IPv4 packets into synthetic IPv6 packets                    {b255c296-7e0c-4115-95f3-b7f24a8a1162}   [no provider key]   FWPM_LAYER_IPFORWARD_V4
IPxlat Forward IPv4 sub layer                  SubLayer   Sub layer for filtering forwarded IPv4 packets into synthetic IPv6 packets    {4351e497-5d8b-46bc-86d9-abccdb868d6d}
IPxlat Inbound IPv6 filter                     Callout    Filters incoming IPv6 packets into synthetic IPv4 packets                     {93bb703d-0502-42e2-8e30-a14576e5085d}   [no provider key]   FWPM_LAYER_INBOUND_IPPACKET_V6
IPxlat Inbound IPv6 sub layer                  SubLayer   Sub layer for filtering incoming IPv6 packets into synthetic IPv4 packets     {dfb035ca-c2a7-4684-97b6-4dbc57c63590}
IPxlat Outbound IPv4 filter                    Callout    Filters outgoing IPv4 packets into synthetic IPv6 packets                     {66d52657-1979-4e58-b3f7-4756434c4880}   [no provider key]   FWPM_LAYER_OUTBOUND_IPPACKET_V4
IPxlat Outbound IPv4 sub layer                 SubLayer   Sub layer for filtering outgoing IPv4 packets into synthetic IPv6 packets     {d3e70856-fc90-4c0a-b9b2-a6f73e20b5cc}
Portmaster ALE Outbound IPv4                   Callout    Portmaster uses this layer to block/permit outgoing ipv4 connections          {58545073-f893-454c-bbea-a57bc964f46d}   [no provider key]   FWPM_LAYER_ALE_AUTH_CONNECT_V4
Portmaster ALE Outbound IPv4                   Filter     Portmaster uses this layer to block/permit outgoing ipv4 connections          {fb360f3d-b6dd-4f9d-9221-f1628daa98e6}   [no provider key]   FWPM_LAYER_ALE_AUTH_CONNECT_V4   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster ALE Outbound IPv6                   Callout    Portmaster uses this layer to block/permit outgoing ipv6 connections          {4bd2a080-2585-478d-977c-7f340c6bc3d4}   [no provider key]   FWPM_LAYER_ALE_AUTH_CONNECT_V6
Portmaster ALE Outbound IPv6                   Filter     Portmaster uses this layer to block/permit outgoing ipv6 connections          {bdf87396-6d7a-4313-80f9-bf70e64e26d5}   [no provider key]   FWPM_LAYER_ALE_AUTH_CONNECT_V6   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster Datagram IPv4                       Callout    Portmaster uses this layer for bandwidth statistics of IPv4 UDP connections   {e7eeeaba-168a-45bb-8747-e1a702feb2c5}   [no provider key]   FWPM_LAYER_DATAGRAM_DATA_V4
Portmaster Datagram IPv4                       Filter     Portmaster uses this layer for bandwidth statistics of IPv4 UDP connections   {c2c5d1f7-d54a-4257-bafc-ab1e481572d6}   [no provider key]   FWPM_LAYER_DATAGRAM_DATA_V4   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster Datagram IPv6                       Callout    Portmaster uses this layer for bandwidth statistics of IPv6 UDP connections   {b25862cd-f744-4452-b14a-d0c1e5a25b30}   [no provider key]   FWPM_LAYER_DATAGRAM_DATA_V6
Portmaster Datagram IPv6                       Filter     Portmaster uses this layer for bandwidth statistics of IPv6 UDP connections   {570cd9aa-0be6-4fca-b821-d490d5ebb1dc}   [no provider key]   FWPM_LAYER_DATAGRAM_DATA_V6   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster Endpoint Closure IPv4               Callout    Portmaster uses this layer to detect when a IPv4 connection has ended         {58f02845-ace9-4455-ac80-8a84b86fe566}   [no provider key]   FWPM_LAYER_ALE_ENDPOINT_CLOSURE_V4
Portmaster Endpoint Closure IPv4               Filter     Portmaster uses this layer to detect when a IPv4 connection has ended         {253733ae-6b8f-48a9-a830-6848676373be}   [no provider key]   FWPM_LAYER_ALE_ENDPOINT_CLOSURE_V4   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster Endpoint Closure IPv6               Callout    Portmaster uses this layer to detect when a IPv6 connection has ended         {2bc82359-9dc5-4315-9c93-c89467e283ce}   [no provider key]   FWPM_LAYER_ALE_ENDPOINT_CLOSURE_V6
Portmaster Endpoint Closure IPv6               Filter     Portmaster uses this layer to detect when a IPv6 connection has ended         {bdd2014a-6a6f-41e6-8e7d-84ef808d04c7}   [no provider key]   FWPM_LAYER_ALE_ENDPOINT_CLOSURE_V6   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster Packet Inbound IPv4                 Callout    Portmaster uses this layer to redirect/block/permit inbound ipv4 packets      {f0369374-203d-4bf0-83d2-b2ad3cc17a50}   [no provider key]   FWPM_LAYER_INBOUND_IPPACKET_V4
Portmaster Packet Inbound IPv4                 Filter     Portmaster uses this layer to redirect/block/permit inbound ipv4 packets      {a93060ea-399e-4c72-a600-e3de4dcb5b19}   [no provider key]   FWPM_LAYER_INBOUND_IPPACKET_V4   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster Packet Inbound IPv6                 Callout    Portmaster uses this layer to redirect/block/permit inbound ipv6 packets      {fe9faf5f-ceb2-4cd9-9995-f2f2b4f5fcc0}   [no provider key]   FWPM_LAYER_INBOUND_IPPACKET_V6
Portmaster Packet Inbound IPv6                 Filter     Portmaster uses this layer to redirect/block/permit inbound ipv6 packets      {842d6b6f-a71e-4779-9425-eb40830c08e8}   [no provider key]   FWPM_LAYER_INBOUND_IPPACKET_V6   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster Packet Outbound IPv4                Callout    Portmaster uses this layer to redirect/block/permit outgoing ipv4 packets     {f3183afe-dc35-49f1-8ea2-b16b5666dd36}   [no provider key]   FWPM_LAYER_OUTBOUND_IPPACKET_V4
Portmaster Packet Outbound IPv4                Filter     Portmaster uses this layer to redirect/block/permit outgoing ipv4 packets     {5f8035e3-fbf7-47eb-8811-d78fb4e3e4ed}   [no provider key]   FWPM_LAYER_OUTBOUND_IPPACKET_V4   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster Packet Outbound IPv6                Callout    Portmaster uses this layer to redirect/block/permit outgoing ipv6 packets     {91daf8bc-0908-4bf8-9f81-2c538ab8f25a}   [no provider key]   FWPM_LAYER_OUTBOUND_IPPACKET_V6
Portmaster Packet Outbound IPv6                Filter     Portmaster uses this layer to redirect/block/permit outgoing ipv6 packets     {ac54f0f9-bdaa-4ccd-886e-a885d77f7689}   [no provider key]   FWPM_LAYER_OUTBOUND_IPPACKET_V6   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster Stream IPv4                         Callout    Portmaster uses this layer for bandwidth statistics of IPv4 TCP connections   {e2ca13bf-9710-4caa-a45c-e8c78b5ac780}   [no provider key]   FWPM_LAYER_STREAM_V4
Portmaster Stream IPv4                         Filter     Portmaster uses this layer for bandwidth statistics of IPv4 TCP connections   {9a48a48b-a427-4202-a19e-99a42346989e}   [no provider key]   FWPM_LAYER_STREAM_V4   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster Stream IPv6                         Callout    Portmaster uses this layer for bandwidth statistics of IPv6 TCP connections   {66c549b3-11e2-4b27-8f73-856e6fd82baa}   [no provider key]   FWPM_LAYER_STREAM_V6
Portmaster Stream IPv6                         Filter     Portmaster uses this layer for bandwidth statistics of IPv6 TCP connections   {38c0d420-f2a4-4550-ad2c-4d65cec0982c}   [no provider key]   FWPM_LAYER_STREAM_V6   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster resource release IPv4               Callout    Portmaster uses this layer to detect when a IPv4 port has been released       {7b513bb3-a0be-4f77-a4bc-03c052abe8d7}   [no provider key]   FWPM_LAYER_ALE_RESOURCE_RELEASE_V4
Portmaster resource release IPv4               Filter     Portmaster uses this layer to detect when a IPv4 port has been released       {0198731b-9586-4608-a8d8-4451fca774ed}   [no provider key]   FWPM_LAYER_ALE_RESOURCE_RELEASE_V4   {7dab1057-8e2b-40c4-9b85-693e381d7896}
Portmaster resource release IPv6               Callout    Portmaster uses this layer to detect when a IPv6 port has been released       {6cf36e04-e656-42c3-8cac-a1ce05328bd1}   [no provider key]   FWPM_LAYER_ALE_RESOURCE_RELEASE_V6
Portmaster resource release IPv6               Filter     Portmaster uses this layer to detect when a IPv6 port has been released       {9a16ac05-f486-479a-8f90-c7b2798d462b}   [no provider key]   FWPM_LAYER_ALE_RESOURCE_RELEASE_V6   {7dab1057-8e2b-40c4-9b85-693e381d7896}
PortmasterSublayer                             SubLayer   The Portmaster sublayer holds all it's filters.                               {7dab1057-8e2b-40c4-9b85-693e381d7896}
Teredo socket option opt out block filter      Filter     [no description]                                                              {7309827b-8fbb-462b-be1e-5b0b2c1db479}   {686cb1ed-4699-4abe-967f-3550caa07826}   FWPM_LAYER_ALE_AUTH_RECV_ACCEPT_V6   {7b6b11f6-cbb5-433c-ae06-6a4f0076e49e}
VPN Reconnect Sublayer                         SubLayer   [no description]                                                              {9367171b-3264-4f09-a0e8-81b38c162f17}

Worker Status: 3/56 (0?):

56 Workers: 3 running, 56 waiting

#   State          Module           Name                                 Worker Func                                                                                      Current Line                                                                             Extra Info
1   running        API              http request                         github.com/safing/portmaster/base/api.(*mainHandler).ServeHTTP.func1                             github.com/safing/portmaster/service/debug.go:74                                         
1   syscall        DNSMonitor       etw-dns-event-listener               github.com/safing/portmaster/service/firewall/interception/dnsmonitor.initializeSessions.func1   github.com/safing/portmaster/service/integration/etw_windows.go:73                       
1   syscall        Interception     kext packet handler                  github.com/safing/portmaster/service/firewall/interception.startInterception.func3               github.com/safing/portmaster/windows_kext/kextinterface/kext_file.go:61                  
1   chan receive   Resolver         mdns handler                         github.com/safing/portmaster/service/resolver.listenToMDNS                                       github.com/safing/portmaster/service/resolver/resolver-mdns.go:147                       
2   select         API              database api writer                  github.com/safing/portmaster/base/api.(*DatabaseWebsocketAPI).writer                             github.com/safing/portmaster/base/api/database.go:155                                    
2   select         Rng              feeder                               github.com/safing/portmaster/base/rng.(*Feeder).run                                              github.com/safing/portmaster/base/rng/entropy.go:117                                     
1   select         Firewall         bandwidth update handler             github.com/safing/portmaster/service/firewall.bandwidthUpdateHandler                             github.com/safing/portmaster/service/firewall/packet_handler.go:854                      
1   select         Firewall         packet handler                       github.com/safing/portmaster/service/firewall.packetHandler                                      github.com/safing/portmaster/service/firewall/packet_handler.go:839                      
1   select         Interception     kext bandwidth request worker        github.com/safing/portmaster/service/firewall/interception.startInterception.func4               github.com/safing/portmaster/service/firewall/interception/interception_windows.go:70    
1   select         Interception     kext clean ended connection worker   github.com/safing/portmaster/service/firewall/interception.startInterception.func6               github.com/safing/portmaster/service/firewall/interception/interception_windows.go:103   
1   select         Interception     kext log request worker              github.com/safing/portmaster/service/firewall/interception.startInterception.func5               github.com/safing/portmaster/service/firewall/interception/interception_windows.go:87    
1   select         NetEnv           monitor network changes              github.com/safing/portmaster/service/netenv.monitorNetworkChanges                                github.com/safing/portmaster/service/netenv/network-change.go:52                         
1   select         NetEnv           monitor online status                github.com/safing/portmaster/service/netenv.monitorOnlineStatus                                  github.com/safing/portmaster/service/netenv/online-status.go:363                         
1   select         NetQuery         netquery connection feed handler     github.com/safing/portmaster/service/netquery.(*NetQuery).Start.func2                            github.com/safing/portmaster/service/netquery/manager.go:101                             
1   select         NetQuery         netquery connection feed listener    github.com/safing/portmaster/service/netquery.(*NetQuery).Start.func1                            github.com/safing/portmaster/