NAT type refresh appears to be skipped on 24 hour cycle
As of snowflake-proxy v.2.2.0 I’m getting 'Nat type: unknown' in the log. Previously on v.2.1.0 it was 'unrestricted/unrestricted'. When I run the nat behaviour tool it reports endpoint-independant for both mapping and filtering. I have a static ip for the host computer and all ephemeral udp ports forwarded to it. Traffic flow for the proxy is way down as a result. I was averaging close to 1 GB/hr before.
Here’s the output from the NAT behaviour tool:
Users-Mac-mini:~ user$ $GOPATH/bin/stun-nat-behaviour —server stun.voip.blackberry.com:3478
2022/05/26 17:56:13 Connecting to STUN server: stun.voip.blackberry.com:3478
2022/05/26 17:56:15 Local address: 0.0.0.0:59082
2022/05/26 17:56:15 Received xormapped address: xxx.xxx.xx.xxx:59082
2022/05/26 17:56:15 Received xormapped address: xxx.xxx.xx.xxx:59082
2022/05/26 17:56:15 NAT mapping behavior: endpoint-independent
2022/05/26 17:56:15 Local address: 0.0.0.0:55624
2022/05/26 17:56:15 Received xormapped address: xxx.xxx.xx.xxx:55624
2022/05/26 17:56:15 NAT filtering behavior: endpoint-independent
And the output from proxy -verbose:
Users-Mac-mini:~ user$ proxy -verbose
2022/05/27 00:41:07 In the last 1h0m0s, there are 0 connections. Traffic Relayed ↑ 0 B, ↓ 0 B.
2022/05/27 00:41:07 starting
2022/05/27 00:41:07 WebRTC: Created offer
2022/05/27 00:41:07 WebRTC: Set local description
2022/05/27 00:41:12 Offer: {"type":"offer","sdp":"v=0\r\no=- 8344757767766408414 1653612067 IN IP4 [scrubbed]\r\ns=-\r\nt=0 0\r\na=fingerprint:sha-256 07:B3:E5:8A:F4:91:22:25:4C:E4:8F:C0:EF:F3:05:1C:8E:72:8A:60:4E:79:18:C5:7A:52:7A:BD:79:E2:6F:C1\r\na=group:BUNDLE 0\r\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 [scrubbed]\r\na=setup:actpass\r\na=mid:0\r\na=sendrecv\r\na=sctp-port:5000\r\na=ice-ufrag:zLGIWbmOZdWGnHVI\r\na=ice-pwd:mJruWarpiqemHmanJRrtzdcrXziaGsxp\r\na=candidate:1952023002 1 udp 2130706431 [scrubbed] 53922 typ host\r\na=candidate:1952023002 2 udp 2130706431 [scrubbed] 53922 typ host\r\na=candidate:170000163 1 udp 1694498815 [scrubbed] 63454 typ srflx raddr [scrubbed] rport 63454\r\na=candidate:170000163 2 udp 1694498815 [scrubbed] 63454 typ srflx raddr [scrubbed] rport 63454\r\na=end-of-candidates\r\n"}
2022/05/27 00:41:42 error polling probe: http2: timeout awaiting response headers
2022/05/27 00:41:42 NAT type: unknown
2022/05/27 00:41:42 WebRTC: Created offer
2022/05/27 00:41:42 WebRTC: Set local description
2022/05/27 00:41:47 Offer: {"type":"offer","sdp":"v=0\r\no=- 5257956900376912333 1653612102 IN IP4 [scrubbed]\r\ns=-\r\nt=0 0\r\na=fingerprint:sha-256 0A:5B:00:59:1F:FD:F5:4E:40:DF:D4:80:CB:BE:59:35:9E:DF:CB:D5:AF:92:4F:61:86:17:75:FE:4E:72:D6:43\r\na=group:BUNDLE 0\r\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 [scrubbed]\r\na=setup:actpass\r\na=mid:0\r\na=sendrecv\r\na=sctp-port:5000\r\na=ice-ufrag:VHAlBzBCTjVuNPMK\r\na=ice-pwd:UyWRcktAolsfjKqCURXlLbeaqVuPUsyy\r\na=candidate:1952023002 1 udp 2130706431 [scrubbed] 58920 typ host\r\na=candidate:1952023002 2 udp 2130706431 [scrubbed] 58920 typ host\r\na=candidate:170000163 1 udp 1694498815 [scrubbed] 62713 typ srflx raddr [scrubbed] rport 62713\r\na=candidate:170000163 2 udp 1694498815 [scrubbed] 62713 typ srflx raddr [scrubbed] rport 62713\r\na=end-of-candidates\r\n"}
2022/05/27 00:42:17 error polling probe: http2: timeout awaiting response headers
2022/05/27 00:55:30 sdp offer successfully received.
2022/05/27 00:55:30 Generating answer...
2022/05/27 00:55:55 Timed out waiting for client to open data channel.
2022/05/27 01:41:07 In the last 1h0m0s, there are 0 connections. Traffic Relayed ↑ 0 B, ↓ 0 B.
2022/05/27 01:48:09 sdp offer successfully received.
2022/05/27 01:48:09 Generating answer...
2022/05/27 01:48:34 Timed out waiting for client to open data channel.
2022/05/27 01:57:56 sdp offer successfully received.
2022/05/27 01:57:56 Generating answer...
2022/05/27 01:58:21 Timed out waiting for client to open data channel.
2022/05/27 02:13:32 sdp offer successfully received.
2022/05/27 02:13:32 Generating answer...
2022/05/27 02:13:57 Timed out waiting for client to open data channel.
2022/05/27 02:13:58 sdp offer successfully received.
2022/05/27 02:13:58 Generating answer...
2022/05/27 02:14:23 Timed out waiting for client to open data channel.
2022/05/27 02:41:07 In the last 1h0m0s, there are 0 connections. Traffic Relayed ↑ 0 B, ↓ 0 B.
2022/05/27 03:15:00 sdp offer successfully received.
2022/05/27 03:15:00 Generating answer...
2022/05/27 03:15:26 Timed out waiting for client to open data channel.
Normally I’d have seen at least some traffic by this point. Perhaps I should be more patient?
Edited by David Fifield