complexorganizations / wireguard-manager

✔️ WireGuard-Manager is an innovative tool designed to streamline the deployment and management of WireGuard VPNs. Emphasizing user-friendliness and security, it simplifies the complexities of VPN configuration, offering a robust yet accessible solution for both personal and professional use.
Other
1.59k stars 203 forks source link

UFW-Route #338

Open Gill-Bates opened 1 year ago

Gill-Bates commented 1 year ago

Wireguard manager should check if the UFW is used. If so, a prompt should come asking if a route should be set up for the wg0 interface. Because otherwise the access does not work.

#!/bin/bash
function ufw-check() {
is_service_exists() {
    local x=$1
    if systemctl status "${x}" 2> /dev/null | grep -Fq "Active:"; then
            return 0
    else
            return 1
    fi
}
    if is_service_exists 'ufw.service'; then ...
 }
Prajwal-Koirala commented 1 year ago
function check-for-firewall() {
    if [ "$(ufw status)" == *"active"* ]; then
        echo "Do something here"
    fi
}
Enissay commented 1 year ago

Any update on this since it is a quite common use case ?

Prajwal-Koirala commented 1 year ago

@Gill-Bates Please join this discord, brother. i need help. https://discord.gg/Zrd68kbK

https://github.com/complexorganizations/dji-feed-analysis/tree/main Note: Working on this will really save lives, therefore let's make it happen.