You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Configuring proxy for terminal.app

Hello, I am connected to internet through a proxy. I believe I have configured it correctly, because it works for the programs that access the internet (Firefox, Mozilla Thunderbird, Skype...).
The problem is: I can't connect to the internet from terminal.app . If I type, for example, ping www.google.com, I get:
PING www.l.google.com (209.85.229.99): 56 data bytes
and then no answer. What should I do to configure it? Thank you!

Mac OS X (10.5.4)

Posted on Oct 19, 2009 10:04 AM

Reply
1 reply

Oct 19, 2009 11:08 AM in response to ubuntuubuntu

The Terminal is NOT responsible for how each individual application accesses the internet. That is the responsibility of each program.

So if your 'ping' utility has a way to specify a proxy server, then you have jump through whatever hoops your 'ping' command demands. Note: Mac OS X 'ping' man page does not mention proxy, so unless you have a different ping utility, the answer may be "No".

Now I've found that setting the following environment variables has allowed some network aware utilities to get through the firewall (wget and curl are the 2 I use the most via these environment variables):

http_proxy=http://my.proxy.server.com:8080
ftp_proxy=http://my.proxy.server.com:8080
FTP_PROXY=http://my.proxy.server.com:8080
HTTP_PROXY=http://my.proxy.server.com:8080

Configuring proxy for terminal.app

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.