klettervirus
Posts: 5
Joined: Fri Sep 01, 2017 5:48 pm

Use Pi to use intenetconnection at home from work

Sun Oct 08, 2017 10:37 am

Sorry if my question is trivial or stupid, I am missing the right network-related vocabulary to make use of google. So maybe you can give me a head start about where to look.

Here is what I like to accomplish: I want a pi in my home network, that can be reached from the "internet" at work. There access to webmailers is blocked, so I thought I can use the pi to tunnel requests from work to gmx and back for example.

Is that possible, what software would I use and is it possible to make it "sort of" secure, knowing that absolute security does not exist?

Any idea is welcome, thank you for your time and patience, Stefan

User avatar
rpdom
Posts: 11716
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: Use Pi to use intenetconnection at home from work

Sun Oct 08, 2017 10:44 am

What you're probably looking for is a VPN (Virtual Private Network) where you can tunnel out to your home network. OpenVPN is one bit of software that does this. I use that for accessing the work private network from home, or my home private network from work. It takes a bit of setting up, but there are many tutorials out there (make sure they are recent ones, much information is out of date).

I also use tinc for a VPN, but that's a bit more specialised.

User avatar
DougieLawson
Posts: 30174
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Use Pi to use intenetconnection at home from work

Sun Oct 08, 2017 10:45 am

OpenVPN does that stuff. Or if it's just screen sharing the RealVNC allows you to access your RPi remotely.

But, watch out as you may be violating your companies acceptable use policy and that could get you a P45 and a chance to look for a new job.

It may be better to get a MiFi cell phone dongle and use that to access the public internet for your personal use.

My wife's http://www.three.co.uk/Store/Mobile_Broadband that I've "borrowed" (permanently) is the most useful thing I've got in my collection of tools and stuff in my laptop rucksack.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

klettervirus
Posts: 5
Joined: Fri Sep 01, 2017 5:48 pm

Re: Use Pi to use intenetconnection at home from work

Sun Oct 08, 2017 11:17 am

Awesome, that helps me hetting started. As for the legal issues, I am aware of those, will ask my boss first :lol:
Thank you very much!

HiroProtagonist
Posts: 210
Joined: Sat Jun 29, 2013 9:45 am

Re: Use Pi to use intenetconnection at home from work

Thu Oct 12, 2017 4:15 am

klettervirus wrote:
Sun Oct 08, 2017 10:37 am
Here is what I like to accomplish: I want a pi in my home network, that can be reached from the "internet" at work. There access to webmailers is blocked, so I thought I can use the pi to tunnel requests from work to gmx and back for example.

Is that possible, what software would I use and is it possible to make it "sort of" secure, knowing that absolute security does not exist?
You can do this by installing an http proxy [such as squid] on your pi, & setting up your home router port forwarding to forward to the ssh port on the pi. If your router provides the option, forward a different incoming port to the ssh port on the pi.

Once you can ssh into your pi from work, you can use ssh port fowarding to forward a local port on your work machine to the proxy port on your pi, then you just configure your browser to use the locally forwarded port as the http proxy. This will be securely forwarded to your pi.

Much simpler to achieve if your work machine runs linux. Should also be possible on other OSes with varying levels of pain.
You'll need a way to get to your home IP from work - dynamic dns will help there.
Outgoing ssh could also be firewalled at your workplace.

Return to “Networking and servers”

Who is online

Users browsing this forum: No registered users and 13 guests