Benches Networking

2

How to set system-wide proxy without Network pr...

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Is it possible to set up a system wide HTTP/HTTPS/SOCKS proxy without using Network Preferences? plist editing is OK

I need it because network preferences doesn't support ppp0 interface (in my case it's used to connect to Internet via serial line and some 'unusual' hardware), so I just can't use that pref pane..

Or is it possible to add pppd connection to Network Preferences (with some custom ppp-options)? Again, it's not modem.

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Sure. There is the 'networksetup' command you can get to from Terminal.

    Here's the relevant snippet from the man page (man networksetup):

    NETWORKSETUP(8) BSD System Manager's Manual NETWORKSETUP(8)

    NAME
    networksetup -- configuration tool for network settings in System Prefer-
    ences.

    SYNOPSIS
    networksetup [-listnetworkserviceorder] [-listallnetworkservices]
    ...
    [-getwebproxy networkservice]
    [-setwebproxy networkservice domain portnumber authenticated username password]

    You could easily create a script file to run this whenever you wanted.

    Have fun

  2. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    That's interesting, but I have working ppp0 connection (it was set manually) and I can't find a corresponding network service.. I can't create new service too (-createnetworkservice PPP ppp0 just doesn't work).

    So proxy is tied with network service, as far as I understand.
    Now I need a way to create new network service and associate it with specific pppd flags and ppp0.