Come aprire la porta 9150 su un Mac in modo che i dispositivi esterni possano connettersi ad esso?

5

Su Localhost I può accedere e connettersi alla porta 9150, ma su altri dispositivi sulla rete non può vedere la porta e non può connettersi ad essa. Ho controllato e non ci sono firewall sulla rete che impediscono la connessione.

Se è importante avere un server proxy in esecuzione su quella porta ho bisogno di altri dispositivi per potermi connettere.

Sto eseguendo macOS High Sierra 10.13.1 su un MacBook Pro all'inizio del 2015.

    
posta Matthew N 23.11.2017 - 19:50
fonte

1 risposta

7

Per impostazione predefinita, il tuo client Tor ascolta solo le applicazioni che si connettono da localhost (ad esempio lo0 - 127.0.0.1). Quindi il proxy non è associato ad altre interfacce come en0 o en1.

Per configurare un proxy Tor per le app su altri host nella rete, devi seguire le istruzioni:

I want to run my Tor client on a different computer than my applications. By default, your Tor client only listens for applications that connect from localhost. Connections from other computers are refused. If you want to torify applications on different computers than the Tor client, you should edit your torrc to define SocksListenAddress 0.0.0.0 and then restart (or hup) Tor. If you want to get more advanced, you can configure your Tor client on a firewall to bind to your internal IP but not your external IP.

Can I install Tor on a central server, and have my clients connect to it? Yes. Tor can be configured as a client or a relay on another machine, and allow other machines to be able to connect to it for anonymity. This is most useful in an environment where many computers want a gateway of anonymity to the rest of the world. However, be forwarned that with this configuration, anyone within your private network (existing between you and the Tor client/relay) can see what traffic you are sending in clear text. The anonymity doesn't start until you get to the Tor relay. Because of this, if you are the controller of your domain and you know everything's locked down, you will be OK, but this configuration may not be suitable for large private networks where security is key all around.

Configuration is simple, editing your torrc file's SocksListenAddress according to the following examples:

SocksListenAddress 127.0.0.1

SocksListenAddress 192.168.x.x:9100

SocksListenAddress 0.0.0.0:9100

You can state multiple listen addresses, in the case that you are part of several networks or subnets.

SocksListenAddress 192.168.x.x:9100 #eth0
SocksListenAddress 10.x.x.x:9100 #eth1

After this, your clients on their respective networks/subnets would specify a socks proxy with the address and port you specified SocksListenAddress to be.

Please note that the SocksPort configuration option gives the port ONLY for localhost (127.0.0.1). When setting up your SocksListenAddress(es), you need to give the port with the address, as shown above.

If you are interested in forcing all outgoing data through the central Tor client/relay, instead of the server only being an optional proxy, you may find the program iptables (for *nix) useful.

Fonte: Domande frequenti Tor
Posizione del file torcc: ~/Library/Application Support/TorBrowser-Data/Tor

Non ho funzionato correttamente!

    
risposta data 23.11.2017 - 21:40
fonte

Leggi altre domande sui tag