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

HTTP Proxy Basic (NCSA) Authentication (User&Pass) Issue #1102

Open
davi200180 opened this issue Nov 10, 2019 · 0 comments
Open

HTTP Proxy Basic (NCSA) Authentication (User&Pass) Issue #1102

davi200180 opened this issue Nov 10, 2019 · 0 comments

Comments

@davi200180
Copy link

General information

  1. Android 9.0 / lineage-16.0-20191109
  2. Google
  3. Nexus 6
  4. Play Store v0.7.8

Version of installed packages on the server:
Ubuntu Server 19.04 (amd64) with kernel 5.0.0-32
openssl 1.1.1b-1ubuntu2.4
openvpn 2.4.6-1ubuntu3.1
squid 4.4-1ubuntu2.2
squid-common 4.4-1ubuntu2.2
squid-langpack 20190110-1

Description of the issue

Hello, I'd like to use OpenVPN with squid proxy server (http proxy) and basic proxy authentication with username and password.
Without any authentications, the proxy connection and openvpn work perfectly.

My .ovpn file that i imported into Openvpn For Android contains these additional lines for proxy connection:
OpenVPN and Squid are hosted on the same server, so ip address is the same for proxy and OpenVPN. I'm using TCP as protocol.
http-proxy SERVERIP PROXYPORT
http-proxy-option VERSION '1.1'
http-proxy-option CUSTOM-HEADER Host header.com
http-proxy-option CUSTOM-HEADER X-Online-Host header.com
http-proxy-option CUSTOM-HEADER Connection Keep-Alive
http-proxy-option CUSTOM-HEADER Proxy-Connection Keep-Alive
route SERVERIP 255.255.255.255 net_gateway

Then i enabled proxy authentication and put username and password through app GUI.

Log:
12:01 Unrecognized option or missing or extra parameter(s) in /data/user/0/de.blinkt.openvpn/cache/android.conf:41: block-outside-dns (2.5_master)
12:01 OpenVPN 2.5-icsopenvpn [git:icsopenvpn/v0.7.8-0-g168367a5] armeabi-v7a [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Feb 22 2019
12:01 library versions: OpenSSL 1.1.1.a 20 Nov 2018, LZO 2.10
12:01 TCP/UDP: Preserving recently used remote address: [AF_INET]SERVERIP:PROXYPORT
12:01 Attempting to establish TCP connection with [AF_INET]SERVERIP:PROXYPORT[nonblock]
12:01 SIGUSR1[soft,init_instance] received, process restarting
12:01 MGMT: Got unrecognized line from management:ERROR: no needok-confirmation is currently needed at this time

Same config+proxy authentication (basic) work on OpenVPN Connect, which i can't use because it doesn't connect on specific internet connection, while OpenVPN for Android works perfectly.

Thanks for your awesome work!

davi200180

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

1 participant