Only access to certain IP ranges

User avatar
ErikJan
BronzeLounger
Posts: 1265
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Only access to certain IP ranges

Post by ErikJan »

I would like to configure Firefox (older version which I don't want to update for certain reasons) to have access ONLY to a few pre-set IP-address ranges.

Can this be done? How?

User avatar
HansV
Administrator
Posts: 78667
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Only access to certain IP ranges

Post by HansV »

Perhaps the following:
- Select Tools > Options...
- Click Advanced.
- Activate the Network tab.
- Click Settings...
- Select 'Manual proxy configuration'.
- Set the HTTP proxy to 127.0.0.1. This is your own computer, so it will effectively block all internet access.
- Enter the ranges you want to allow in the 'No proxy for' box (remove 127.0.0.1 from this box).

Use CIDR notation for the IP ranges. For example, to allow all IP addresses beginning with 12.116.48, enter 12.116.48.0/24 - this specifies that the first 24 bits = 3 bytes are fixed, while the remaining 8 bits = 1 byte can be anything.

To lock down Firefox settings, see Locking preferences.
Best wishes,
Hans

User avatar
ErikJan
BronzeLounger
Posts: 1265
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Only access to certain IP ranges

Post by ErikJan »

Doesn't appear to work... The range I included works but others still do too.

Is this what you meant?
2015-05-22 15_48_48-Connection Settings.png
You do not have the required permissions to view the files attached to this post.

User avatar
StuartR
Administrator
Posts: 12633
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Only access to certain IP ranges

Post by StuartR »

That's strange. Can you try changing the Port number for the proxy from 0 to another number, for example 80
StuartR


User avatar
HansV
Administrator
Posts: 78667
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Only access to certain IP ranges

Post by HansV »

Yes, that's what I meant, but if it doesn't work, I cannot offer further help. Sorry.
Best wishes,
Hans

User avatar
ErikJan
BronzeLounger
Posts: 1265
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Only access to certain IP ranges

Post by ErikJan »

Tried that... no difference...

User avatar
Claude
cheese lizard
Posts: 6241
Joined: 16 Jan 2010, 00:14
Location: Sydney Australia

Re: Only access to certain IP ranges

Post by Claude »

Depending on what modem you have, you may be able to setup the restrictions in the modem.
Cheers, Claude.

User avatar
StuartR
Administrator
Posts: 12633
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Only access to certain IP ranges

Post by StuartR »

I just tested this Firefox setting on my PC (Windows 7, Firefox 28.0.1) and it works as expected. Please go back and double check the settings as this makes little sense.
StuartR


User avatar
ErikJan
BronzeLounger
Posts: 1265
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Only access to certain IP ranges

Post by ErikJan »

Claude wrote:Depending on what modem you have, you may be able to setup the restrictions in the modem.
I'm trying this @ work... there's no modems there ;-)

User avatar
Claude
cheese lizard
Posts: 6241
Joined: 16 Jan 2010, 00:14
Location: Sydney Australia

Re: Only access to certain IP ranges

Post by Claude »

I see, that's complicated the situation ;(
Cheers, Claude.

User avatar
ErikJan
BronzeLounger
Posts: 1265
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Only access to certain IP ranges

Post by ErikJan »

StuartR wrote:I just tested this Firefox setting on my PC (Windows 7, Firefox 28.0.1) and it works as expected. Please go back and double check the settings as this makes little sense.
For certain reasons I have to use an older version of FireFox. To make the process easy, I was also trying to use an approach where no install would be required and where I could pre-set certain conditions (like the IP address ranges). I did find a portable FireFox install set here http://portableapps.com/firefoxportable and that one uses FireFox 3.6.6...
Maybe that could be the reason why I cannot make this work?

User avatar
ErikJan
BronzeLounger
Posts: 1265
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Only access to certain IP ranges

Post by ErikJan »

StuartR wrote:I just tested this Firefox setting on my PC (Windows 7, Firefox 28.0.1) and it works as expected. Please go back and double check the settings as this makes little sense.
I tested this with v28 but also there it does not seem to work...
2015-05-26 09_00_35-Clipboard.png
Let's suppose my IP address was 123.456.789.123, then I'd enter in the "No Proxy for" box: 123.456.0.0/16 right?
So if I would then try to access 124.111.222.333 I should NOT be able to do that, correct? Because in my case I DO have access there!
You do not have the required permissions to view the files attached to this post.

User avatar
jonwallace
5StarLounger
Posts: 1120
Joined: 26 Jan 2010, 11:32
Location: "What a mighty long bridge to such a mighty little old town"

Re: Only access to certain IP ranges

Post by jonwallace »

Disclaimer: I don't really know what I'm talking about.

But do you need to check the box marked "Use this proxy server for all protocols"?
John

“Always trust a microbiologist because they have the best chance of predicting when the world will end”
― Teddie O. Rahube

User avatar
StuartR
Administrator
Posts: 12633
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Only access to certain IP ranges

Post by StuartR »

ErikJan wrote:...
Let's suppose my IP address was 123.456.789.123, then I'd enter in the "No Proxy for" box: 123.456.0.0/16 right?
So if I would then try to access 124.111.222.333 I should NOT be able to do that, correct? Because in my case I DO have access there!
Try with absolutely nothing in the "No proxy for:" box first to see what that does.
It might be confused because 127.0.0.1 is your local PC, it leads to the same place as 123.456.789.123
jonwallace wrote:...do you need to check the box marked "Use this proxy server for all protocols"?
This won't affect the ability to access web sites, it is for other protocols, not http
StuartR


User avatar
ErikJan
BronzeLounger
Posts: 1265
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Only access to certain IP ranges

Post by ErikJan »

You are right, if I leave the "No Proxy For" box empty, I still can access everything... Now what?

User avatar
StuartR
Administrator
Posts: 12633
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Only access to certain IP ranges

Post by StuartR »

This makes no sense to me. That proxy setting should prevent any web browser access from working as your PC should send all web requests to the local PC instead of to the internet.
StuartR


User avatar
ErikJan
BronzeLounger
Posts: 1265
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Only access to certain IP ranges

Post by ErikJan »

127.0.0.1 as Proxy and the rest empty still allows me to go anywhere... e.g. google.com. What are we missing?

User avatar
StuartR
Administrator
Posts: 12633
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Only access to certain IP ranges

Post by StuartR »

Sorry, this is beyond me. When I configure Firefox 38.0.1 like this then I can't access any web sites...
Proxy Settings.jpg
My only remaining suggestions are that you install the latest version of Firefox, or you try a different browser.
You do not have the required permissions to view the files attached to this post.
StuartR