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

Using authenticated proxy #438

Open
diegoortizmatajira opened this issue Mar 26, 2019 · 5 comments
Open

Using authenticated proxy #438

diegoortizmatajira opened this issue Mar 26, 2019 · 5 comments

Comments

@diegoortizmatajira
Copy link

diegoortizmatajira commented Mar 26, 2019

I'm using openfortivpn on corporate network, where I have to use authenticated proxy
I use this script to initialize proxy settings

PROXY="http://user:password@proxy.company.com:8080"
export {http,https,ftp,rsync}_proxy=$PROXY
export {HTTP,HTTPS,FTP,RSYNC}_PROXY=$PROXY

Often I have to connect to VPN using forticlient VPN, but when it comes I have to use the VPN, I need to connect to a proxyless access point (my phone) and remove all proxy settings in order to use openfortivpn.

I've tried using the proxy server IP instead of hostname (proxy.company.com) without success.

When I try to use openfortivpn with proxy settings the app doesn't show any text it just prints an empty line on the terminal.
Using the verbose option I've got:

DEBUG:  openfortivpn 1.8.1
DEBUG:  Loaded config file "/home/user/path/config-file.config".
DEBUG:  Config host = "186.116.XX.XX"
DEBUG:  Config realm = ""
DEBUG:  Config port = "443"
DEBUG:  Config username = "vpn_user"
DEBUG:  Config password = "********"
DEBUG:  Resolving gateway host ip
DEBUG:  Establishing ssl connection
DEBUG:  server_addr: 186.116.XX.XX
DEBUG:  server_port: 443
DEBUG:  gateway_addr: 186.116.XX.XX
DEBUG:  gateway_port: 443
ERROR:  connect: Connection timed out
INFO:   Closed connection to gateway.
DEBUG:  server_addr: 186.116.XX.XX
DEBUG:  server_port: 443
DEBUG:  gateway_addr: 186.116.XX.XX
DEBUG:  gateway_port: 443

Information about my configuration
OS: Manjaro Linux x86_64
Kernel: 4.19.28-1-MANJARO
Package: openfortivpn from AUR

@DimitriPapadopoulos
Copy link
Collaborator

As far as I know authentication is not implemented yet in proxy support code: ccaa359

@mrbaseman
Copy link
Collaborator

yes, authentication is one of the items on the agenda for improving the proxy support in #226

@Raoul555
Copy link

I vote +1 for this feature ;)

@jmartasek
Copy link

For reference I managed to overcome this by running a local squid proxy that is using the authenticated proxy as a parent. Sample squid.conf:

http_port 3128
http_access allow all
cache_peer parent.proxy.example.com  parent   8080      0  no-query no-digest default login=username:password
never_direct allow all

@DimitriPapadopoulos
Copy link
Collaborator

We probably need libproxy for proper proxy support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants