Loon is a powerful network proxy and traffic management tool for iOS that allows you to intercept, modify, and redirect network requests. It functions as a local VPN on your iPhone to route traffic through specific rules, enabling features like ad-blocking, script execution, and server proxying.

Installing Loon via Alternative App Stores

Loon is not available on the standard Apple App Store in all regions because its deep network manipulation capabilities often conflict with standard store policies. You typically install it using a third-party app store or by sideloading the application using a computer.

If you use a third-party store, you search for the app and tap install. If you sideload, you must connect your iPhone to a computer, use a sideloading tool to sign the app with your Apple ID, and trust the developer profile in Settings > General > VPN & Device Management. Labels may differ slightly by version.

A common misconception is that Loon is a standard VPN service that provides a server for you to connect to. In reality, Loon is a client-side tool; it provides the engine to manage traffic, but you must provide your own server configurations or use public rule sets to achieve specific results.

Configuring Your First Proxy Server

To make Loon functional for routing traffic, you need to add a server configuration. This tells the app where to send the data it intercepts from your iPhone.

Navigate to the Config section and select the server management menu. You will enter the server address (the IP or domain), the port number, and your authentication credentials. Once saved, you select that server as the active node.

You can test the connection by tapping the test button next to the server. A successful connection usually displays a latency number in milliseconds (ms). If the latency is over 300 ms, you may experience noticeable lag in web browsing. A latency between 20 ms and 100 ms is typically ideal for a responsive experience.

Managing Rules and Rewrite Scripts

The core power of Loon lies in its ability to apply different rules to different websites. Instead of routing all your iPhone traffic through a proxy, you can set specific rules so that only certain apps or domains are affected.

Rules are usually organized into lists. You can import a remote rule set via a URL, which allows the app to update the list automatically. These rules tell Loon whether to "Direct" the traffic (send it normally), "Proxy" it (send it through your server), or "Reject" it (block the request entirely).

Rewrites allow you to modify the data coming back from a server before it reaches your screen. This is often used to remove advertisements or bypass certain restrictions within an app. You create a rewrite by defining a pattern to match (the URL of the ad server) and a replacement (a blank response or a different server).

Calculating Data Routing with Rule Sets

Understanding how Loon handles data helps you optimize your battery life and data usage. When a request is made, Loon checks the rule list from top to bottom and stops at the first match.

Consider a worked example of a user with three rules:

  1. A "Reject" rule for ad-server.com.
  2. A "Proxy" rule for global-site.com.
  3. A "Direct" rule for all other traffic.

If you visit a page that loads a resource from ad-server.com, Loon hits rule 1 and blocks it immediately. If you then visit global-site.com, Loon skips rule 1, matches rule 2, and sends the request through your proxy server. For any other website, such as a local news site, Loon skips rules 1 and 2 and applies rule 3, sending the data directly through your local internet connection without the overhead of a proxy.

This hierarchical system ensures that your iPhone does not waste processing power or proxy bandwidth on traffic that does not need to be modified.

Optimizing Battery and System Performance

Because Loon runs as a local VPN, it stays active in the background, which can impact your iPhone battery. To minimize drain, you should refine your rule sets to avoid unnecessary processing of every single packet.

Use the "Direct" rule for high-bandwidth apps like YouTube or Netflix if you do not specifically need to proxy them. This prevents the app from constantly encrypting and decrypting large video streams, which reduces CPU load. You can check the impact by looking at the battery usage in Settings > Battery.

If you notice that certain apps are not loading or are crashing, check the Loon logs. The logs show every request and which rule was applied. If you see a "Reject" status for a domain that is required for the app to function, you must move a "Direct" or "Proxy" rule above that reject rule in the list.

Maintaining App Stability and Updates

Since Loon is often installed via sideloading, the app may expire every 7 days if you are using a free personal developer account. When this happens, the app will crash upon opening.

To fix this, you must reconnect your iPhone to your computer and refresh the app signature. To avoid losing your configurations during this process, always export your config file to a cloud service or a local backup. Go to the Config menu and select Export to save a .conf file.

When updating the app, do not simply delete the old version, as this may remove your local data. Instead, install the new version over the existing one. If the app behaves unexpectedly after an update, you can import your saved .conf file to restore your rules and server settings.