Open drsood opened 2 years ago
Same for me, without Proxy, but with VPN
I'm on Debian 10.
services:
openvpn-client:
image: ghcr.io/wfg/openvpn-client
container_name: openvpn-germany
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
environment:
- SUBNETS=192.168.29.0/24
- HTTP_PROXY=off
- SOCKS_PROXY=on
- VPN_CONFIG_FILE=Germany.ovpn
- VPN_AUTH_SECRET=auth.txt
volumes:
- F:/vpn/myvpn:/data/vpn
- F:/vpn/myvpn/secrets/auth.txt:/run/secrets/auth.txt
ports:
- 1080:1080
restart: unless-stopped
wget: bad address 'ipinfo.io'
Same issue, anyone had any luck with it?!
openvpn-germany |
openvpn-germany | ---- Running with the following variables ----
openvpn-germany | Kill switch: on
openvpn-germany | HTTP proxy: off
openvpn-germany | SOCKS proxy: on
openvpn-germany | Proxy username secret: none
openvpn-germany | Proxy password secret: none
openvpn-germany | Allowing subnets: 192.168.1.0/24
openvpn-germany | Using OpenVPN log level: 3
openvpn-germany | Listening on: none
openvpn-germany | Using configuration file: /data/vpn/Germany.ovpn
openvpn-germany | Creating /data/vpn/Germany.ovpn.modified and making required changes to that file.
openvpn-germany | Changes made.
openvpn-germany |
openvpn-germany | Creating VPN kill switch and local routes.
openvpn-germany | Allowing established and related connections...
openvpn-germany | Allowing loopback connections...
openvpn-germany | Allowing Docker network connections...
openvpn-germany | Allowing specified subnets...
openvpn-germany | Allowing remote servers in configuration file...
openvpn-germany | Using:
PROTOCOL: udp) | de.myvpn.de (IP: xx.xxx.xxx.xxx PORT: 443
" does not resolve to anything.8.7 (legacy): Port "443
openvpn-germany |
openvpn-germany | Try `iptables -h' or 'iptables --help' for more information.
openvpn-germany | Allowing connections over VPN interface...
openvpn-germany | Preventing anything else...
openvpn-germany | iptables rules created and routes configured.
openvpn-germany |
openvpn-germany | Configuring OpenVPN authentication.
openvpn-germany | Running OpenVPN client.
openvpn-germany |
openvpn-germany | Running Dante SOCKS proxy server.
openvpn-germany |
openvpn-germany | 2022-02-19 10:09:04 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless "allow-compression yes" is also set.
openvpn-germany | 2022-02-19 10:09:04 DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-256-CBC' to --data-ciphers or change --cipher 'AES-256-CBC' to --data-ciphers-fallback 'AES-256-CBC' to silence this warning.
openvpn-germany | 2022-02-19 10:09:04 WARNING: file '/run/secrets/auth.txt' is group or others accessible
openvpn-germany | 2022-02-19 10:09:04 OpenVPN 2.5.4 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Nov 15 2021
openvpn-germany | 2022-02-19 10:09:04 library versions: OpenSSL 1.1.1l 24 Aug 2021, LZO 2.10
openvpn-germany | 2022-02-19 10:09:04 TCP/UDP: Preserving recently used remote address: [AF_INET]xxx.xxxx.xxx.xxx:443
openvpn-germany | 2022-02-19 10:09:04 Socket Buffers: R=[212992->212992] S=[212992->212992]
openvpn-germany | 2022-02-19 10:09:04 UDP link local: (not bound)
openvpn-germany | 2022-02-19 10:09:04 UDP link remote: [AF_INET]xxx.xxxx.xxxx:443
openvpn-germany | 2022-02-19 10:09:04 write UDP: Operation not permitted (code=1)
openvpn-germany | 2022-02-19 10:09:06 write UDP: Operation not permitted (code=1)
openvpn-germany | 2022-02-19 10:09:11 write UDP: Operation not permitted (code=1)
openvpn-germany | 2022-02-19 10:09:19 write UDP: Operation not permitted (code=1)```
I had the same issue. After setting the dns configuration everything works fine and it resolves the domains. Maybe this helps anyone here.
I had the same issue. After setting the dns configuration everything works fine and it resolves the domains. Maybe this helps anyone here.
Sir, could you elaborate how exactly did you do it? here's my current config, I've been cracking my head for the past few days trying to get either http or socks5 proxy to work on my vps...
services: openvpn-client: image: ghcr.io/wfg/openvpn-client cap_add:
enabling 1.1.1.1 adn 8.8.8.8 as dns did not work for me at all
Well, i guess it works partially by adding WAN ip manually, say my ip is 123.123.123.123, then i add 123.123.123.0/24.
However, when my IP changes, cause it's dynamic, I would have to add new one again. 0.0.0.0/0 wont work. How do I make it so that the docker container accept all incoming requests from all IPs?
Hi I am trying to use this on Windows 11 inside docker. Docker config:
The VPN seems to be connecting:
However, the actual connection to proxy gives error. docker run --rm -it --network=container:openvpn-singapore alpine wget -qO - ifconfig.me produces error
wget: bad address 'ifconfig.me'
Please help