lantern icon indicating copy to clipboard operation
lantern copied to clipboard

Sometimes my port mapped Lantern flashlight server gets registered with a port of 0

Open oxtoacart opened this issue 12 years ago • 5 comments

I've seen this happen a few times now. When it happens, the Fastly configuration fails to apply because 0 is an invalid port.

screen shot 2014-06-26 at 10 24 49 am

oxtoacart avatar Jun 26 '14 15:06 oxtoacart

The zero is being reported by the client:

6380   2014-06-26 10:22:56,906 DEBUG [NAT-PMP-Mapping-Thread] pt.FlashlightServerManager.onEnter (FlashlightServerManager.java:200) - I'm port mapped at 66.69.242.177:58934<->0

oxtoacart avatar Jun 26 '14 15:06 oxtoacart

Well, I haven't figured out how to avoid getting a 0 port, but I updated the client not to use mappings with invalid ports (<=0 or > 65535) and also updated peerdnsreg to not accept registrations with invalid ports. That at least keeps this from breaking our Fastly configuration, so this issue becomes a little less urgent.

oxtoacart avatar Jun 26 '14 19:06 oxtoacart

Lets keep this open for a bit, as it's possible a 0 indicates some error case we're not properly accounting for from either UPnP or NAT-PMP.

On Thursday, June 26, 2014, oxtoacart [email protected] wrote:

Well, I haven't figured out how to avoid getting a 0 port, but I updated the client not to use mappings with invalid ports (<=0 or > 65535) and also updated peerdnsreg to not accept registrations with invalid ports. That at least keeps this from breaking our Fastly configuration, so this issue becomes a little less urgent.

— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1628#issuecomment-47265688.

Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89

myleshorton avatar Jul 01 '14 15:07 myleshorton

@myleshorton @oxtoacart safe to close this now?

scouttle avatar Sep 04 '14 21:09 scouttle

Yes, closing.

oxtoacart avatar Sep 04 '14 23:09 oxtoacart