-
Notifications
You must be signed in to change notification settings - Fork 7.7k
OpenWrt ConfigEn
-
Find some firmware suitable for your router, the pure version is better. Installing python-pyopenssl and xxnet takes up about 10m.
-
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. -
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.
-
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
-
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
-
Then change the octal table in its properties to
0777
, and change the octal table in the properties of thestart
file in the XX-Net folder to0777
-
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 &
-
Then run with putty
opkg install coreutils-nohup
In the future, XX-net will start together with OpenWrt. -
After the above is completed, you can run it with putty first without restarting the router
/XX-Net/start
Then openhttp://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. -
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
-
If you want a "seamless" proxy, write the rules in openwrt "System-Network-Firewall-Custom Rules"
./XX-Net/start set_iptables br-lan
where br-lan is the name of lan
-
Manually modify the dhcp file in /etc/config/ through WinSCP, and add it to the last line of config dnsmasq
option port '0'
-
Modify the config.yaml file in /XX-Net/data/launcher through WinSCP Change
proxy: pac
toproxy: smart_router
-
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