HELLO_wORLD
Very Senior Member
Ok, I worked on a way to find the right WAN interface, and finding the VPN/WG client tunnel if it is running.
Thank you particularly to @R. Gerrits , @KW. and @kamoj but also everybody here who is giving feedback for the help that allowed me to understand more about how VPN/WG is set up in the router, and about the WAN not always being brwan or the default route interface.
I made a test script to test my detection codes and I made it as easy as possible to use for you (one line to copy & past)
So if anyone wants to help and take a minute to test this and report:
It should tell the WAN interface brwan or ppp0
It should tell the VPN/WG interface if any
If the feedback is successful, I will be able to implement VPN/WG client protection in the next aegis release.
PS: I am not using ip route default methods because with WG, there is no default route.
Thank you particularly to @R. Gerrits , @KW. and @kamoj but also everybody here who is giving feedback for the help that allowed me to understand more about how VPN/WG is set up in the router, and about the WAN not always being brwan or the default route interface.
I made a test script to test my detection codes and I made it as easy as possible to use for you (one line to copy & past)
So if anyone wants to help and take a minute to test this and report:
Code:
wget -qO- https://raw.githubusercontent.com/bolemo/firewall-blocklist/master/test-vpn.sh | sh
It should tell the VPN/WG interface if any
If the feedback is successful, I will be able to implement VPN/WG client protection in the next aegis release.
PS: I am not using ip route default methods because with WG, there is no default route.