SamPhoenix
Posts: 6
Joined: Wed Feb 03, 2016 11:35 pm

Send a WOL packet and access network(LAN) files

Wed Feb 03, 2016 11:48 pm

I want to type my Raspberry Pi IP into my web browser, to make my RPi send a WOL packet to my computer, and then it re-direct me to an FTP service, where I will also be able to access the files on the network (so, can access my computer files.) when I am not at home.

This is so I can access any files I need, without having to leave my computer running 24/7, only my RPi.

Does anyone have any ideas on how to do this?

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Send a WOL packet and access network(LAN) files

Thu Feb 04, 2016 9:44 am

Do not do this. There is no sensible way to have an FTP server that's open to the public internet.

Either go with OpenVPN or OpenSSL. With OpenVPN you can have full secure access to your whole home LAN from any remote location. With OpenSSL (aka sshd which is already running) you can use FileZilla from anywhere in the world to access files on your Raspberry. To get those things open to the internet needs a couple of ports forwarded in your router.

Generating WoL packets is trivial, there's a wakeonlan program that can be installed with apt-get.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

n3tm4n
Posts: 29
Joined: Tue Jun 10, 2014 11:34 am
Location: East Midlands, UK
Contact: Website

Re: Send a WOL packet and access network(LAN) files

Thu Feb 04, 2016 10:14 am

I concur regarding access, either hide it behind a VPN server of some sorts, at the very least use SSH tunnels to get home. I would recommend configuring the SSH server on a high non standard port of such. You can of course, still use FTP just do it through the SSH tunnel so there is encryption and some additional security around it.

On the Wake On Lan side of things, if you go via either the VPN or SSH tunnel route you can then look at some cmd line tool to start your main computer up remotely, but it will be initiated from the local net.

HTH - Jon.
http://0x25.blogspot.co.uk/

SamPhoenix
Posts: 6
Joined: Wed Feb 03, 2016 11:35 pm

Re: Send a WOL packet and access network(LAN) files

Thu Feb 04, 2016 7:57 pm

DougieLawson wrote:Do not do this. There is no sensible way to have an FTP server that's open to the public internet.

Either go with OpenVPN or OpenSSL. With OpenVPN you can have full secure access to your whole home LAN from any remote location. With OpenSSL (aka sshd which is already running) you can use FileZilla from anywhere in the world to access files on your Raspberry. To get those things open to the internet needs a couple of ports forwarded in your router.

Generating WoL packets is trivial, there's a wakeonlan program that can be installed with apt-get.
How would I go about setting up OpenVPN? I have tried following some tutorials, but I cannot find an up-to-date one (or something went wrong with the install)

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Send a WOL packet and access network(LAN) files

Thu Feb 04, 2016 9:15 pm

There's a video on the BBC that shows you how.
http://www.bbc.co.uk/news/technology-33548728

I also wrote some words on it when I worked for IBM.
https://www.ibm.com/developerworks/comm ... v6?lang=en

FTP is the most insecure protocol, it's the vector that has been used more often than SQL injection to steal data. There was even a case where Logica and a Swedish bank lost some critical customer's data through a hole in FTP (running on a mainframe).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Networking and servers”