Benches macOS

1

Configuring proxy for terminal.app

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

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 http://www.google.com, I get:

PING http://www.l.google.com (209.85.229.99): 56 data bytes

and then no answer. What should I do to configure it? Thank you!

1 reply

Sign in or join Beachball Help to reply.

  1. 0

    BobHarris

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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