rails and vpn

151 views
Skip to first unread message

oto iashvili

unread,
Jul 21, 2013, 6:03:21 PM7/21/13
to rubyonra...@googlegroups.com
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

Simon Macneall

unread,
Jul 21, 2013, 6:08:29 PM7/21/13
to rubyonra...@googlegroups.com
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

Norbert Melzer

unread,
Jul 22, 2013, 12:21:46 AM7/22/13
to Rails Mailinglist

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.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/op.w0leggncrqdk4p%40administrators-macbook-pro.local.
For more options, visit https://groups.google.com/groups/opt_out.


Reply all
Reply to author
Forward
0 new messages