ABE gets confused with hostnames that resolve to the WAN IP

Bug reports and enhancement requests
Post Reply
roothorick
Posts: 7
Joined: Fri Mar 13, 2015 4:44 pm

ABE gets confused with hostnames that resolve to the WAN IP

Post by roothorick »

Suppose home.example.com resolves to the WAN IP, and a web server on your router/server/etc. serves pages with links to "home.example.com". The already-loaded page is considered local. However, the links to home.example.com i.e. back to the same site are NOT considered local. This creates an odd situation where ABE prevents your router from linking back to itself.

A quick fix would be, if the current URL's hostname resolves to a local IP, then that hostname is assumed to resolve to the same local IP i.e. is automatically local, even though the link IP isn't explicitly "known".
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: ABE gets confused with hostnames that resolve to the WAN

Post by barbaz »

Workaround: about:config > add it to noscript.ABE.localExtras
*Always* check the changelogs BEFORE updating that important software!
-
roothorick
Posts: 7
Joined: Fri Mar 13, 2015 4:44 pm

Re: ABE gets confused with hostnames that resolve to the WAN

Post by roothorick »

That setting is broken for me -- it stops all traffic.

The real workaround for me was to add the server's hostname to the system rule.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: ABE gets confused with hostnames that resolve to the WAN

Post by barbaz »

That works too, but the fact adding it to localExtras blocks your ability to load it at all would seem to indicates that you're accessing it from something that's not LOCAL or browser's chrome. Unless you're running into a bug.
How are you accessing it?
Please post the message you get in the Browser Console (Ctrl-Shift-J) when the addition to localExtras doesn't work. If it trips the spam filter you can send it to me by PM. (We don't need your WAN IP, the exact real domain name, or any other than the first octet of any private subnet IPs, but we do need to know what each IP/domain in the message is. So feel free to censor those details accordingly if you so desire.)

May or may not be relevant, but does a DNS lookup of the home.example.com in your case show anything other than your WAN IP and possibly private subnets?
*Always* check the changelogs BEFORE updating that important software!
-
roothorick
Posts: 7
Joined: Fri Mar 13, 2015 4:44 pm

Re: ABE gets confused with hostnames that resolve to the WAN

Post by roothorick »

barbaz wrote:That works too, but the fact adding it to localExtras blocks your ability to load it at all would seem to indicates that you're accessing it from something that's not LOCAL or browser's chrome. Unless you're running into a bug.
How are you accessing it?
Adding it to localExtras prevents me from loading anything. Even, say, Google.

I reach the site simply by manually typing the URL, i.e. https://home.example.com/folder/
Please post the message you get in the Browser Console (Ctrl-Shift-J) when the addition to localExtras doesn't work. If it trips the spam filter you can send it to me by PM. (We don't need your WAN IP, the exact real domain name, or any other than the first octet of any private subnet IPs, but we do need to know what each IP/domain in the message is. So feel free to censor those details accordingly if you so desire.)
This is all that shows up in the console:

Code: Select all

ReferenceError: ALL_BUILTIN_ITEMS is not defined BrowserUITelemetry.jsm:452:0
lpmanuallogins.length is 1
Doesn't look very useful to me.
May or may not be relevant, but does a DNS lookup of the home.example.com in your case show anything other than your WAN IP and possibly private subnets?
It only returns the WAN IP, and I just verified the returned IP is correct.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: ABE gets confused with hostnames that resolve to the WAN

Post by barbaz »

roothorick wrote:Adding it to localExtras prevents me from loading anything. Even, say, Google.
Oh wow, that is definitely a serious bug (and I can confirm it in Firefox 36.0.1 and SeaMonkey 2.32.1 FWIW). "Firefox can't find the server at [anything]".
Thank you for reporting that.

Regarding the original WAN IP domain name issue, it sounds likely another bug but it's possible the ability to reproduce it depends on factors to do with your specific network setup...

@Giorgio?
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply