Opened 5 years ago

Closed 5 years ago

#8319 closed defect (fixed)

Tolerate failures in opening listeners

Reported by: dcf Owned by: dcf
Priority: Medium Milestone:
Component: Archived/Flashproxy Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Quoting from https://blog.torproject.org/blog/combined-flash-proxy-pyobfsproxy-browser-bundles#comment-18784.

In China, I tested flashproxy in XP sp3 and WIN7 network environment of ADSL+router.
Flashproxy can fetch new bridge in WIN7, but the new bridge is very slow.
In XP sp3, flshproxy can not work. In task manager, flashproxy-client.exe appears for only seconds, flashproxy-reg-email.exe and flashproxy-reg-http.exe never appear.

I wonder if any uPNP configuration problem happens in my XP sp3 system.

Child Tickets

Change History (12)

comment:1 Changed 5 years ago by dcf

Component: - Select a componentFlashproxy
Owner: set to dcf

comment:2 in reply to:  description ; Changed 5 years ago by kenwoo

Replying to dcf:

Quoting from https://blog.torproject.org/blog/combined-flash-proxy-pyobfsproxy-browser-bundles#comment-18784.

In China, I tested flashproxy in XP sp3 and WIN7 network environment of ADSL+router.
Flashproxy can fetch new bridge in WIN7, but the new bridge is very slow.
In XP sp3, flshproxy can not work. In task manager, flashproxy-client.exe appears for only seconds, flashproxy-reg-email.exe and flashproxy-reg-http.exe never appear.

I wonder if any uPNP configuration problem happens in my XP sp3 system.

I added log option,
...
LearnCircuitBuildTimeout 0
CircuitBuildTimeout 60
ClientTransportPlugin websocket exec flashproxy-client --register :0 :9001 --log flashproxy-client.txt
ClientTransportPlugin obfs2,obfs3 exec obfsproxy managed
...

and the log file is (I am using port 9001):

2013-02-24 11:22:11 VERSION 1
2013-02-24 11:22:19 Listening remote on 0.0.0.0:9001.
Traceback (most recent call last):

File "<string>", line 1177, in <module>
File "<string>", line 1127, in main
File "<string>", line 479, in listen_socket

socket.gaierror: [Errno 11001] getaddrinfo failed
2013-02-24 11:25:55 VERSION 1
2013-02-24 11:25:55 Listening remote on 0.0.0.0:9001.
Traceback (most recent call last):

File "<string>", line 1177, in <module>
File "<string>", line 1127, in main
File "<string>", line 479, in listen_socket

socket.gaierror: [Errno 11001] getaddrinfo failed

comment:3 in reply to:  2 Changed 5 years ago by dcf

Replying to kenwoo:

I added log option,
...
LearnCircuitBuildTimeout 0
CircuitBuildTimeout 60
ClientTransportPlugin websocket exec flashproxy-client --register :0 :9001 --log flashproxy-client.txt
ClientTransportPlugin obfs2,obfs3 exec obfsproxy managed
...

and the log file is (I am using port 9001):

2013-02-24 11:22:11 VERSION 1
2013-02-24 11:22:19 Listening remote on 0.0.0.0:9001.
Traceback (most recent call last):

File "<string>", line 1177, in <module>
File "<string>", line 1127, in main
File "<string>", line 479, in listen_socket

socket.gaierror: [Errno 11001] getaddrinfo failed
2013-02-24 11:25:55 VERSION 1
2013-02-24 11:25:55 Listening remote on 0.0.0.0:9001.
Traceback (most recent call last):

File "<string>", line 1177, in <module>
File "<string>", line 1127, in main
File "<string>", line 479, in listen_socket

socket.gaierror: [Errno 11001] getaddrinfo failed

Thank you for this log. It looks like the problem is with listening on an IPv6 address. Please try changing the line to

ClientTransportPlugin websocket exec flashproxy-client --register :0 0.0.0.0:9001 --log flashproxy-client.txt

The 0.0.0.0 in front of :9001 will force the program to listen on IPv4 only.

comment:4 Changed 5 years ago by dcf

Status: newassigned

comment:5 in reply to:  4 ; Changed 5 years ago by kenwoo

Replying to dcf:
Flashproxy seems work, but new problems happened. still can not get new bridge.
Here is the log:

2013-02-24 13:00:39 VERSION 1
2013-02-24 13:00:40 Listening remote on 0.0.0.0:9001.
2013-02-24 13:00:40 Listening local on 127.0.0.1:3324.
2013-02-24 13:00:40 CMETHOD websocket socks4 127.0.0.1:3324
2013-02-24 13:00:40 CMETHODS DONE
2013-02-24 13:00:43 Local connection from [scrubbed].
2013-02-24 13:00:43 Trying to register "0.0.0.0:9001".
2013-02-24 13:00:43 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-email 0.0.0.0:9001
2013-02-24 13:00:43 SOCKS request from [scrubbed].
2013-02-24 13:00:43 Got SOCKS request for [scrubbed].
2013-02-24 13:00:43 locals (1): [scrubbed]?
2013-02-24 13:00:43 remotes (0): []
2013-02-24 13:00:43 Data from unlinked local [scrubbed] (216 bytes).
2013-02-24 13:00:43 locals (1): [scrubbed]?
2013-02-24 13:00:43 remotes (0): []
2013-02-24 13:01:05 flashproxy-reg-email: Traceback (most recent call last):
2013-02-24 13:01:05 flashproxy-reg-email: File "<string>", line 223, in <module>
2013-02-24 13:01:05 flashproxy-reg-email: File "C:\Users\aallai\flashproxy\pyinstaller-tmp/build\out01-PYZ.pyz\smtplib", line 249, in init
2013-02-24 13:01:05 flashproxy-reg-email: File "C:\Users\aallai\flashproxy\pyinstaller-tmp/build\out01-PYZ.pyz\smtplib", line 309, in connect
2013-02-24 13:01:05 flashproxy-reg-email: File "C:\Users\aallai\flashproxy\pyinstaller-tmp/build\out01-PYZ.pyz\smtplib", line 284, in _get_socket
2013-02-24 13:01:05 flashproxy-reg-email: File "C:\Users\aallai\flashproxy\pyinstaller-tmp/build\out01-PYZ.pyz\socket", line 571, in create_connection
2013-02-24 13:01:05 flashproxy-reg-email: socket.error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
2013-02-24 13:01:05 flashproxy-reg-email exited with status -1.
2013-02-24 13:01:05 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-http 0.0.0.0:9001
2013-02-24 13:01:10 flashproxy-reg-http: Registered "0.0.0.0:9001" with https://tor-facilitator.bamsoftware.com/.

comment:6 in reply to:  5 ; Changed 5 years ago by dcf

Replying to kenwoo:

Replying to dcf:
Flashproxy seems work, but new problems happened. still can not get new bridge.
Here is the log:

2013-02-24 13:00:39 VERSION 1
2013-02-24 13:00:40 Listening remote on 0.0.0.0:9001.
2013-02-24 13:00:40 Listening local on 127.0.0.1:3324.
2013-02-24 13:00:40 CMETHOD websocket socks4 127.0.0.1:3324
2013-02-24 13:00:40 CMETHODS DONE
2013-02-24 13:00:43 Local connection from [scrubbed].
2013-02-24 13:00:43 Trying to register "0.0.0.0:9001".
2013-02-24 13:00:43 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-email 0.0.0.0:9001
2013-02-24 13:00:43 SOCKS request from [scrubbed].
2013-02-24 13:00:43 Got SOCKS request for [scrubbed].
2013-02-24 13:00:43 locals (1): [scrubbed]?
2013-02-24 13:00:43 remotes (0): []
2013-02-24 13:00:43 Data from unlinked local [scrubbed] (216 bytes).
2013-02-24 13:00:43 locals (1): [scrubbed]?
2013-02-24 13:00:43 remotes (0): []
2013-02-24 13:01:05 flashproxy-reg-email: Traceback (most recent call last):
2013-02-24 13:01:05 flashproxy-reg-email: File "<string>", line 223, in <module>
2013-02-24 13:01:05 flashproxy-reg-email: File "C:\Users\aallai\flashproxy\pyinstaller-tmp/build\out01-PYZ.pyz\smtplib", line 249, in init
2013-02-24 13:01:05 flashproxy-reg-email: File "C:\Users\aallai\flashproxy\pyinstaller-tmp/build\out01-PYZ.pyz\smtplib", line 309, in connect
2013-02-24 13:01:05 flashproxy-reg-email: File "C:\Users\aallai\flashproxy\pyinstaller-tmp/build\out01-PYZ.pyz\smtplib", line 284, in _get_socket
2013-02-24 13:01:05 flashproxy-reg-email: File "C:\Users\aallai\flashproxy\pyinstaller-tmp/build\out01-PYZ.pyz\socket", line 571, in create_connection
2013-02-24 13:01:05 flashproxy-reg-email: socket.error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
2013-02-24 13:01:05 flashproxy-reg-email exited with status -1.
2013-02-24 13:01:05 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-http 0.0.0.0:9001
2013-02-24 13:01:10 flashproxy-reg-http: Registered "0.0.0.0:9001" with https://tor-facilitator.bamsoftware.com/.

Okay. Please try this:

ClientTransportPlugin websocket exec flashproxy-client --register :0 0.0.0.0:9001 --register-addr :9001 --register-methods http --log flashproxy-client.txt

There are two things changed in this command. The first is --register-addr :9001. This was my mistake; we must omit the address in the registration method so that it can be guessed by the facilitator. The log line Trying to register "0.0.0.0:9001" revealed this error.
The other thing is --register-methods http. It seems that flashproxy-reg-email does not work for you. Perhaps there is something preventing you from connecting to the Gmail SMTP port? (May be a local firewall or a firewall you don't control.) --register-methods http will skip trying to use the email registration. The http registration is easy to block, but it seems to be working for you for now.

comment:7 in reply to:  6 ; Changed 5 years ago by kenwoo

Replying to dcf:

Replying to kenwoo:

Replying to dcf:
Flashproxy seems work, but new problems happened. still can not get new bridge.
Here is the log:

2013-02-24 13:00:39 VERSION 1
2013-02-24 13:00:40 Listening remote on 0.0.0.0:9001.
2013-02-24 13:00:40 Listening local on 127.0.0.1:3324.
2013-02-24 13:00:40 CMETHOD websocket socks4 127.0.0.1:3324
2013-02-24 13:00:40 CMETHODS DONE
2013-02-24 13:00:43 Local connection from [scrubbed].
2013-02-24 13:00:43 Trying to register "0.0.0.0:9001".
2013-02-24 13:00:43 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-email 0.0.0.0:9001
2013-02-24 13:00:43 SOCKS request from [scrubbed].
2013-02-24 13:00:43 Got SOCKS request for [scrubbed].
2013-02-24 13:00:43 locals (1): [scrubbed]?
2013-02-24 13:00:43 remotes (0): []
2013-02-24 13:00:43 Data from unlinked local [scrubbed] (216 bytes).
2013-02-24 13:00:43 locals (1): [scrubbed]?
2013-02-24 13:00:43 remotes (0): []
2013-02-24 13:01:05 flashproxy-reg-email: Traceback (most recent call last):
2013-02-24 13:01:05 flashproxy-reg-email: File "<string>", line 223, in <module>
2013-02-24 13:01:05 flashproxy-reg-email: File "C:\Users\aallai\flashproxy\pyinstaller-tmp/build\out01-PYZ.pyz\smtplib", line 249, in init
2013-02-24 13:01:05 flashproxy-reg-email: File "C:\Users\aallai\flashproxy\pyinstaller-tmp/build\out01-PYZ.pyz\smtplib", line 309, in connect
2013-02-24 13:01:05 flashproxy-reg-email: File "C:\Users\aallai\flashproxy\pyinstaller-tmp/build\out01-PYZ.pyz\smtplib", line 284, in _get_socket
2013-02-24 13:01:05 flashproxy-reg-email: File "C:\Users\aallai\flashproxy\pyinstaller-tmp/build\out01-PYZ.pyz\socket", line 571, in create_connection
2013-02-24 13:01:05 flashproxy-reg-email: socket.error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
2013-02-24 13:01:05 flashproxy-reg-email exited with status -1.
2013-02-24 13:01:05 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-http 0.0.0.0:9001
2013-02-24 13:01:10 flashproxy-reg-http: Registered "0.0.0.0:9001" with https://tor-facilitator.bamsoftware.com/.

Okay. Please try this:

ClientTransportPlugin websocket exec flashproxy-client --register :0 0.0.0.0:9001 --register-addr :9001 --register-methods http --log flashproxy-client.txt

There are two things changed in this command. The first is --register-addr :9001. This was my mistake; we must omit the address in the registration method so that it can be guessed by the facilitator. The log line Trying to register "0.0.0.0:9001" revealed this error.
The other thing is --register-methods http. It seems that flashproxy-reg-email does not work for you. Perhaps there is something preventing you from connecting to the Gmail SMTP port? (May be a local firewall or a firewall you don't control.) --register-methods http will skip trying to use the email registration. The http registration is easy to block, but it seems to be working for you for now.

Http method is not working, here is the log file:
2013-02-24 14:49:44 VERSION 1
2013-02-24 14:49:44 Listening remote on 0.0.0.0:9001.
2013-02-24 14:49:44 Listening local on 127.0.0.1:2598.
2013-02-24 14:49:44 CMETHOD websocket socks4 127.0.0.1:2598
2013-02-24 14:49:44 CMETHODS DONE
2013-02-24 14:49:49 Local connection from [scrubbed].
2013-02-24 14:49:49 Trying to register "0.0.0.0:9001".
2013-02-24 14:49:49 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-http 0.0.0.0:9001
2013-02-24 14:49:49 SOCKS request from [scrubbed].
2013-02-24 14:49:49 Got SOCKS request for [scrubbed].
2013-02-24 14:49:49 locals (1): [scrubbed]?
2013-02-24 14:49:49 remotes (0): []
2013-02-24 14:49:49 Data from unlinked local [scrubbed] (226 bytes).
2013-02-24 14:49:49 locals (1): [scrubbed]?
2013-02-24 14:49:49 remotes (0): []
2013-02-24 14:49:51 flashproxy-reg-http: Registered "0.0.0.0:9001" with https://tor-facilitator.bamsoftware.com/.

BTW, I just modified XP hosts file, 173.194.79.109 smtp.gmail.com, trying to connect smtp server, and I switched register method to email method (ClientTransportPlugin websocket exec flashproxy-client --register :0 0.0.0.0:9001 --register-addr :9001 --log flashproxy-client.txt), get the log file:

2013-02-24 15:01:45 VERSION 1
2013-02-24 15:01:46 Listening remote on 0.0.0.0:9001.
2013-02-24 15:01:46 Listening local on 127.0.0.1:3169.
2013-02-24 15:01:46 CMETHOD websocket socks4 127.0.0.1:3169
2013-02-24 15:01:46 CMETHODS DONE
2013-02-24 15:01:59 Local connection from [scrubbed].
2013-02-24 15:01:59 Trying to register "0.0.0.0:9001".
2013-02-24 15:01:59 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-email 0.0.0.0:9001
2013-02-24 15:02:00 SOCKS request from [scrubbed].
2013-02-24 15:02:00 Got SOCKS request for [scrubbed].
2013-02-24 15:02:00 locals (1): [scrubbed]?
2013-02-24 15:02:00 remotes (0): []
2013-02-24 15:02:00 Data from unlinked local [scrubbed] (235 bytes).
2013-02-24 15:02:00 locals (1): [scrubbed]?
2013-02-24 15:02:00 remotes (0): []
2013-02-24 15:02:15 flashproxy-reg-email: Failed to register: Public key does not match pin: got a5ba9523f2dc350a51ef72d87d1c3ad3cbaf12ce but expected 1926a5cb3fd7e48328188946e73ade84f55787dc
2013-02-24 15:02:15 flashproxy-reg-email exited with status 1.
2013-02-24 15:02:15 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-http 0.0.0.0:9001
2013-02-24 15:02:23 flashproxy-reg-http: Registered "0.0.0.0:9001" with https://tor-facilitator.bamsoftware.com/.

comment:8 in reply to:  7 ; Changed 5 years ago by dcf

Replying to kenwoo:

Http method is not working, here is the log file:
2013-02-24 14:49:44 VERSION 1
2013-02-24 14:49:44 Listening remote on 0.0.0.0:9001.
2013-02-24 14:49:44 Listening local on 127.0.0.1:2598.
2013-02-24 14:49:44 CMETHOD websocket socks4 127.0.0.1:2598
2013-02-24 14:49:44 CMETHODS DONE
2013-02-24 14:49:49 Local connection from [scrubbed].
2013-02-24 14:49:49 Trying to register "0.0.0.0:9001".
2013-02-24 14:49:49 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-http 0.0.0.0:9001
2013-02-24 14:49:49 SOCKS request from [scrubbed].
2013-02-24 14:49:49 Got SOCKS request for [scrubbed].
2013-02-24 14:49:49 locals (1): [scrubbed]?
2013-02-24 14:49:49 remotes (0): []
2013-02-24 14:49:49 Data from unlinked local [scrubbed] (226 bytes).
2013-02-24 14:49:49 locals (1): [scrubbed]?
2013-02-24 14:49:49 remotes (0): []
2013-02-24 14:49:51 flashproxy-reg-http: Registered "0.0.0.0:9001" with https://tor-facilitator.bamsoftware.com/.

Okay. I see a problem. There is a bug in flashproxy-client that we need to fix. It should not be taking 0.0.0.0 for the registration address. You can work around it by putting your real external IP address in --register-addr. For example,

ClientTransportPlugin websocket exec flashproxy-client --register :0 0.0.0.0:9001 --register-addr 1.2.3.4 --register-methods http --log flashproxy-client.txt

Replace "1.2.3.4" with your external IP address.

BTW, I just modified XP hosts file, 173.194.79.109 smtp.gmail.com, trying to connect smtp server, and I switched register method to email method (ClientTransportPlugin websocket exec flashproxy-client --register :0 0.0.0.0:9001 --register-addr :9001 --log flashproxy-client.txt), get the log file:

...
2013-02-24 15:02:15 flashproxy-reg-email: Failed to register: Public key does not match pin: got a5ba9523f2dc350a51ef72d87d1c3ad3cbaf12ce but expected 1926a5cb3fd7e48328188946e73ade84f55787dc
2013-02-24 15:02:15 flashproxy-reg-email exited with status 1.

Using the IP address of smtp.gmail.com probably will not work. smtp.gmail.com is the SMTP server for Google customers to send mail--gmail-smtp-in.l.google.com is the SMTP server that receives mail. Please see comment:2:ticket:6383.

comment:9 in reply to:  8 ; Changed 5 years ago by kenwoo

Replying to dcf:

Replying to kenwoo:

Http method is not working, here is the log file:
2013-02-24 14:49:44 VERSION 1
2013-02-24 14:49:44 Listening remote on 0.0.0.0:9001.
2013-02-24 14:49:44 Listening local on 127.0.0.1:2598.
2013-02-24 14:49:44 CMETHOD websocket socks4 127.0.0.1:2598
2013-02-24 14:49:44 CMETHODS DONE
2013-02-24 14:49:49 Local connection from [scrubbed].
2013-02-24 14:49:49 Trying to register "0.0.0.0:9001".
2013-02-24 14:49:49 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-http 0.0.0.0:9001
2013-02-24 14:49:49 SOCKS request from [scrubbed].
2013-02-24 14:49:49 Got SOCKS request for [scrubbed].
2013-02-24 14:49:49 locals (1): [scrubbed]?
2013-02-24 14:49:49 remotes (0): []
2013-02-24 14:49:49 Data from unlinked local [scrubbed] (226 bytes).
2013-02-24 14:49:49 locals (1): [scrubbed]?
2013-02-24 14:49:49 remotes (0): []
2013-02-24 14:49:51 flashproxy-reg-http: Registered "0.0.0.0:9001" with https://tor-facilitator.bamsoftware.com/.

Okay. I see a problem. There is a bug in flashproxy-client that we need to fix. It should not be taking 0.0.0.0 for the registration address. You can work around it by putting your real external IP address in --register-addr. For example,

ClientTransportPlugin websocket exec flashproxy-client --register :0 0.0.0.0:9001 --register-addr 1.2.3.4 --register-methods http --log flashproxy-client.txt

Replace "1.2.3.4" with your external IP address.

BTW, I just modified XP hosts file, 173.194.79.109 smtp.gmail.com, trying to connect smtp server, and I switched register method to email method (ClientTransportPlugin websocket exec flashproxy-client --register :0 0.0.0.0:9001 --register-addr :9001 --log flashproxy-client.txt), get the log file:

...
2013-02-24 15:02:15 flashproxy-reg-email: Failed to register: Public key does not match pin: got a5ba9523f2dc350a51ef72d87d1c3ad3cbaf12ce but expected 1926a5cb3fd7e48328188946e73ade84f55787dc
2013-02-24 15:02:15 flashproxy-reg-email exited with status 1.

Using the IP address of smtp.gmail.com probably will not work. smtp.gmail.com is the SMTP server for Google customers to send mail--gmail-smtp-in.l.google.com is the SMTP server that receives mail. Please see comment:2:ticket:6383.

Http method works now, thank you. (a.b.c.d is my ip)
Abour email method, actually my hosts file has many lines about google mail server.

(173.194.79.108 gmail-imap.l.google.com

173.194.79.108 gmail-pop.l.google.com
173.194.79.108 gmail-smtp.l.google.com
173.194.79.108 gmail-smtp-in.l.google.com
173.194.79.108 gmail-smtp-msa.l.google.com
173.194.79.108 gmr-smtp-in.l.google.com
173.194.79.108 googlemail-imap.l.google.com
173.194.79.108 googlemail-pop.l.google.com
173.194.79.108 googlemail-smtp.l.google.com
173.194.79.108 imap.gmail.com
173.194.79.108 pop.gmail.com
173.194.79.108 smtp.gmail.com
173.194.79.108 imap.googlemail.com
173.194.79.108 pop.googlemail.com
173.194.79.108 smtp.googlemail.com
173.194.79.108 smtp1.google.com
173.194.79.108 smtp3.google.com
173.194.79.108 smtp-out.google.com
173.194.79.108 smtp-out3.google.com
173.194.79.108 mail-attachment.googleusercontent.com
173.194.79.108 gmail-smtp-in.l.google.com
173.194.79.108 alt1.gmail-smtp-in.l.google.com
173.194.79.108 alt2.gmail-smtp-in.l.google.com
173.194.79.108 alt3.gmail-smtp-in.l.google.com
173.194.79.108 alt4.gmail-smtp-in.l.google.com)

But email method is not working.

Here is the log:
2013-02-24 15:40:32 VERSION 1
2013-02-24 15:40:32 Listening remote on 0.0.0.0:9001.
2013-02-24 15:40:32 Listening local on 127.0.0.1:1554.
2013-02-24 15:40:32 CMETHOD websocket socks4 127.0.0.1:1554
2013-02-24 15:40:32 CMETHODS DONE
2013-02-24 15:40:36 Local connection from [scrubbed].
2013-02-24 15:40:36 Trying to register "a.b.c.d:9001".
2013-02-24 15:40:36 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-email a.b.c.d:9001
2013-02-24 15:40:37 SOCKS request from [scrubbed].
2013-02-24 15:40:37 Got SOCKS request for [scrubbed].
2013-02-24 15:40:37 locals (1): [scrubbed]?
2013-02-24 15:40:37 remotes (0): []
2013-02-24 15:40:37 Data from unlinked local [scrubbed] (229 bytes).
2013-02-24 15:40:37 locals (1): [scrubbed]?
2013-02-24 15:40:37 remotes (0): []
2013-02-24 15:40:44 flashproxy-reg-email: Failed to register: Public key does not match pin: got a5ba9523f2dc350a51ef72d87d1c3ad3cbaf12ce but expected 1926a5cb3fd7e48328188946e73ade84f55787dc
2013-02-24 15:40:44 flashproxy-reg-email exited with status 1.
2013-02-24 15:40:44 Running command: D:\hu_file\download\GoogleIP Proxy\Tor Browser FLash\App\flashproxy-reg-http a.b.c.d:9001
2013-02-24 15:40:59 flashproxy-reg-http: Registered "a.b.c.d:9001" with https://tor-facilitator.bamsoftware.com/.
2013-02-24 15:41:19 Remote connection from [scrubbed].
2013-02-24 15:41:19 Data from WebSocket-pending [scrubbed].
2013-02-24 15:41:19 locals (1): [scrubbed]?
2013-02-24 15:41:19 remotes (1): [scrubbed]?
2013-02-24 15:41:19 Linking [scrubbed] and [scrubbed].
2013-02-24 15:41:20 Remote connection from [scrubbed].
2013-02-24 15:41:20 Data from WebSocket-pending [scrubbed].
2013-02-24 15:41:20 locals (1): [scrubbed]?
2013-02-24 15:41:20 remotes (2): ['[scrubbed]', '[scrubbed]']
2013-02-24 15:41:22 Remote connection from [scrubbed].
2013-02-24 15:41:22 Data from WebSocket-pending [scrubbed].
2013-02-24 15:41:22 locals (1): [scrubbed]?
2013-02-24 15:41:22 remotes (3): ['[scrubbed]', '[scrubbed]', '[scrubbed]']
2013-02-24 15:41:23 Remote connection from [scrubbed].
2013-02-24 15:41:23 Data from WebSocket-pending [scrubbed].
2013-02-24 15:41:23 locals (1): [scrubbed]?
2013-02-24 15:41:23 remotes (4): ['[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]']
2013-02-24 15:41:25 Remote connection from [scrubbed].
2013-02-24 15:41:25 Data from WebSocket-pending [scrubbed].
2013-02-24 15:41:25 locals (1): [scrubbed]?
2013-02-24 15:41:25 remotes (5): ['[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]']
2013-02-24 15:41:26 Remote connection from [scrubbed].
2013-02-24 15:41:26 Data from WebSocket-pending [scrubbed].
2013-02-24 15:41:26 locals (1): [scrubbed]?
2013-02-24 15:41:26 remotes (6): ['[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]']
2013-02-24 15:41:27 Local connection from [scrubbed].
2013-02-24 15:41:28 SOCKS request from [scrubbed].
2013-02-24 15:41:28 Got SOCKS request for [scrubbed].
2013-02-24 15:41:28 locals (2): ['[scrubbed]', '[scrubbed]']
2013-02-24 15:41:28 remotes (6): ['[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]']
2013-02-24 15:41:28 Linking [scrubbed] and [scrubbed].
2013-02-24 15:41:33 Remote connection from [scrubbed].
2013-02-24 15:41:33 Data from WebSocket-pending [scrubbed].
2013-02-24 15:41:33 locals (2): ['[scrubbed]', '[scrubbed]']
2013-02-24 15:41:33 remotes (7): ['[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]']
2013-02-24 15:41:34 Remote connection from [scrubbed].
2013-02-24 15:41:34 Data from WebSocket-pending [scrubbed].
2013-02-24 15:41:34 locals (2): ['[scrubbed]', '[scrubbed]']
2013-02-24 15:41:34 remotes (8): ['[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]', '[scrubbed]']
2013-02-24 15:42:35 EOF from local [scrubbed].

comment:10 in reply to:  9 ; Changed 5 years ago by dcf

Replying to kenwoo:

Abour email method, actually my hosts file has many lines about google mail server.

(173.194.79.108 gmail-imap.l.google.com

173.194.79.108 gmail-pop.l.google.com
173.194.79.108 gmail-smtp.l.google.com
173.194.79.108 gmail-smtp-in.l.google.com
173.194.79.108 gmail-smtp-msa.l.google.com
173.194.79.108 gmr-smtp-in.l.google.com
173.194.79.108 googlemail-imap.l.google.com
173.194.79.108 googlemail-pop.l.google.com
173.194.79.108 googlemail-smtp.l.google.com
173.194.79.108 imap.gmail.com
173.194.79.108 pop.gmail.com
173.194.79.108 smtp.gmail.com
173.194.79.108 imap.googlemail.com
173.194.79.108 pop.googlemail.com
173.194.79.108 smtp.googlemail.com
173.194.79.108 smtp1.google.com
173.194.79.108 smtp3.google.com
173.194.79.108 smtp-out.google.com
173.194.79.108 smtp-out3.google.com
173.194.79.108 mail-attachment.googleusercontent.com
173.194.79.108 gmail-smtp-in.l.google.com
173.194.79.108 alt1.gmail-smtp-in.l.google.com
173.194.79.108 alt2.gmail-smtp-in.l.google.com
173.194.79.108 alt3.gmail-smtp-in.l.google.com
173.194.79.108 alt4.gmail-smtp-in.l.google.com)

But email method is not working.

2013-02-24 15:40:44 flashproxy-reg-email: Failed to register: Public key does not match pin: got a5ba9523f2dc350a51ef72d87d1c3ad3cbaf12ce but expected 1926a5cb3fd7e48328188946e73ade84f55787dc
2013-02-24 15:40:44 flashproxy-reg-email exited with status 1.

For me, smtp.gmail.com and gmail-smtp-in.l.google.com have different IP addresses. It is probably not correct to use 173.194.79.108 for gmail-smtp-in.l.google.com. That is why you are seeing a certificate pinning failure. These are the IP addresses I have.

smtp.gmail.com.         158     IN      CNAME   gmail-smtp-msa.l.google.com.
gmail-smtp-msa.l.google.com. 49 IN      A       74.125.25.109
gmail-smtp-msa.l.google.com. 49 IN      A       74.125.25.108
gmail-smtp-in.l.google.com. 267 IN      A       74.125.25.27

You might try 74.125.25.27 for the address.

I get the same pinning failure if I run the command

./flashproxy-reg-email --smtp smtp.gmail.com
Failed to register: Public key does not match pin: got a5ba9523f2dc350a51ef72d87d1c3ad3cbaf12ce but expected 1926a5cb3fd7e48328188946e73ade84f55787dc

Therefore I think the problem is that you are communicating with the wrong server.

comment:11 in reply to:  10 Changed 5 years ago by kenwoo

Replying to dcf:

Replying to kenwoo:

Abour email method, actually my hosts file has many lines about google mail server.

(173.194.79.108 gmail-imap.l.google.com

173.194.79.108 gmail-pop.l.google.com
173.194.79.108 gmail-smtp.l.google.com
173.194.79.108 gmail-smtp-in.l.google.com
173.194.79.108 gmail-smtp-msa.l.google.com
173.194.79.108 gmr-smtp-in.l.google.com
173.194.79.108 googlemail-imap.l.google.com
173.194.79.108 googlemail-pop.l.google.com
173.194.79.108 googlemail-smtp.l.google.com
173.194.79.108 imap.gmail.com
173.194.79.108 pop.gmail.com
173.194.79.108 smtp.gmail.com
173.194.79.108 imap.googlemail.com
173.194.79.108 pop.googlemail.com
173.194.79.108 smtp.googlemail.com
173.194.79.108 smtp1.google.com
173.194.79.108 smtp3.google.com
173.194.79.108 smtp-out.google.com
173.194.79.108 smtp-out3.google.com
173.194.79.108 mail-attachment.googleusercontent.com
173.194.79.108 gmail-smtp-in.l.google.com
173.194.79.108 alt1.gmail-smtp-in.l.google.com
173.194.79.108 alt2.gmail-smtp-in.l.google.com
173.194.79.108 alt3.gmail-smtp-in.l.google.com
173.194.79.108 alt4.gmail-smtp-in.l.google.com)

But email method is not working.

2013-02-24 15:40:44 flashproxy-reg-email: Failed to register: Public key does not match pin: got a5ba9523f2dc350a51ef72d87d1c3ad3cbaf12ce but expected 1926a5cb3fd7e48328188946e73ade84f55787dc
2013-02-24 15:40:44 flashproxy-reg-email exited with status 1.

For me, smtp.gmail.com and gmail-smtp-in.l.google.com have different IP addresses. It is probably not correct to use 173.194.79.108 for gmail-smtp-in.l.google.com. That is why you are seeing a certificate pinning failure. These are the IP addresses I have.

smtp.gmail.com.         158     IN      CNAME   gmail-smtp-msa.l.google.com.
gmail-smtp-msa.l.google.com. 49 IN      A       74.125.25.109
gmail-smtp-msa.l.google.com. 49 IN      A       74.125.25.108
gmail-smtp-in.l.google.com. 267 IN      A       74.125.25.27

You might try 74.125.25.27 for the address.

I get the same pinning failure if I run the command

./flashproxy-reg-email --smtp smtp.gmail.com
Failed to register: Public key does not match pin: got a5ba9523f2dc350a51ef72d87d1c3ad3cbaf12ce but expected 1926a5cb3fd7e48328188946e73ade84f55787dc

Therefore I think the problem is that you are communicating with the wrong server.

I used just-ping.com to check all lines of hosts file, finally email method works, thanks a lot.

comment:12 Changed 5 years ago by dcf

Resolution: fixed
Status: assignedclosed
Summary: Check if flashproxy-client.exe works on Windows XPTolerate failures in opening listeners

This should be fixed now in 203776bc.

Note: See TracTickets for help on using tickets.