Skip to content
Michael-X-Net edited this page Feb 3, 2023 · 2 revisions
  1. Find some firmware suitable for your router, the pure version is better. Installing python-pyopenssl and xxnet takes up about 10m.

  2. After installing a firmware, use putty to connect to the router and run opkg update opkg install python-pyopenssl If python-pyopenssl cannot be installed, try another firmware. until the installation is successful.

  3. Download xx-net to the computer, download both win and linux versions. After decompressing the win version and the linux version, copy the python27 folder in the win version folder to the folder extracted from the linux version. Note that the folder names extracted from the win and linux versions are the same, so don’t overwrite them.

  4. Run the start.bat in the linux version folder The rest of the operation steps are the same as the computer version, After the personal AppID is set on the computer version, and you can access the Internet normally, allow remote access to the control page in the system/configuration of the xxnet web control page

  5. Close xxnet, delete the previously copied python27 folder, copy the entire linux version xx-net folder to the root directory of the router through WinSCP, and change the folder name to XX-Net

  6. Then change the octal table in its properties to 0777, and change the octal table in the properties of the start file in the XX-Net folder to 0777

image image

  1. Add the following command in the line before "exit 0" of openwrt "System-Startup Item-Local Startup Script": nohup /XX-Net/start >/dev/null 2>&1 & image

  2. Then run with putty opkg install coreutils-nohup In the future, XX-net will start together with OpenWrt.

  3. After the above is completed, you can run it with putty first without restarting the router /XX-Net/start Then open http://router IP:8085 in the browser, if it can be opened, it means that it is successful, and you can restart it. If you can't open it, it depends on what the error message of putty is.

  4. After restarting the router, if it is running normally, the following is the same as the computer version. The method is to switch the browser with the proxy plug-in SwitchyOmega. Reference: https://github.com/XX-net/XX-Net/wiki/How-to-use

  5. If you want a "seamless" proxy, write the rules in openwrt "System-Network-Firewall-Custom Rules" ./XX-Net/start set_iptables br-lan image

where br-lan is the name of lan image

  1. Manually modify the dhcp file in /etc/config/ through WinSCP, and add it to the last line of config dnsmasq option port '0' image

  2. Modify the config.yaml file in /XX-Net/data/launcher through WinSCP Change proxy: pac to proxy: smart_router image

  3. Restart the router. The previous browser proxy plug-in SwitchyOmega can be deleted.

Current limitations:

  • The current problem is that apps that do not support importing certificates cannot be proxied, and Apple phones seem to be offline.
  • It is relatively slow to open domestic websites on computers and Android phones. The network speed has also slowed down, and the download is basically slower than the upload during the speed test...download is 4m/s, and upload is more than 4m. The router does not seem to take up 100%, at most 80%.

Discussion here: https://github.com/XX-net/XX-Net/issues/13036

Clone this wiki locally