diff --git a/linux/openwrt/openwrt-starlink-luci-setup.md b/linux/openwrt/openwrt-starlink-luci-setup.md index 5e31845..f152487 100644 --- a/linux/openwrt/openwrt-starlink-luci-setup.md +++ b/linux/openwrt/openwrt-starlink-luci-setup.md @@ -170,25 +170,32 @@ To remove the policy routes: `/etc/starlink-policy-route.sh remove`. ## Part 2c: Policy routing via LuCI only (static routes) -You can achieve the same result **entirely in LuCI** without mwan3 or scripts by adding **static routes** for each Polymarket IP via wan2. More specific routes override the default route, so traffic to those IPs will use Starlink. +You can achieve the same result **entirely in LuCI** without mwan3 or scripts: (1) override the hostname so DNS returns the **real** Polymarket IP (not your ISP’s spoofed one), and (2) add a **static route** for that IP via wan2. Route type: **unicast** (default). -### 2c.1 Get the IPs +### 2c.1 Get the real IP -On a PC (or any device with DNS): run `nslookup polymarket.com` and `nslookup www.polymarket.com`. Note the IPv4 addresses (e.g. `104.18.x.x`, `172.67.x.x`). Add other hostnames you need (e.g. `gamma-api.polymarket.com`). +Your ISP may resolve polymarket.com to a block/fake IP. You need the **real** server IP. Resolve while connected to Starlink WiFi (or using DNS 8.8.8.8): `nslookup polymarket.com` and `nslookup www.polymarket.com`. Note the IPv4 address (e.g. `64.239.109.1`). Use that for the route and the hostname override below. -### 2c.2 Add static routes in LuCI +### 2c.2 Override the hostname in LuCI (so DNS returns the real IP) -1. Go to **Network** → **Routes** (or **Static routes**, depending on your LuCI). +So your LAN devices don’t get the ISP-spoofed IP: + +1. Go to **Network** → **Hostnames** (or **DHCP and DNS** → **Hostnames** / **Custom domain** / **Address** entries, depending on your LuCI). +2. Add an entry: **Hostname** `polymarket.com`, **IP** the real IP (e.g. `64.239.109.1`). Add another for `www.polymarket.com` with the same IP if needed. +3. **Save & Apply**. + +### 2c.3 Add static route in LuCI + +1. Go to **Network** → **Routes** (or **Static routes**). 2. Click **Add** (or **Add new IPv4 route**). -3. For each Polymarket IP: - - **Target**: the IP with `/32` (e.g. `104.18.2.2/32`). - - **Gateway**: choose **Use gateway from interface** and select **wan2** (Starlink), or enter the Starlink gateway IP if your LuCI shows it. - - **Metric**: leave default (e.g. 0) or set the same as other static routes. - - Save. -4. Repeat for every IP you resolved. -5. **Save & Apply**. +3. Set: + - **Target**: the real IP with `/32` (e.g. `64.239.109.1/32`). + - **Gateway**: use the **Starlink (wan2) gateway** — either choose **Use gateway from interface** and select **wan2**, or enter the **wan2 DHCP gateway IP** (the IP your router uses as default gateway on the Starlink side; see **Network** → **Interfaces** → wan2 for the gateway). + - **Type**: **unicast** (default). + - **Metric**: leave default. +4. **Save & Apply**. -Traffic to those destinations will now go via wan2; all other traffic uses the default route (main WAN). If the site stops working later, CDN IPs may have changed—resolve the domains again and add or update the static routes in LuCI. +Traffic to that IP now goes via wan2; DNS gives your devices the real IP, so the route is used. If the site stops working later, re-resolve the domain (e.g. on Starlink), update the hostname override and the route if the IP changed. --- @@ -203,7 +210,7 @@ Traffic to those destinations will now go via wan2; all other traffic uses the d | Policies | Load Balancing → Policies | | Rules (polymarket, default) | Load Balancing → Rules | | Policy without mwan3 | Part 2b: script + hotplug | -| Policy via LuCI only | Part 2c: Network → Routes (static) | +| Policy via LuCI only | Part 2c: Hostnames + Network → Routes | ---