Need Wake on LAN help or Alternative Solution
-
I was able to setup SSH using Termius on my iphone6 and puttygen to create the keys.
I am not sure if it is a configuration error but I can log into pfsense console but not the webgui from my iphone.
Given this I do not see how I can send a WOL packet to my pc.
Please forgive my ignorance but is it possible to ssh into the webgui or just the console?
If just the console, how do I send the WOL packet to my pc?
-
Set up a VPN on your pfSense router then do it from the web browser or via SSH.
You'll also need the VPN to access your plex server unless you port forward to it.
https://www.netgate.com/docs/pfsense/vpn/ipsec/configuring-an-ipsec-remote-access-mobile-vpn-using-ikev2-with-eap-mschapv2.html
[2.4.3-RELEASE][admin@pfsense]/root: /usr/local/bin/wol --help Usage: /usr/local/bin/wol [OPTION] ... MAC-ADDRESS ... Wake On LAN client - wakes up magic packet compliant machines. --help display this help and exit -V, --version output version information and exit -v, --verbose verbose output -w, --wait=NUM wait NUM millisecs after sending -h, --host=HOST broadcast to this IP address or hostname -i, --ipaddr=HOST same as --host -p, --port=NUM broadcast to this UDP port -f, --file=FILE read addresses from file FILE ("-" reads from stdin) --passwd[=PASS] send SecureON password PASS (if no PASS is given, you will be prompted for the password) Each MAC-ADDRESS is written as x:x:x:x:x:x, where x is a hexadecimal number between 0 and ff which represents one byte of the address, which is in network byte order (big endian). PASS is written as x-x-x-x-x-x, where x is a hexadecimal number between 0 and ff which represents one byte of the password. Report bugs to <krennwallner@aon.at> [2.4.3-RELEASE][admin@pfsense]/root: /usr/local/bin/wol -i 172.16.2.21 a8:20:66:10:fc:b7 Waking up a8:20:66:10:fc:b7... [2.4.3-RELEASE][admin@pfsense]/root:
-
@tagit446 said in Need Wake on LAN help or Alternative Solution:
Also, is it possible to SSH in to pfsense using an iphone 6? If not I could use my laptop.
Prompt from the Apple store will do it, but if you set up a VPN you could just connect via https.
-
@nogbadthebad said in Need Wake on LAN help or Alternative Solution:
Prompt from the Apple store will do it, but if you set up a VPN you could just connect via https.
Why VPN or HTTPS, when SSH is all that's needed. PfSense already has SSH availalble. All he needs is a SSH client to connect to the fireall, a rule to let him in and then just issue the WOL command.
-
The IP address where he’s connecting from may change, not all ISPs supply a fixed IP address.
Also if you don’t create a VPN that suggests that ssh and the service Plex is using is available on the WAN interface.
VPN is more secure.
It’s not just WOL that’s required even if that’s all that was asked by the OP.
-
- the address he's connecting from should be irrelevant. I often use SSH from various elsewhere.
- SSH is already available, without having to do anything else. It's built into the FreeBSD that pfSense is based on.
- All he has to do on pfSense is create a rule that lets it in. I currently have NAT set up to allow access to my main computer, but it could just as easily be set up to allow connection to pfSense.
- You can configure SSH to use a private/public key pair for security, which is a lot harder to break than a password. Security would be similar to a VPN or HTTPS
- All he needs to add is a SSH client. Linux comes with one and Windows users can use Putty. There are also SSH clients for Android and probably iOS. Given that MAC OS is also BSD based, it would have a built in client too.
Once he's at the command prompt, he simply issues the WOL command, though it's also possible to use SSH to connect and enter the command in one operation. SSH is by far the easiest operation, unless he already has a VPN available. In that case, simply run SSH through the tunnel and forget about the rule to allow it in from the Internet.
-
Yes but he’s not going to be able to view his his plex content is he!
It’s the address he’s connecting from that’s the issue.
-
@nogbadthebad said in Need Wake on LAN help or Alternative Solution:
Yes but he’s not going to be able to view his his plex content is he!
It’s the address he’s connecting from that’s the issue.
His question was about WOL, that is remotely starting a computer. Whatever happens after that is another matter.
-
Hi JKnott & NoBadTheBad, thank you both for all of the info.
Sounds like there is a few different ways to go about this from your comments and I have to admit I am a bit confused on which would be the best way to go.
Let me try to clear up a few things from my end.
I do use PPPoE for my internet and yes from time to time my IP does change.
I do have a VPN account with ExpressVPN and used them to setup OpenVPN on my firewall.
I do have a dynamic DNS account with afraid.org (FreeDNS) but don't have it setup. I thought I might need it since my public IP can change.
After Jknott's first reply I did set up SSH using a private/public key and put an SSH client on my iPhone (Termius). I can access the pfsense console locally from the iphone but not the webGUI.
I still want to explore each of your solutions so maybe we can work through each one. I do need a working solution but I also would like to learn how to do each and then decide on what works best for me.
Concerning SSH, since I got this set up lets start there.
- How do I SSH into the webGUI or is it not possible?
- What URL do I use to access remotely from someone else's network, would it be my public IP?
- If i cannot SSH into the webGUI, how do I issue a WOL command from the console?
-
@tagit446 said in Need Wake on LAN help or Alternative Solution:
How do I SSH into the webGUI or is it not possible?
Depends on the operating system. On Linux and other Unix based OSs, very easy. You can use the ssh -X command to run a graphical interface app. Others, I couldn't say.
-
@jknott said in Need Wake on LAN help or Alternative Solution:
@tagit446 said in Need Wake on LAN help or Alternative Solution:
How do I SSH into the webGUI or is it not possible?
Depends on the operating system. On Linux and other Unix based OSs, very easy. You can use the ssh -X command to run a graphical interface app. Others, I couldn't say.
I would be SSHing ing from either IOS 11 on an iPhone or from a windows 10 home laptop.
-
I would definitely setup a VPN here. Why would you not do that if you can? I use it all the time just for tunneling my traffic if I'm on some untrusted network somewhere.
SSH is always useful, especially if you setup an SSH proxy. Never tried that from iOS though.
Why not both?
Steve
-
Have you thought how your going to access your plex content?
-
@tagit446 This thing is oftenly referred to as WOW (Wake on WAN) if u need to Google it.
I just did it the "easy" way, port forward port 7 (if I recall correctly, not at home at the moment), I also forgot whether I port forwarded to the actual mask, or the broadcast mask (255.255.255.255), try both see which one works. Only caveat is, anybody can wake your box, but so what? let them, they can't do anything else, unless you let them right.
Now this is only the wake portion. How you actually access your box is a separate deal.
-
Ok, so i'm still exploring everything that has been said but want to ask if the following would work.
First, as I mentioned before, I have a VPN account with ExpressVPN. Currently I am using OpenVPN via ExpressVPN setup on my entire pfsense network except for the PC in which my Plex Server is setup on. When I connect to the internet with this PC it goes through my ISP instead of the VPN. According to the remote access settings in Plex I should be able to access Plex remotely from out side of my network but I have not been able to verify it yet.
With that said, I also have a app from ExpressVPN installed on my iPhone so that I can tunnel my phone internet traffic through ExpressVPN regardless of who's internet I am using. I also have now setup Dynamic DNS on pfSense. So is this as simple as....
- When using someone else's network, start my VPN app.
- Connect to my pfSense firewall by going to the URL I got from Dynamic DNS host? For example, would going to http://mychoosenName.mooo.com take me to my pfsense's webgui login?
- In pfSense, Send WOL to my Plex Server/PC.
If what I am asking could be working solution, is there anything else I would need to configure in pfSense to make this work or any security issues I should be aware of?
Kinda sucks I need to travel somewhere and use someone else's network to test if it would work or not.
-
"Kinda sucks I need to travel somewhere and use someone else's network to test if it would work or not."
No you do not. U maybe able to use your smart phone cellular network...
SmartPhone -> cellular -> Internet -> YourISP -> YourBroadbandWAN.
-
@sammywoo said in Need Wake on LAN help or Alternative Solution:
"Kinda sucks I need to travel somewhere and use someone else's network to test if it would work or not."
No you do not. U maybe able to use your smart phone cellular network...
SmartPhone -> cellular -> Internet -> YourISP -> YourBroadbandWAN.
Palm to face.. you are absolutely right lol. I've had my iPhone for 4 years and in that time I have never turned on the data as it has only one gig shared between myself and my wife's phone. Just always connected it to wifi and didn't give the cellular data a thought. I swear, sometimes I do a good job at embarrassing myself...
-
stephenw10 Netgate Administratorlast edited by stephenw10 Jul 2, 2018, 12:27 PM Jul 2, 2018, 12:26 PM
Rather than connecting to ExpressVPN from your phone/laptop and then coming back into your pfSense box outside the tunnel it would be better to setup a VPN server on the pfSense box itself and just connect directly to it.
Shorter route. Less (or no) NAT. End to end inside the VPN.
You would then connect to your plex server as though you're local. No need to port froward anything to it opening potential security holes.
Steve
-
@tagit446 said in Need Wake on LAN help or Alternative Solution:
Kinda sucks I need to travel somewhere and use someone else’s network to test if it would work or not.
What sort of Internet connection do you have? I have a cable modem with 2 ports. I normally just use one of them to connect my firewall, but I occasionally use the 2nd for testing. Of course, as someone else mentioned, you can tether to your cell phone.
-
@stephenw10 said in Need Wake on LAN help or Alternative Solution:
Rather than connecting to ExpressVPN from your phone/laptop and then coming back into your pfSense box outside the tunnel it would be better to setup a VPN server on the pfSense box itself and just connect directly to it.
Shorter route. Less (or no) NAT. End to end inside the VPN.
You would then connect to your plex server as though you're local. No need to port froward anything to it opening potential security holes.
Steve
I just set this up following a Lawrence Systems video (https://www.youtube.com/watch?v=7rQ-Tgt3L18) .
In the VPN > OpenVPN > Servers > Tunnel Settings it allowed me to add my LAN1 network which is where my Plex server resides. I tested the connection locally from my iphone to my plex server and it works. I haven't tried it remotely using my iphone's cellular data due to poor connection signal at the moment. Cellular is poor at home and only works sometimes.
So I am wondering, will this connection let me access the pfsense webGUI by default or would I need to edit the setting to allow this. I only need remote access to the pfsense webGUI to issue the WOL to the plex server. If I need to edit the settings, what exactly would I need to do?
I am also wondering if my public IP was to change, would it effect the VPN connection?
If it would effect the connection, I do have a Dynamic DNS account setup but I am unsure how I would make it work with the VPN.
@jknott said in Need Wake on LAN help or Alternative Solution:
@tagit446 said in Need Wake on LAN help or Alternative Solution:
Kinda sucks I need to travel somewhere and use someone else’s network to test if it would work or not.
What sort of Internet connection do you have? I have a cable modem with 2 ports. I normally just use one of them to connect my firewall, but I occasionally use the 2nd for testing. Of course, as someone else mentioned, you can tether to your cell phone.
ADSL+, ISP > 4 port DSL Modem > pfSense > Local network with 2 unmanaged switches & 1 WiFi access point.