Files
conversation-history/SquareMCP/runbooks/2026-09-16-coralsprings-globalprotect-ssl-fallback.md

9.1 KiB

date, status, tags
date status tags
2026-09-16 verified-temporary
networking
tailscale
globalprotect
macos
runbook

Windows GlobalProtect over Mac → Nexxt → art0

Verified result

GlobalProtect changed from IPSec to SSL after a narrow Mac firewall adjustment. The user's Windows screenshot showed a working IPLeak page, GlobalProtect connected to US Southeast using SSL, and public IPv4 144.125.117.20. This is the corporate VPN exit address, so Windows should not be expected to display art0's 104.190.60.129 while routed through GlobalProtect. This was a successful browsing test, not a comprehensive leak or application test.

No passwords or credentials are included in this runbook or its script copies. Enter the Mac administrator password interactively when sudo requests it. Windows administrator access was not required.

Topology and prerequisite configuration

Windows → Nexxt Wi-Fi coralsprings → Nexxt WAN 192.168.2.2 → Mac Ethernet/bridge100 192.168.2.1 → Tailscale utun5 → art0 exit → corporate GlobalProtect gateway → internet.

  • Windows Wi-Fi was 192.168.5.94, gateway 192.168.5.1.
  • Mac USB Ethernet service AX88179A, device en8, belongs to bridge100.
  • Mac Tailscale address 100.115.106.53; art0 100.115.252.53, public 104.190.60.129.
  • Existing Mac sharing NAT and route-to rules must already work; see 2026-09-14-mac-nexxt-tailscale-art0-sharing.
  • Mac route to 192.168.2.2 must use bridge100; Tailscale Allow LAN Access was enabled during the earlier recovery.

Why the change was made

The phone could browse through coralsprings, but Windows with GlobalProtect connected could not complete HTTPS. DNS resolved and TCP 443 connectivity testing succeeded. Curl stalled during connection/TLS setup. Windows DF pings to 1.1.1.1 with 1,200-byte payloads all timed out; 1,000-byte payloads all succeeded. The Mac Tailscale interface MTU was 1280. This strongly indicated a packet-size/fragmentation problem with nested VPNs; the exact dropping hop was not established.

Windows was managed without local administrator access. GlobalProtect Preferences did not offer a user-selectable SSL option. Instead, a temporary Mac rule blocked only UDP 4501 from the Nexxt WAN address to the observed GlobalProtect gateways. GlobalProtect successfully used its supported SSL fallback on TCP 443. Corporate VPN authentication and policy enforcement remained in GlobalProtect.

Exact change

Anchor: com.apple.internet-sharing/shared_v4. Insert these before the existing quick pass/route-to rule, after scrub and NAT declarations:

block drop in quick on bridge100 inet proto udp from 192.168.2.2 to 144.125.117.20 port 4501
block drop in quick on bridge100 inet proto udp from 192.168.2.2 to 140.209.215.174 port 4501

The initial gateway was 140.209.215.174 (US South). GlobalProtect subsequently chose 144.125.117.20 (US Southeast), explaining why the first rule did not resolve the problem. Adding the second gateway and removing its existing PF states enabled SSL fallback. No broad UDP block was added.

Existing NAT, scrub/MSS 1240, routing, and IPv6-blocking rules were preserved. Do not merely lower TCP MSS expecting it to change TCP already encrypted inside an IPSec tunnel.

Scripts and backups

Local Mac scripts:

  • /Users/garfieldheron/NetworkTools/test-globalprotect-ssl.sh: initial test; snapshots the current anchor, validates configurations, adds the first gateway, clears its states. Stops if its backup directory already exists.
  • /Users/garfieldheron/NetworkTools/add-globalprotect-gateway.sh: snapshots the live anchor, adds the second gateway, validates and applies it, clears only router-to-gateway states.

Root-owned backups:

  • /var/root/coralsprings-globalprotect-ssl-test/before.conf: configuration before either test block.
  • /var/root/globalprotect-gateway.lNUWxQ/before.conf: configuration before adding the second gateway (first block already present).

Exact script copies are appended below for reference. They contain no credentials. Do not repeatedly run the add-gateway script: it does not deduplicate rules.

Check or recover

  1. Confirm Mac Tailscale is using art0 and ordinary browsing through coralsprings works.
  2. Inspect the current anchor on the Mac:
sudo pfctl -a com.apple.internet-sharing/shared_v4 -sr
sudo pfctl -a com.apple.internet-sharing/shared_v4 -sn
route -n get 192.168.2.2
  1. In Windows GlobalProtect → Connections, check the gateway address and protocol. Reconnect after the test is applied. Verify SSL, then browse IBM or IPLeak.
  2. If a different gateway is selected, the two existing rules do not cover it. Confirm the new address before adjusting the narrow rule; preserve current sharing rules and take a fresh backup.
  3. If Internet Sharing or a reboot replaces the PF rules, restore the underlying sharing setup first. Interface names and DHCP addresses can change. Do not blindly replay stale utun5/192.168.2.2 rules. The initial script intentionally refuses to overwrite its previous backup.

Undo

To remove both test blocks by restoring the pre-test anchor:

sudo /bin/sh /Users/garfieldheron/NetworkTools/test-globalprotect-ssl.sh undo

Then reconnect GlobalProtect. The undo script clears states to the original gateway only; reconnecting closes the newer gateway session. Restoring this snapshot also restores all other anchor settings from that time, so compare with current rules first if further sharing changes have been made.

To undo only the second addition, use its before.conf after comparison and syntax validation. Do not flush the entire Mac firewall or replace /etc/pf.conf.

Limitations

This is a temporary live PF adjustment, not an installed startup service. Rebooting or toggling Internet Sharing may remove it. Corporate gateway selection may change. SSL fallback availability is controlled by the corporate VPN configuration and was confirmed for the observed US Southeast connection. No durable reconnect/startup automation was installed.

The art0 watchdog is separately active in monitor-only mode, with automatic bans disabled. See 2026-09-15-art0-watchdog-tailscale-safety.

Vendor reference

Palo Alto: GlobalProtect ports: UDP 4501 for IPSec, TCP 443 for SSL tunnels.

Script snapshot: test-globalprotect-ssl.sh

#!/bin/sh
# Temporary, gateway-specific GlobalProtect SSL fallback test.
set -eu
PATH=/usr/bin:/bin:/usr/sbin:/sbin
A=com.apple.internet-sharing/shared_v4
B=/var/root/coralsprings-globalprotect-ssl-test
GW=140.209.215.174
[ "$(id -u)" = 0 ] || { echo 'Run this script with sudo on the Mac.'; exit 1; }
if [ "${1:-}" = undo ]; then
  pfctl -n -a "$A" -f "$B/before.conf"
  pfctl -a "$A" -f "$B/before.conf"
  pfctl -k 192.168.2.2 -k "$GW" || true
  echo 'Previous sharing rules restored. Reconnect GlobalProtect.'
  exit
fi
[ ! -e "$B" ] || { echo 'A test backup already exists. Stop and return to Codex.'; exit 1; }
ifconfig utun5 | grep -q 'inet 100.115.106.53 ' || { echo 'Tailscale interface changed; stop.'; exit 1; }
ifconfig bridge100 | grep -q 'inet 192.168.2.1 ' || { echo 'Sharing network changed; stop.'; exit 1; }
umask 077
mkdir "$B"
pfctl -a "$A" -sr > "$B/filter.txt"
pfctl -a "$A" -sn > "$B/nat.txt"
grep -q 'route-to utun5' "$B/filter.txt" || { echo 'Expected sharing route missing; stop.'; exit 1; }
grep -q 'nat on utun5' "$B/nat.txt" || { echo 'Expected NAT missing; stop.'; exit 1; }
{
  grep '^scrub' "$B/filter.txt" || true
  cat "$B/nat.txt"
  grep -v '^scrub' "$B/filter.txt"
} > "$B/before.conf"
{
  grep '^scrub' "$B/filter.txt" || true
  cat "$B/nat.txt"
  echo "block drop in quick on bridge100 inet proto udp from 192.168.2.2 to $GW port 4501"
  grep -v '^scrub' "$B/filter.txt"
} > "$B/test.conf"
pfctl -n -a "$A" -f "$B/before.conf"
pfctl -n -a "$A" -f "$B/test.conf"
if ! pfctl -a "$A" -f "$B/test.conf"; then
  pfctl -a "$A" -f "$B/before.conf"
  exit 1
fi
# Remove only this router's sessions to the corporate gateway.
pfctl -k 192.168.2.2 -k "$GW" || true
pfctl -a "$A" -sr
echo 'Test active. Reconnect GlobalProtect on Windows; check for Protocol: SSL.'
echo 'If it fails, undo on the Mac:'
echo 'sudo /bin/sh /Users/garfieldheron/NetworkTools/test-globalprotect-ssl.sh undo'

Script snapshot: add-globalprotect-gateway.sh

#!/bin/sh
set -eu
PATH=/usr/bin:/bin:/usr/sbin:/sbin
[ "$(id -u)" = 0 ] || exit 1
A=com.apple.internet-sharing/shared_v4
umask 077
B=$(mktemp -d /var/root/globalprotect-gateway.XXXXXX)
pfctl -a "$A" -sr > "$B/filter"
pfctl -a "$A" -sn > "$B/nat"
grep -q 'to 140.209.215.174 port = 4501' "$B/filter"
grep -q 'route-to utun5' "$B/filter"
{ grep '^scrub' "$B/filter" || true; cat "$B/nat"; grep -v '^scrub' "$B/filter"; } > "$B/before.conf"
{ grep '^scrub' "$B/filter" || true; cat "$B/nat"; echo 'block drop in quick on bridge100 inet proto udp from 192.168.2.2 to 144.125.117.20 port 4501'; grep -v '^scrub' "$B/filter"; } > "$B/after.conf"
pfctl -n -a "$A" -f "$B/before.conf"
pfctl -n -a "$A" -f "$B/after.conf"
if ! pfctl -a "$A" -f "$B/after.conf"; then
  pfctl -a "$A" -f "$B/before.conf"
  exit 1
fi
pfctl -k 192.168.2.2 -k 144.125.117.20
pfctl -a "$A" -sr
echo "Backup: $B/before.conf"