Forum: Ruby on Rails rails and vpn

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4b991e6bc2c354df945713544f637f63?d=identicon&s=25 oto iashvili (Guest)
on 2013-07-22 00:05
(Received via mailing list)
Hi,
I have a page on my rails website that should be accessible only via a
vpn
connection between my server and another one. Is it possible to check on
controller this ?

thanks
41cc2c53544016a86472343ab3fdc0ff?d=identicon&s=25 Simon Macneall (Guest)
on 2013-07-22 00:09
(Received via mailing list)
Hi,

I'd assume that the vpn has a specific IP address? I'd just check for
that
address in the request and if it's not from that address, send it to an
error/instruction page.

Simon

On Mon, 22 Jul 2013 06:03:21 +0800, oto iashvili
1a4ff0766a653c62e0dab34bacda9873?d=identicon&s=25 Norbert Melzer (Guest)
on 2013-07-22 06:23
(Received via mailing list)
Why not bind the server only to the VPNs specific address?

This way you don't need to change source code every time something
changes
in the VPN.
Am 22.07.2013 00:08 schrieb "Simon Macneall" <macneall@gmail.com>:
This topic is locked and can not be replied to.