Hello, how could a script design with the following parameters:
wakeup a PC and then RDP on it. The latter is not a problem but I don’t know how to do the wakeup. Which parameters would I have to take to get to the wakeonlan menu of the ipfire without assigning admin rights or is there a tool that I can integrate into the openvpn?
run the command /usr/local/bin/launch-ether-wake $M $I
where $M is the mac address of the computer to be woken and $I is the interface name for the network that the computer is connected to - green0 for the green network.
This is the same as pressing the lightbulb on the Wake On Lan page.
The way I do it is to login to the Openvpn tunnel with my road warrior notebook, which connects me to the green network and then open a browser on the laptop and access the IPfire WUI and start the computer on the Wake On Lan page.
If you have to do it via Openvpn then it is not on the client but the server that you would need to create a script that will run when you start the Openvpn tunnel from your road warrior laptop. I am not sure where that script should be placed but Erik Kapfer (@ummeegge) is very knowledgeable on Openvpn and should be able to help on that. That script would then be called when the Openvpn tunnel is started.
Thanks to everyone for the tips. My idea is to make the dial-in including Start RDP as easy as possible. So far there was only dial-in with VPN and drive transfer, but there are applications where the VPN connection is simply too slow and RDP is better there. Letting the machines run through at work is not an option and wakeonlan then requires another program for those users who work exclusively with Windows. Well I hope I get some tips implemented, thanks again to everyone
Hi,
as far as i understand you correct, you want only to RDP into your machine without OpenVPN cause it is too slow ? If so i would strongly advice you to not do it like this. Without a reliable encryption you serve your security on a silver platter for someone else.
If you can SSH to IPFire there is no need for another program since IPFire provides then Wakeonlan and you simply execute it from remote…
nein, ich mache grundsätzlich erst openvpn und danach RDP.
Das Ziel wäre dies: openvpn->wol->rdp
alles in einer cmd die ich aus openvpn aufrufen kann
ssh ist zu kompliziert für normal user
geht das nicht mache ich auf keinen Fall rdp ohne openvpn
no, I basically do openvpn first and then RDP.
The goal would be this: openvpn-> wol-> rdp
everything in a cmd that I can call from openvpn
ssh is too complicated for normal users
that doesn’t work, I definitely don’t do rdp without openvpn
Have seen this is a long term DP --> Openvpn->wol auto .
OK, a script should include all logic (knowledge) so there should be no further complications there for the users but OK, another downside might be that SSH access to the machine implies also root access. Creating another user with a lowered privileged etherwake might be an idea.
But the complication is then on your side to set it up.