MAC OSX terminal via NTLM authentication, Internet via proxy (it took a day to solve this)

Source: Internet
Author: User

MAC OSX terminal via NTLM authentication, internet via proxy

The company network limits are as follows:

The company through the agent to control the intranet users access to the external network permissions. User name and password are domain users and are authenticated by NTLM(with foreFront TMG)

problems encountered:

On a virtual machine, the system installed for MAC OSX10.9.3, developing IOS, needs to be in terminal ( terminal ) , load the appropriate packets, and install them.

If you install a ruby Environment, you need to first install RVM,curl-l Https://get.rvm.io | bash-s stable

407 Proxy authentication Required,Forefront TMG needs to be empowered to satisfy the requirements. Denial of access to the Web Proxy screening selector

Due to the agent's cause, the emergence of 407 proxy authentication Required,Forefront TMG needs to be granted the right to meet the requirements. access to the Web Proxy screening has been denied,

Setting up the proxy in the browser allows you to access the extranet. It took me two days to find a solution.

NTLM The next wrong solution :

In terminal , load curl-l Https://get.rvm.io | bash-s stable

Because it is verified by NTLM .

By in the terminal

Export http_proxy= "Http://username:[email protected":p ort "

Export https_proxy= "Http://username:[email protected":p ort "

This is not going to work. This applies only to common validation.

Agent if NTLM, authentication is too much.

The correct steps to resolve are as follows:

1. Download an agent software in the middle,authoxy:http://sourceforge.net/projects/authoxy-panther/

Follow the instructions to install. After installation, open the software as follows.

Set the user name and password.

Proxy Server and port

and the port used after Authoxy is enabled (this will be used later)

2. In the terminal (terminal), perform the following actions. Remember to compare it with the above.

Export http_proxy= "http://127.0.0.1:8080"

Export https_proxy= "http://127.0.0.1:8080"

Where the8080 port is the product set in Authoxy

3. Set up a network proxy

System Preferences -- Span style= "font-family: ' Times New Roman ';" >-- "agent -- Span style= "Font-family:simsun;" > WEB  agent ( http ) Span style= "font-family: ' Times New Roman ';" >/web agent ( https

Set Agent to 127.0.0.1 with Port 8080 (authoxy 's running port )

4. Test,curl-l Https://get.rvm.io | bash-s stable, load RVM package.

The test was successful, as follows

Browser Internet access is as follows

There have been other methods in the middle, although other methods have not been successful, but have a reference value:

Resources:

Usage of NTLM proxy: http://blog.csdn.net/liukeforever/article/details/6745084

NTLM Authorization Proxy Server

: http://ntlmaps.sourceforge.net/

Proxy Authentication Required Solution:

http://blog.csdn.net/zhanghefu/article/details/1591778

Install Ruby gems behind NTLM Proxy

Http://wenda.io/questions/4892758/install-ruby-gems-behind-ntlm-proxy.html

Http://www.leg.uct.ac.za/howtos/use-isa-proxies

Recall that before the C # background access server, it should also be NTLM authentication, causing the problem

MAC OSX terminal via NTLM authentication, Internet via proxy (it took a day to solve this)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.