You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When enabling AmneziaVPN using OpenRC, DNS resolution fails for all domain names. This issue prevents any DNS queries from being resolved while the VPN is active. The problem can be temporarily resolved by flushing the amnvpn.a.310.blockDNS chain using the command:
iptables -F amnvpn.a.310.blockDNS
However, this is not a permanent solution and needs to be applied every time the VPN is enabled.
To Reproduce start the AmneziaVPN service using OpenRC:
rc-service amnezia start
Open AmneziaVPN client and press "Connect" button.
Attempt to resolve any domain name, for example:
> curl icanhazip.com
curl: (6) Could not resolve host: icanhazip.com
My openrc service:
#!/sbin/openrc-run# Copyright 2025 Gentoo Authors# Distributed under the terms of the GNU General Public License v2# iptables -F amnvpn.a.310.blockDNS
name="AmneziaVPN daemon"
description="AmneziaVPN Service"
pidfile="/run/amneziavpn-service.pid"
output_log="/var/log/amneziavpn.log"
error_log="/var/log/amneziavpn.log"depend() {
need net
}
start_pre() {
checkpath --directory --owner root:root --mode 0755 /var/log
checkpath --file --owner root:root --mode 0644 /var/log/amneziavpn.log
}
start() {
ebegin "Starting AmneziaVPN Service"export LD_LIBRARY_PATH=/opt/AmneziaVPN/client/lib
start-stop-daemon --start --background --make-pidfile --pidfile "$pidfile" --exec /opt/AmneziaVPN/service/AmneziaVPN-service.sh
eend $?
}
stop() {
ebegin "Stopping AmneziaVPN Service"
start-stop-daemon --stop --pidfile "$pidfile"
pkill -f [A]mneziaVPN-service
eend $?
}
Expected behavior:
DNS resolution should work correctly when AmneziaVPN is enabled.
Screenshots:
/etc/resolv.conf
Very doubtful workaround is to add a start_post() block that will parse iptables and erase blockDNS record in the infinite loop:
Same on Arch Linux
Linux 6.13.2-arch1-1 x86_64
AmneziaVPN version 4.8.3.1 956dd6e
Thanks for the workaround, it worked when I deleted amnvpn.a.310.blockDNS
When enabling AmneziaVPN using OpenRC, DNS resolution fails for all domain names. This issue prevents any DNS queries from being resolved while the VPN is active. The problem can be temporarily resolved by flushing the amnvpn.a.310.blockDNS chain using the command:
However, this is not a permanent solution and needs to be applied every time the VPN is enabled.
To Reproduce start the AmneziaVPN service using OpenRC:
Open AmneziaVPN client and press "Connect" button.
Attempt to resolve any domain name, for example:
> curl icanhazip.com curl: (6) Could not resolve host: icanhazip.com
My openrc service:
Expected behavior:
DNS resolution should work correctly when AmneziaVPN is enabled.
Screenshots:
Very doubtful workaround is to add a start_post() block that will parse iptables and erase blockDNS record in the infinite loop:
Any suggestions to resolve this issue? Thank you.
The text was updated successfully, but these errors were encountered: