G+_Ben Yanke Posted August 19, 2015 Share Posted August 19, 2015 I'd like to set up 2 Raspberry Pi's as a personal; VPN tunnel set. One lives at home, the other is a portable router I can take anywhere which automatically creates a VPN tunnel to the one at home and puts my traffic over VPN, with the idea being that the portable one would be almost plug and play, so I can take it with me and both protect my traffic and access my network resources. Is that crazy or doable? Link to comment Share on other sites More sharing options...
G+_Ben Tyger Posted August 19, 2015 Share Posted August 19, 2015 Not crazy at all. Basically you want to setup the RPi as a NAT Router that auto connects to a VPN server after the 'WAN' port connects. I'd look at OpenVPN as a VPN type. The biggest issue it see dealing with free wifi connections that require you to accept their TOS before you are really connected. Also you have to make sure you select at least one wireless NIC that supports AP mode well. Finding out which ones support AP mode in Linux well can be time consuming. You'll probably need two WIFI NICs. One for your LAN and one to be the client WIFI to the upstream if you only have. Link to comment Share on other sites More sharing options...
G+_Ben Yanke Posted August 19, 2015 Author Share Posted August 19, 2015 Good thoughts. I suppose to get around the TOS things, I could put a physical switch on the RP, which disables the VPN auto connect and basically acts like a pass through, allowing me to do TOS acceptance, then I flip the switch and the VPN goes. Or perhaps I could even automate it...if VPN can't connect and WiFi is, light an LED and turn on pass through mode Link to comment Share on other sites More sharing options...
G+_Eddie Foy Posted August 19, 2015 Share Posted August 19, 2015 I'm wondering why? Connecting more then one device? Why the extra complexity? A VPN client on the laptop/mobile device that connects to the home VPN server should work fine. And if you do the dual wifi adapters in the Pi, use one on a cable and have at least a foot of separation (its an RF thingy you want at least a full wavelength of separation ) Also make sure the adapter can do AP mode (master mode?) Could also use a x-over cable and the ethernet port on the Pi for your laptop, then out via wifi. Link to comment Share on other sites More sharing options...
G+_Ben Yanke Posted August 19, 2015 Author Share Posted August 19, 2015 A number of reasons: -Because I've been looking really badly for an excuse to finally buy a pi and learn how to use it :) -Multiple devices (tablet, laptop, phone...) -Sometimes wanting to connect with other people's devices, like a friend's laptop I'd probably use the ethernet port on the pi for either the LAN or WAN connection most of the time, but the dual-wifi is a nice thing to have available. Link to comment Share on other sites More sharing options...
G+_Eddie Foy Posted August 19, 2015 Share Posted August 19, 2015 A WiFi Pineapple is what I'd use. Plus it has some fun features. Link to comment Share on other sites More sharing options...
G+_Ben Tyger Posted August 19, 2015 Share Posted August 19, 2015 Eddie Foy? why use an RPi? Security. Not all devices and can do VPNs easily. Also trying to manage multiple VPN clients can be a pain. Having a nice single securing device is handy especially when traveling. The user may need the Ethernet port for the upstream. Also not every device has an Ethernet port either to connect with. I also I agree with Eddie Foy?. Make sure you have some space between your wifi adapters or you'll have interference issues. Link to comment Share on other sites More sharing options...
G+_Dave Hart Posted August 21, 2015 Share Posted August 21, 2015 Sounds like a good topic for KnowHow. I'd be interested in the final design / configuration. Link to comment Share on other sites More sharing options...
G+_Ben Yanke Posted August 21, 2015 Author Share Posted August 21, 2015 Dave Hart , As I (slowly) work on this project, I plan to post results (and questions!). Perhaps if Fr. Robert Ballecer, SJ ever wanted to show it on the show, I wouldn't be against it :) Link to comment Share on other sites More sharing options...
G+_Ben Tyger Posted August 21, 2015 Share Posted August 21, 2015 I'm currently doing something similar to this. I'm using an RPi to be a wired to wireless level 2 bridge. Link to comment Share on other sites More sharing options...
Recommended Posts