Change the proxy settings in Safari? - macos

It is required to change the proxy server settings in the Safari browser by standard means.
How can I do that ?

Safari uses the System Proxy Settings.
You can change those using System Preferences -> Network.
If you need to change the Proxy Settings using the command-line, there is a tool called networksetup on macOS. With options to configure proxy settings
networksetup [-setwebproxy networkservice domain portnumber authenticated username password].
If you need more control, macOS stores proxy settings in the System Configuration store, which you can manipulate using the scutil command-line tool or using the API's in the SystemConfiguration Framework.

Related

Proxy settings not used by cmd prompt

I have windows server ( AWS Workspace ) which uses a proxy server for internet access. I set the proxy in "Network and Internet" -> "Proxy" -> "Manual proxy setup" -> and . After setting up the proxy, my internet access through the browser started to work fine. But, when I try to run my java code using the command prompt, the internet access fails and libraries fails to download. The same libraries are accessible via browser.
Is there anything specific to be done, to direct the internet traffic through proxy for cmd prompt?
We are using squid proxy.
The "command prompt" does not have proxy settings.
Windows applications that use the WinInet or WinHTTP libraries for HTTP connections generally follow the users proxy settings. Applications/libraries that uses plain sockets do not get automatic proxy handling, they need to call WinHttpGetIEProxyConfigForCurrentUser to retrieve the proxy configuration.
For Java, you can try System.setProperty("java.net.useSystemProxies", "true");

Can't search app store while using Charles Proxy as proxy server

I'm using Charles on a Macbook Air to monitor wi-fi traffic on my iPhone. I have the Charles certificate installed and https traffic from my phone is showing up in the results. All good!
Only problem I'm having is that when I open the App Store app on my phone, I cannot use the search feature to find apps. When I enter some search terms, it just keeps spinning and never producing any results. Under the proxy settings in Charles, I added a few apple websites to bypass like mzstatic, phobos, anything.apple, but no luck. The phone still gets hung up searching for apps.
Any idea why Charles would shut down an App Store search?
Thanks!
If you've set up the phone with the correct Charles certificate it may be that the App Store App is using Certificate Pinning - much like Facebook. Certificate pinning prevents the usage of even a trusted proxy like Charles from monitoring their traffic.
For some reason, Apple blocks the App Store of being opened while using proxy listener.
The solution is pretty simple:
Proxy -> Recording Settings -> "Exclude" tab -> Add "*.apple.com" (or "itunes.apple.com", to be more specific).
In addition, make sure that under Proxy -> SSL Proxying Settings -> "SSL Proxying" tab, ":" or any domain including "apple.com" isn't there.
Now those network calls won't be recorded in Charles, but will open and work as usual.
As of February 21, 2021, I can browse the App Store with the following settings.
Proxy > SSL Proxy Settings... > SSL Proxying
Exclude
*.apple.com
*.mzstatic.com
Add *.apple.com:* to your SSL excluded sites to enable App Store traffic.
( Proxy -> SSL Proxying Settings )

How to configure external authorisation in owncloud with External user support app?

I'm testing owncloud. It is very nice system. I have to test authentication with ftp server with plugin "External user support". When I enable it in web admin panel nothing is happening. I don't know where to set up things that will enable authorization with my ftp server.
Depending on which version of ownCloud you are using, see either
http://doc.owncloud.org/server/5.0/admin_manual/configuration/custom_user_backend.html
or
http://doc.owncloud.org/server/4.5/admin_manual/custom_user_backend.html

Set Windows Application to use a proxy server

I downloaded a windows app that is connecting to the Internet to get data from the external source. My network uses proxy server that requires authentication so whenever that app is trying to get online, it returns a 407 error.
I tried to use netsh to import IE proxy settings for winhttp, but it doesn't seem to help.
Is there any way I can set up this specific app or set universal proxy settings for all Windows apps?

Problems accessing a web page though VPN on a corporate env

My OS is windows7 64 bits.
I'm in a corporate environment. In order to have internet connectivity I have IE configured to use a automatic configuration proxy script.
Additionally I connect into an external company dial-up VPN (via internet). When connecting into the VPN I see that my hosts file are modified and the route print is changed too. The VPN dial-up connection uses another proxy automatic configuration script (under dial-up and VPN settings).
I'm able to see the contents of the two automatic configuration scripts as well as the route print info.
I have a .Net1.1 winforms app that uses WebClient to download an xml file from a web server.
When connected into the VPN:
The winforms app is not able to download the file ("server cannot be reached" error).
If I browse to the same URL within IE I'm able to download the file.
Moreover when I start Fiddler to inspect the http sessions, the winforms app is able to download the xml file.
Running netsh->proxy, system32 and SysWow64 versions show Direct access.
I suspect the problem is somehow related to proxy configurations but I don't know where to look first.
Any help on putting things in order would be really apreciated...
The problem could be a result of TCP tuning on you windows7 machine. Try the following then restart your computer.
Click on Start button.
In the Search box, type in Command Prompt. Command Prompt will show up in
the search results.
Right click on Command Prompt icon and select Run as administrator.
Enter the admin credential and you are ready to go.
Once you get to the elevated command prompt:
Type all the commands below and click enter after each one.
netsh int tcp set global autotuninglevel=disabled
netsh int tcp set global autotuninglevel=disabled
netsh interface tcp set global rss=disabled
netsh interface tcp set global autotuninglevel=disabled
netsh interface tcp set global congestionprovider=none
Just for reference,
It turns out that .net framework 1.1 WebClient doesn't understand automatic proxy configuration within its defaults settings:
<system.net>
<defaultProxy>
<!--
The following entry enables reading of the per user (LAN) Internet settings.
Adding additional proxy settings, without first setting to "false",
will individually override. Note that "Automatic configuration" and
"automatic configuration scripts" cannot be read.
<proxy> settings:
usesystemdefault="[true|false]" - Read settings from Internet Options (see above)
proxyaddress="[string]" - A Uri string of the proxy server to use.
bypassonlocal="[true|false]" - Enables bypassing of the proxy for local resources.
-->
<proxy usesystemdefault="true" />
</defaultProxy>
</system.net>
One posible workaround is to manually add the proxyadress in the config file
<system.net>
<defaultProxy>
<proxy usesystemdefault="false" proxyaddress="http://myproxy:myport" />
</defaultProxy>
</system.net>

Resources