Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
9
votes
5
answers
17808
views
Does a free alternative to Proxifier or ProxyCap exist?
When on a hotel's hotspot, the majority of ports are closed, except 80, 443 and 22. I would like to connect to my FTP, or connect Steam to play my games, etc. I tested ProxyCap and Proxifier which redirected all my traffic to my sock server at home, but trials versions has expired, and I don't want...
When on a hotel's hotspot, the majority of ports are closed, except 80, 443 and 22.
I would like to connect to my FTP, or connect Steam to play my games, etc.
I tested ProxyCap and Proxifier which redirected all my traffic to my sock server at home, but trials versions has expired, and I don't want to pay for something that I use a few weeks in a year.
I know I can set the proxies settings in my Mac settings, but all the applications don't use it (like Steam).
Does a free alternative of ProxyCap and Proxifier exist on MacOSX?
Tiwenty
(253 rep)
Dec 29, 2012, 08:55 AM
• Last activity: Jun 25, 2025, 01:01 PM
3
votes
3
answers
5361
views
How to socksify apps in macOS?
Is there an analog on macOS for [this “socksify” functionality in Linux][1]? So that I can use it like on Linux: ``` socksify mongo ``` [1]: http://linux.die.net/man/1/socksify
Is there an analog on macOS for this “socksify” functionality in Linux ?
So that I can use it like on Linux:
socksify mongo
breedish
(207 rep)
Oct 24, 2013, 06:22 PM
• Last activity: May 18, 2025, 12:38 AM
2
votes
2
answers
1494
views
Is there an app for Mac thats lets me route all system traffic through a SOCKS5 server?
I'm already using the socks proxy option in the network settings. The problem is, not all applications appear to be passing their traffic through the proxy. Is there a simple SOCKS client for Mac which would create a system VPN configuration for routing the traffic?
I'm already using the socks proxy option in the network settings.
The problem is, not all applications appear to be passing their traffic through the proxy.
Is there a simple SOCKS client for Mac which would create a system VPN configuration for routing the traffic?
Aurora
(31 rep)
Jun 15, 2023, 10:27 PM
• Last activity: Feb 7, 2024, 12:07 AM
1
votes
1
answers
184
views
How to use different SOCKS proxy for different CLI apps?
based on some politics I cannot use proxychains* utilites ( no preload accepted ). As I understood is no chance to achieve it using sandboxes and no netspaces yet in OSX. I can play with the firewall little bit, but it looks complicated. Is there a way to redirect all traffic to the SOCKS proxy per...
based on some politics I cannot use proxychains* utilites ( no preload accepted ). As I understood is no chance to achieve it using sandboxes and no netspaces yet in OSX. I can play with the firewall little bit, but it looks complicated. Is there a way to redirect all traffic to the SOCKS proxy per specified cli app?
Siarhei Karatkevich
(155 rep)
Jul 19, 2017, 10:23 AM
• Last activity: Mar 31, 2023, 06:04 AM
0
votes
1
answers
477
views
SSH and Screen Sharing Work on Remote OSX on Home Network but not SOCKS
I asked a similar question on superuser, but haven't gotten any responses. I'd like to be able to surf the web with my home IP address while abroad. I figured this would be easy to accomplish by allowing port forwarding on the home router to an old Mac laptop sitting at home (running OSX 10.9.5). Af...
I asked a similar question on superuser, but haven't gotten any responses.
I'd like to be able to surf the web with my home IP address while abroad. I figured this would be easy to accomplish by allowing port forwarding on the home router to an old Mac laptop sitting at home (running OSX 10.9.5).
After some fiddling with the Spectrum wifi router and allowing Remote Login and Screen Sharing under Sharing on the old Mac, I'm successfully able to ssh into the old laptop using the standard
user@remote
and even screen share by setting up local port forwarding using -f user@remote -L 15900:127.0.0.1:5900 sleep 60
then running the Screen Sharing app.
However, I'm unable to get a SOCKS tunnel to work. I use the standard -D 5050 -C -N user@remote
, enter password, etc. All looks good. But when I try to point Firefox (correctly set up with manual SOCKSv5 proxy 127.0.0.1 on port 5050), Firefox just hangs.
Any clues/ideas?
Thank you very much for your help!
astronautgravity
(130 rep)
Jun 2, 2021, 05:15 PM
• Last activity: Jun 4, 2021, 12:57 AM
10
votes
2
answers
37952
views
OS X - List all active sockets
I'm looking for a simple command that will list **_ALL_** currently active and/or otherwise bound TCP & UDP sockets, corresponding port numbers and their respective states (i.e. ESTABLISHED, LISTEN, WAIT, etc.) Sort of like a ***reverse*** `nmap` scan is what I'm going for here.
I'm looking for a simple command that will list **_ALL_** currently active and/or otherwise bound TCP & UDP sockets, corresponding port numbers and their respective states (i.e. ESTABLISHED, LISTEN, WAIT, etc.)
Sort of like a ***reverse***
nmap
scan is what I'm going for here.
voices
(2269 rep)
Sep 24, 2015, 05:46 AM
• Last activity: Jul 27, 2019, 10:13 AM
1
votes
2
answers
3124
views
Configure Socks Proxy iPhone
I am currently in China and I would like to bypass the censorship. (Mostly for Google and Netflix) I have a linux host in France that I could use for the SSH tunnel (let's call it user@domain.fr) In my Mac Book Pro, I typed the command line `ssh -ND 9999 user@domain.fr`, I configured my socks proxy,...
I am currently in China and I would like to bypass the censorship. (Mostly for Google and Netflix)
I have a linux host in France that I could use for the SSH tunnel (let's call it user@domain.fr)
In my Mac Book Pro, I typed the command line
ssh -ND 9999 user@domain.fr
, I configured my socks proxy, and everything worked fine.
**First idea:** I tried to follow this tutorial
My Pac file is :
function FindProxyForURL(url, host)
{
return "SOCKS domain.fr:9999";
}
I put the file proxy.pac in my linux host via scp
command. When I checked the URL of the file with Mobile Safari, it displayed the code written above, so I guess it can access it.
Then I configured the iOS device (Proxy Http -> Auto -> URL...) but it didn't work. What's strange is that I can still access non-censored website (like Apple), but I can't access censored-one (Facebook, Twitter) I would have thought that configuring the Http Proxy to Auto would affect the whole Web Browser.
Anyway, I wonder if that's because I need an authentication to access my host. And if that's so, how could I make it work?
**Second idea:** : I tried port forwarding with this tutorial
Since my basic needs are Google and Netflix, I used Termius and configured the port forwarding as followed :
Port Forwarding > Local
Host : domain.fr:22
Port from : 9998
Destination : google.com
Port to : 80
Port Forwarding > Local
Host : domain.fr:22
Port from : 9999
Destination : netflix.com
Port to : 80
Then I tried to access via localhost:9998 and localhost:9999.
For Netflix, I have a Http Status 404 : the requested resource is not available.
For Google, I have a Http Status 404 : the requested URL was not found on this server.
EyTea
(11 rep)
Apr 8, 2017, 07:02 AM
• Last activity: Nov 27, 2018, 12:59 PM
2
votes
1
answers
2377
views
System-wide SOCKS Proxy Settings?
If I have a SOCKS proxy running on a specific port, is there a way to configure all network traffic to leave through it? If I configure the SOCKS proxy in the Network system preference, it seems to work properly for all browsers without additional configuration. (As reported by a quick Google for 'w...
If I have a SOCKS proxy running on a specific port, is there a way to configure all network traffic to leave through it?
If I configure the SOCKS proxy in the Network system preference, it seems to work properly for all browsers without additional configuration. (As reported by a quick Google for 'what is my IP' in both Chrome and Safari.)
However, a
traceroute
does not seem to be using this proxy, nor do downloads using curl
. I also have no way of knowing whether other apps like Mail (SMTP) or an SSH connection are using the proxy.
I found the app MacProxy, but it's only a 30-day trial. It seems like there is surely a way to configure this via the command line for free?
Craig Otis
(835 rep)
Jan 29, 2014, 02:34 AM
• Last activity: Aug 5, 2018, 08:01 PM
6
votes
1
answers
3218
views
OS X Safari: Toggle Socks Proxy from command line
I need to toggle back and forth between engaging and disengaging a socks proxy within Safari: > Next open safari and click on "safari" in the top left menu bar to > open the drop down menu and then click on preferences. You can do the > same thing by pressing CMD+,. Click on the advanced tab and fin...
I need to toggle back and forth between engaging and disengaging a socks proxy within Safari:
> Next open safari and click on "safari" in the top left menu bar to
> open the drop down menu and then click on preferences. You can do the
> same thing by pressing CMD+,. Click on the advanced tab and find
> "Proxies", click "Change Settings". System Preferences should open and
> you can now select "SOCKS Proxy". You should be setup and if you check
> google for your IP it should be masked by the address that you're
> SSH'd into. Note this is system wide and will cover all network
> communications. You can turn this off by unselecting the SOCKS Proxy.
Is it possible to perform this task with a script? Bonus round: add button or menu item to Safari UI to execute proxy toggle. Any feedback to clarify question is appreciated.
gatorback
(3403 rep)
Jan 12, 2018, 03:10 PM
• Last activity: Jan 12, 2018, 03:14 PM
1
votes
1
answers
1255
views
Terminal. SSH with Proxy Socks 4
Gday all, So i'm trying to use the terminal to SSH into a server using a SOCKS4 proxy. In putty on windows you can tell it the IP and Port of the server. and then set the proxy in the proxy tab (IP and port) is there anyway i can do this with the terminal on OSX? Or is there another program i can us...
Gday all,
So i'm trying to use the terminal to SSH into a server using a SOCKS4 proxy.
In putty on windows you can tell it the IP and Port of the server. and then set the proxy in the proxy tab (IP and port)
is there anyway i can do this with the terminal on OSX?
Or is there another program i can use?
Pretty much so i don't have to VM windows and use putty
Cheers
Chris
(13 rep)
Jul 14, 2016, 04:29 AM
• Last activity: Jul 14, 2016, 07:35 AM
1
votes
1
answers
1246
views
How to connect to tethering socks proxy?
I've got socks proxy server running on iPhone, it is possible via Tethering app from Emu4iOS. iPhone connected to wifi hotspot and, as I can see in tethering app, connection is active. How can I connect to this proxy from Yosemite Mac wich connected to same hotspot?
I've got socks proxy server running on iPhone, it is possible via Tethering app from Emu4iOS. iPhone connected to wifi hotspot and, as I can see in tethering app, connection is active. How can I connect to this proxy from Yosemite Mac wich connected to same hotspot?
askhat
(11 rep)
Jan 4, 2015, 05:39 AM
• Last activity: Jan 4, 2015, 09:02 AM
1
votes
1
answers
315
views
How do I make Safari, Chrome, Mail, and other applications all use different SOCKS proxies
How do I make different applications like Safari, Chrome, and Mail all use different SOCKS proxies. FireFox has it's own proxy settings, but Safari, Chrome, and presumably Mail all use the system proxy settings. I need them to all use different SOCKS proxies, all running simultaneously under the sam...
How do I make different applications like Safari, Chrome, and Mail all use different SOCKS proxies.
FireFox has it's own proxy settings, but Safari, Chrome, and presumably Mail all use the system proxy settings. I need them to all use different SOCKS proxies, all running simultaneously under the same user and login.
I have all the SOCKS proxies set up on different ports already, each is proxies into a different company in a different country using
ssh -D
.
Jeff Burdges
(1210 rep)
Apr 4, 2012, 05:33 PM
• Last activity: Oct 31, 2013, 09:07 PM
10
votes
1
answers
7412
views
Why browsers ignores /etc/hosts behind a SOCKS proxy?
My MacBook in office does not have internet access. So I set up an instant SOCKS Proxy over SSH to surf the web. However, when I try to add an entry to `/etc/hosts`, the browser does not go to the site I expected ... My MacBook's WIFI is off and is connected to the company LAN: IP address: 192.168.8...
My MacBook in office does not have internet access. So I set up an instant SOCKS Proxy over SSH to surf the web.
However, when I try to add an entry to
/etc/hosts
, the browser does not go to the site I expected ...
My MacBook's WIFI is off and is connected to the company LAN:
IP address: 192.168.8.250
Subnet mask: 255.255.255.0
Router: 192.168.8.1
DNS server: 8.8.8.8
Be default, there is not internet access.
There a Linux development box (192.168.12.128) which has access to the internet, so I set up an instant SOCKS proxy to gain internet access for my MacBook:
ssh -fND localhost:30000 ohho@192.168.12.128
Then in my MacBook's System Preferences > Network > Proxies
(Enable) SOCKS Proxy
SOCKS Proxy sever: 127.0.0.1:30000
Bypass proxy settings for these Hosts & Domains:
*.local, 169.254/16, 127.0.0.1
Now I can surf the web, so far so good.
For development, I set up a few entries in /etc/hosts
for virtual hosts purpose:
127.0.0.1 air.company.com
In bash
:
$ ping air.company.com
PING air.ohho.es (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.046 ms
$ curl air.company.com
OK
It looks good and curl
returns the content of the index.html
nicely.
However, if I try to open the site:http://air.company.com
in the browsers (Safari/Chrome/Firefox), none of them returns the result like curl
did. Chrome give an error:
> This webpage is not available The webpage at http://air.company.com/
> might be temporarily down or it may have moved permanently to a new
> web address. Error 120 (net::ERR_SOCKS_CONNECTION_FAILED): Unknown
> error.
If I add another entry in /etc/hosts
:
127.0.0.1 www.microsoft.com
In bash
:
$ ping www.microsoft.com
PING www.microsoft.com (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.047 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.128 ms
^C
--- www.microsoft.com ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.047/0.087/0.128/0.041 ms
$ curl www.microsoft.com
OK
However, the browsers returns the content from the web server of the real Microsoft site, instead of the content from my MacBook (127.0.01). Why?
p.s.
If I disable the SOCKS proxy, the browser returns the content from 127.0.0.1 correctly.
If I disconnect the LAN cable, the browser returns the content from 127.0.0.1 correctly.
ohho
(4248 rep)
Jun 19, 2013, 04:33 AM
• Last activity: Jul 15, 2013, 01:20 PM
1
votes
1
answers
580
views
Does anyone know a Socks5 server I can run in OsX which allows chaining to an HTTP proxy?
Does anyone know of an OSX (Lion) Socks5 proxy that allows chaining to an HTTP(s) proxy with authentication? I've been searching the web, but can't seem to find anything.
Does anyone know of an OSX (Lion) Socks5 proxy that allows chaining to an HTTP(s) proxy with authentication? I've been searching the web, but can't seem to find anything.
Eric B.
(153 rep)
Nov 28, 2012, 06:14 AM
• Last activity: Dec 3, 2012, 04:38 PM
Showing page 1 of 14 total questions