This script forwards all traffic from the guest network to the AmneziaWG server.
Tested with firmware Version: 1.1.16
- Install AmneziaWG onto your VPS.
- Connect to your brand new AmneziaWG server using the Amnezia client.
- In the client create a new connection for your router, and save the config in AmneziaWG native format. It is supposed that the name of the file will be
amnezia_for_awg.conf
. - Enable SSH on your router.
- SSH to your router and create a
/data/usr/app/awg
directory. - Put
amnezia_for_awg.conf
into this directory (copy it to your router via Samba e.g.). - On the router execute the following command:
curl -L -o awg_setup.sh https://github.com/alexandershalin/amneziawg-be7000/raw/refs/heads/main/awg_setup.sh
- Make the downloaded script executable:
chmod +x awg_setup.sh
- Run the script:
./awg_setup.sh
- Now, the guest network should be connected to your AmneziaWG server before the router reboots.
Binaries built from official sources: https://github.com/amnezia-vpn/
Useful links: https://github.com/itdoginfo/domain-routing-openwrt