Closed yazeed44 closed 2 years ago
Hello @yazeed44,
I recently encountered the same problem. When $KILL_SWITCH
is set to on
, the container attempts to find the protocol used to communicate with the server in the OpenVPN's .conf file. The protocol is used to produce correct iptables rules. However, if default protocol is used (udp), it can be omitted from the .conf file. Such .conf files cause entry.sh to use an empty string as protocol. Understandably, iptables does not like that, hence the unknown protocol "" specified
error message on lines 22 and 25 of your logs. Without the firewall rule, openvpn gets "write: UDP: Operation not permitted"
error from OS when it attempts to communicate with the server.
A workaround is to explicitly set the protocol in your .conf file. In your case, replace
remote southafrica-ca-version-2.expressnetw.com 1195
with
remote southafrica-ca-version-2.expressnetw.com 1195 udp
A better solution would be to set correct defaults for defaults for port
and proto
in entry.sh. I might open a PR with these improvements later.
Thank you for the great work on this repo.
The container works perfectly when KILLSWITCH is "off", but when it's off I get these errors in the logs
This is my docker-compose:
Is this a firewall issue?