Infrastructure engineering for East Africa's operators, platforms and regulators See the work →
Starlink Port Forwarding in Kenya: What CGNAT Breaks
Networking 6 min read

Starlink Port Forwarding in Kenya: What CGNAT Breaks

Starlink port forwarding fails on the default CGNAT plan. Our lab shows what breaks on an office backup line in Kenya, and which plan gets a public IP.

CE
CloudSpinx Engineering
Infrastructure Engineering, Virtualization, Networking, Automation
29 November 2026
starlinkstarlink port forwardingcgnatstarlink public ip

Your fiber drops at ten in the morning, the office router fails over to the Starlink dish on the roof, and browsing is back before anyone stands up. Then the calls start. Head office cannot reach the camera recorder, the site-to-site tunnel is down, and the supplier portal that allowlists your fixed address now refuses you. Searching "Starlink port forwarding" at that point mostly turns up tunnel vendors selling a workaround, so here is what is actually going on.

On the standard plans the dish gives your router an address behind carrier-grade NAT, and nothing from outside reaches you. Starlink's own help center says its default IPv4 policy hands out addresses from 100.64.0.0/10 and "does not allow inbound traffic". We reproduced that address plan in a lab (an office router, a shared CGNAT, a second subscriber and a head office, all in network namespaces on one Ubuntu 26.04 VM) to see which office services survive a failover to it. CloudSpinx designs and runs office networks and backup links for organizations across Kenya, and this is the test we would rather you saw before the fiber goes, not during.

What gets through Starlink CGNAT to an office, and what does not
What gets through Starlink CGNAT to an office, and what does notAn office router sits behind a carrier-grade NAT that shares one public address with other subscribers, and a head office with a fixed address is on the far side. A tunnel the office starts reaches head office, but anything head office starts toward the office, a port forward or a tunnel, is dropped at the NAT. A second subscriber on the same NAT reaches head office under the same public address, so an allowlist for that address lets it in. IPv6 goes around the NAT and reaches the office when the office router allows it.LANOffice routerWAN 100.64.10.2behind the dishNATCarrier NATone public address,198.51.100.2, sharedHQHead officefixed address203.0.113.102Another subscribersame NAT, not yourstunnel from office: upfrom HQ: droppedport forward or tunnelallowlist lets it insame 198.51.100.2IPv6 /56, no NATreaches the office if your router allows itidle 120 s, no keepalive:mapping gone (our timer)
Behind CGNAT, only connections the office starts get through over IPv4. IPv6 is the one inbound path, and it is your router that opens it.

The office router held a correct forward from port 8443 to the server, and the server answered on the LAN. Nothing got there from outside.

From head office, the CGNAT's public address timed out, and the router's own WAN address is not reachable at all, because 100.64.0.0/10 is shared address space that is never routed on the internet:

branch$ curl -s -o /dev/null -w '%{http_code}\n' http://192.168.88.10:8080/
200
hq$ curl -m 5 -s -o /dev/null -w '%{http_code}\n' http://198.51.100.2:8443/
000
[exit 28]
hq$ curl -m 5 -s -o /dev/null -w '%{http_code}\n' http://100.64.10.2:8443/
000
[exit 7]
cgn$ conntrack -L -p tcp --dport 8443
conntrack v1.4.9 (conntrack-tools): 0 flow entries have been shown.

The CGNAT holds no state for the attempt, so there is nothing a rule on your side can match. Even with a public address, the Starlink router itself cannot help: its help center states the Starlink WiFi routers do not support port forwarding or firewall rules for IPv4 or IPv6. Inbound anything needs your own router behind the dish.

Two outbound blocks catch offices too. Starlink blocks TCP and UDP port 25 outbound for every customer, so an on-site mail server that sends direct stops sending on failover, and IPv4 TCP 445 (SMB) is blocked outbound as well. Both are on Starlink's published port list.

Only the Priority plans. Starlink's Kenya business plans page lists "Public IP & Dashboard" on Local Priority, which starts at KES 4,200 a month for 50 GB, with KES 49,900 for the hardware. Starlink's help center says public IPv4 is only available on Local and Global Priority, so every other plan, Residential and Roam included, stays on CGNAT. You switch it on yourself: IP Policy on the service line, set to Public IP, save, reboot the dish.

It is not a static address. Starlink says a reservation keeps the IPv4 address and IPv6 prefix through a reboot, but that "relocating the Starlink or software updates may change these addresses". So it fixes port forwarding. It is a weak thing to hang an allowlist on.

The data allotment matters more on a backup line than people expect. Past the plan's data, Starlink's Kenya price list drops you to unlimited use at up to 1 Mbps down and 0.5 Mbps up, which is enough for email and little else. Extra 50 GB blocks cost KES 1,600 each, and the 500 GB plan is KES 10,600. Do the subtraction: (10,600 minus 4,200) divided by 1,600 is four blocks, so once failover carries more than 250 GB in a month, the bigger plan is the cheaper one. Your router's monthly counter on the fiber link tells you which side of 250 you sit.

The site-to-site tunnel has to start at the dish

A tunnel configured from head office toward the branch's public address goes nowhere, because no mapping exists for the packets to land on. With WireGuard, head office's handshake sent 148 bytes and got nothing back:

hq$ ping -c 3 -W 2 10.99.0.2
3 packets transmitted, 0 received, 100% packet loss, time 2043ms
hq$ wg show wg0 transfer
<branch-public-key>	0	148

Turn it around and it works at once. Put the Endpoint on the branch only, pointing at head office's fixed address, and leave head office's peer without one. WireGuard learns the branch's translated address from the first handshake (198.51.100.2:51820 in the lab) and replies to it. The same rule applies to IPsec: the branch initiates and NAT traversal carries it. If head office also sits behind CGNAT, neither end can start, and you need a relay with a public address, which is the honest point to put a small VPS or a Priority plan at one end. Our WireGuard against IPsec test covers which of the two recovers better after a restart.

The VPN that drops when nobody is using it

This is the one that gets reported as "the tunnel works in the morning and dies at lunch". We brought the tunnel up from the branch with no keepalive, then sent nothing either way for 150 seconds. The CGNAT's entry was gone, and head office could no longer reach the branch:

cgn$ conntrack -L -p udp --dport 51820
conntrack v1.4.9 (conntrack-tools): 0 flow entries have been shown.
hq$ ping -c 5 -W 2 10.99.0.2
5 packets transmitted, 0 received, 100% packet loss, time 4125ms

One packet from the branch brought it straight back, which is why this looks intermittent: the moment someone at the branch opens anything, head office can reach them again. Our CGNAT ran the Linux defaults, which forget an established UDP flow 120 seconds after its last packet (30 seconds if it never saw a reply). Starlink's help articles on IP addressing give no NAT timeout, so do not tune to ours.

The fix is a keepalive from the branch side. With PersistentKeepalive = 25, the interval WireGuard's own documentation calls sensible for "a wide variety of firewalls", the same 150 seconds of silence left the entry alive with 105 seconds still on it, and 5 of 5 pings from head office answered. strongSwan sends NAT keepalives every 20 seconds by default, so an IPsec branch usually has this already. A WireGuard branch does not, because WireGuard ships with the keepalive off.

An allowlist on a CGNAT address lets the neighbors in

Head office allowed one source address, the CGNAT's public one. Then the office server and a second subscriber on the same CGNAT, who has nothing to do with you, both asked for the page:

srv$ curl -m 5 -s http://203.0.113.10:9000/
allowlisted-ok
neigh$ curl -m 5 -s http://203.0.113.10:9000/
allowlisted-ok
hq$ cat /tmp/hq-http.log
198.51.100.2 - - [28/Nov/2026 21:16:57] "GET / HTTP/1.1" 200 -
198.51.100.2 - - [28/Nov/2026 21:16:57] "GET / HTTP/1.1" 200 -

Both got in, logged under the same address. If a firewall rule, a supplier portal or an SSH allowlist at head office trusts the address your Starlink line shows, it trusts whoever else shares it. On a default plan, put the branch behind the tunnel and allowlist the tunnel instead. On a Priority plan, the address is yours but can move, so keep an authentication step behind it (keys on SSH, as in our SSH certificates test, not the address alone).

IPv6 reaches the office, if your router lets it

Every plan gets a routed IPv6 /56, with no NAT in the way, delegated by DHCPv6-PD to a router that asks for it. Starlink's own router has no IPv6 firewall rules to edit, so "your router" here means one of yours behind the dish. In the lab the office server timed out over IPv6 while the office router's forward policy dropped new inbound traffic, and answered with a 200 after one rule on the office router:

branch$ nft add rule ip6 filter inbound6 ip6 daddr 2001:db8:88:1::10 tcp dport 8080 accept
hq$ curl -6 -m 5 -s -o /dev/null -w '%{http_code}\n' 'http://[2001:db8:88:1::10]:8080/'
200

Nothing changed on the carrier side. That makes IPv6 the cheapest way to reach a camera recorder or a remote desktop host over the dish, with two catches. The caller needs working IPv6 too, so test it from head office's real line before you count on it. And the prefix can change the same way the IPv4 address can, so point the far end at a name, not a literal address. If the tunnel misbehaves on large transfers once it is up, that is the VPN MTU black hole, a separate fault from anything here.

Before the next fiber cut

List everything that has to reach the office from outside. For each one, decide: it moves into a tunnel the branch starts, it goes over IPv6, or it needs a Priority plan's public address plus your own router. Then pull the fiber and watch, the way our ISP failover test does, because a dish that passes a speed test tells you nothing about inbound.

If nothing has to reach the office from outside, the cheapest plan that carries your traffic is the right one and you do not need us. If something does, send us that list (cameras, tunnels, remote desktop, portals that allowlist you), the router model and which Starlink plan the dish is on, through the network scoping form with "Site-to-site links" picked, or on WhatsApp at +254 713 403 044. Free, and it commits you to nothing. You get each item marked works on the default plan, needs the tunnel turned around, needs IPv6, or needs a public address, with the router and WireGuard lines for your setup. If we then run the links for you, it is one monthly figure.

WhatsApp