[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-talk] Snowflake bridge and user IP address



On Mon, Jun 14, 2021 at 02:43:32PM +0000, torrio888 wrote:
> Does Snowflake bridge knows the IP address of the Snowflake client or it only knows the IP address of the Snowflake proxy?

The bridge knows the IP address of the Snowflake client. The Snowflake
client's IP address is forwarded to the bridge by the Snowflake proxy,
for the purpose of metrics.

Here the proxy attaches the client's IP address as a ?client_ip= query
parameter in the WebSocket connection to the bridge:
https://gitweb.torproject.org/pluggable-transports/snowflake-webext.git/tree/proxypair.js?h=webext-0.5.4#n109

Here the bridge reads the ?client_ip= parameter and later passes the
address string to pt.DialOr in the connection to tor:
https://gitweb.torproject.org/pluggable-transports/snowflake.git/tree/server/lib/http.go?h=v1.0.0#n80
https://gitweb.torproject.org/pluggable-transports/snowflake.git/tree/server/server.go?h=v1.0.0#n81
-- 
tor-talk mailing list - tor-talk@xxxxxxxxxxxxxxxxxxxx
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk