Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 1.86 KB

lan-gateway.md

File metadata and controls

32 lines (29 loc) · 1.86 KB

Quantumult X Gateway

This document describes how to configure Quantumult X as gateway for other devices on the same LAN.

Gateway

  • Quantumult X Tunnel is always running in the gateway mode.
  • Quantumult X Tunnel DNS handler: 198.19.0.3.

Gateway for other devices on the same LAN

  • Quantumult X minimum version 1.0.17.
  • Assuming the original LAN settings:
    • LAN IP range: 192.168.2.1/24.
    • LAN router: 192.168.2.1.
    • Device (call it D-GW) that installed Quantumult X will works as the gateway: 192.168.2.99.
    • Device (call it D-ATV) that its traffic will go through Quantumult X Tunnel: 192.168.2.66.
  • Setup guide:
    1. Turn on IP forwarding for device D-GW.
      Since iOS sanboxed app has no such privilege, you should turn on manually.
      If the device (D-GW) is a M1 chip Mac then it is simple, or (like iPhone) you'll have to find other ways to input the below command on your own:
      sudo sysctl -w net.inet.ip.forwarding=1
    2. Manully update IP settings only for device D-ATV:
      • Configure IP: Manual.
      • IP Address: Same as the orginal.
      • Subnet Mask: Same as the orginal.
      • Router: 192.168.2.99 (Update it using D-GW LAN IP).
      • DNS: 198.19.0.3 (Update it using Quantumult X Tunnel DNS handler).

Notice

  • The MitM (and rewrite) works for other LAN devices in the gateway mode. If the connected devices can NOT install and trust the root CA, please be sure turn off MitM.
  • The throughputs as gateway for other LAN devices maybe limited in version 1.0.17. If you concerns about the maximum network throughputs of your LAN devices you should upgrade to 1.0.18 or later versions.
  • When working as gateway for other LAN devices it is recommended that the device (D-GW) installed Quantumult X as the gateway (D-GW) connect the LAN router via cable instead of wireless to improve the throughputs.