After boot: start script which do WOL
-
Hi!
I want to do something..
when my pfsense computers power on.. and boots.. everything works.., i wont to do small script which will power on, other computers after pfsense boot..
something like
pfsense_startup.sh
wol mac-my-pcWOL (wake-up-on-lan ringing) works when i do it over web interface, i just want that pfsense do automaticaly do wol for some pc-s (mac address)
can somebody tell me code for that script.. and where i need to put it so it will run automaticaly ?
(sorry on my bad english)
thnx
-
-
-
2 different pc
I think this will be better
wol –host=192.168.1.255 -p 69 00:4F:49:07:0B:5Fmore info on http://ahh.sourceforge.net/wol/wol.html
-
2 different pc
I think this will be better
wol –host=192.168.1.255 -p 69 00:4F:49:07:0B:5Fmore info on http://ahh.sourceforge.net/wol/wol.html
i get it..
but i don't want to power on my whole LAN.. only few PCs.. so i will do just wol for each mac address…thanks again..
edit: and how can I easly create cron to start that script every 30 minutes ? :)
-
but i don't want to power on my whole LAN.. only few PCs.. so i will do just wol for each mac address…
It is to limit it to 1 pfsense nic and pc mac 00:4F:49:07:0B:5F
ee /cf/conf/config.xml (add following lines under <cron>)
<minute>/30</minute>
<hour></hour>
<mday></mday>
<month></month>
<wday>*</wday>
<who>root</who>
<command></command>/usr/local/etc/rc.d/wol_start.sh</cron> -
but i don't want to power on my whole LAN.. only few PCs.. so i will do just wol for each mac address…
It is to limit it to 1 pfsense nic and pc mac 00:4F:49:07:0B:5F
hmm, i don't understand.. how is it limited to send magic packet from one nic ? (192.168.1.255)
thnx for cron…
-
hmm, i don't understand.. how is it limited to send magic packet from one nic ? (192.168.1.255)
I mixed some switches so never mind :)
-
hmm, i don't understand.. how is it limited to send magic packet from one nic ? (192.168.1.255)
I mixed some switches so never mind :)
ok, but now, how can i specify from which my interface magic packet will be sent ?