Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Networking > IP Forwarding/Blocking to a URL.

IP Forwarding/Blocking to a URL.
Thread Tools
Waragainstsleep
Posting Junkie
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Dec 15, 2014, 08:51 AM
 
So I have a customer who accesses a service at a specific URL. They have login credentials but these are stored in their devices and only the boss actually knows what these are.

They would like to restrict access to only the IP address of their office so that people cannot access this URL/site from home or elsewhere.
This cannot be done within the service itself because others share the same server and do not share this requirement.

I am therefore looking for a service which would provide a new URL that forwards traffic to the old one, but only traffic from the authorised IP(s).

Does that make sense? Anyone know of such a service?
I have plenty of more important things to do, if only I could bring myself to do them....
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Dec 16, 2014, 10:53 AM
 
You're talking about a setting on the client computers so that they refuse to connect unless they're on the right IP? That is only ever going to be security by obscurity.

Not knowing the authentication protocol, the idea that occurs to me is to set up a server inside the office that authenticates to the external service and have that server forward incoming connections to the external server. This server could the accept connections on port 54321 or something, and the firewall be set to always block that port. The clients would then not have the login credentials to the external server, but only know how to connect to the server in their office.
The new Mac Pro has up to 30 MB of cache inside the processor itself. That's more than the HD in my first Mac. Somehow I'm still running out of space.
     
Waragainstsleep  (op)
Posting Junkie
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Dec 17, 2014, 06:20 AM
 
It IS security through obscurity yes. I wasn't actually thinking of setting the limits at the client machines though.

The service in question is based on MS Dynamics CRM and runs on port 443. Its just https AFAIK. There might be another protocol in play since its accessed chiefly through the Outlook plugin, but there is a web interface that allows 90% of the same access. Our preference is that users be able to use tablets to access this web interface while on the premises without being able to go home and put the URL into their own devices elsewhere.
While the users don't know their own login credentials, there is one shared account used by the tablets for convenient data capture. This one is a problem as staff will almost certainly need to know the login details for it.

I had been thinking of using an AWS instance running Apache, filtering allowed IPs via htaccess and forwarding requests that come from allowed IP addresses. I"m not sure if this is possible or how practical it is though.
I have plenty of more important things to do, if only I could bring myself to do them....
     
mattyb
Addicted to MacNN
Join Date: Feb 2008
Location: Standing on the shoulders of giants
Status: Offline
Reply With Quote
Dec 17, 2014, 01:20 PM
 
Apache's reverse proxy, used in DMZs all over the world for this sort of thing. LAN connection OK, outside LAN KO.
     
Waragainstsleep  (op)
Posting Junkie
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Dec 17, 2014, 10:46 PM
 
So you think I'd be better off running an Apache instance on a local box? I guess I could do that. There is a Mac Mini Server just sharing files.
I have plenty of more important things to do, if only I could bring myself to do them....
     
mattyb
Addicted to MacNN
Join Date: Feb 2008
Location: Standing on the shoulders of giants
Status: Offline
Reply With Quote
Dec 18, 2014, 08:39 AM
 
The reverse proxy solution is well used, afaik well supported and if the dicks that I know installed it can do it, anyone can. For info, it was managed by the web team not a network team.
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Dec 18, 2014, 09:21 AM
 
How about a firewall rule? I believe you can do this using iptables, for instance
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:26 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,