Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UFW-Route #338

Open
Gill-Bates opened this issue Jul 26, 2022 · 3 comments
Open

UFW-Route #338

Gill-Bates opened this issue Jul 26, 2022 · 3 comments

Comments

@Gill-Bates
Copy link

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 ...
 }
@Enissay
Copy link

Enissay commented Dec 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@Enissay @Gill-Bates and others