wfg / docker-openvpn-client

OpenVPN client with killswitch and proxy servers; built on Alpine
MIT License
355 stars 109 forks source link

Unrecognized option or missing or extra parameter(s) in /data/vpn/passfile.conf.modified #61

Open gratefulbread opened 2 years ago

gratefulbread commented 2 years ago

I'm getting the following error when I try to start the container.

Unrecognized option or missing or extra parameter(s) in /data/vpn/passfile.conf.modified:1: (redacted PIA username) (2.5.6)

my compose file:

version: '3'

services:
  vpn:
    image: ghcr.io/wfg/openvpn-client
    privileged: true
    container_name: openvpn-client
    cap_add: 
      - NET_ADMIN
    devices: 
      - /dev/net/tun:/dev/net/tun
    environment:
      - SUBNETS=192.168.1.0/24
      - HTTP_PROXY=on
      - SOCKS_PROXY=on
      volumes: 
      - /share/Docker/ovpn/config:/data/vpn

my conf

client
dev tun
proto udp
remote us-california.privacy.network 1198
resolv-retry infinite
nobind
persist-key
persist-tun
cipher aes-128-gcm
ncp-disable
tls-client
remote-cert-tls server

auth-user-pass passfile
compress
verb 1
reneg-sec 0
<crl-verify>
-----BEGIN X509 CRL-----
xxxxx
-----END X509 CRL-----
</crl-verify>

<ca>
-----BEGIN CERTIFICATE-----
xxxxx
-----END CERTIFICATE-----
</ca>

disable-occ
vmarmot commented 2 years ago

Must have something to do with TinyProxy , as I get the same error only when I try to enable the HTTP_PROXY . If you just use the SOCKS_PROXY, and disable HTTP_PROXY, the error goes away and socks proxy works as expected. Also there is a typo in the Docs : KEEP_DNS_UNCHAGED should be KEEP_DNS_UNCHANGED in order for that option to work. :)