PDA

Bekijk de volledige versie : Wake-on-LAN



mr_prof
21-03-2004, 09:16
Hi,

Can anybody use wl-500b/g for wol pass-through?

I have Dlink DI-604 now, and it blocking the "magic packet".

I tried AMD Magic packet utility from outside, and publish 192.168.0.255 - UDP2304. nothing happend.

I monitored my network with Iris Network Monitor, and I seen: my router made an ARP-request, but not sent "magic packet".

I read about Linksys and SMC has WOL capatibility, but WL500b/g ?

thanks

Tibor

mr_prof
27-03-2004, 19:53
Hi everybody,

Nobody doesn't try to Wake on lan?

I want to change my router , and I need some help from other WL-500 owner.
If anybody want to help me and has two computers, please follow instructions:

check wake-on-lan on your lan, and if working please:

1. publish (virtual server) 192.1.1.255 UDP 9
2. go to http://www.dslreports.com/wakeup site
3. write your public IP and MAC address of your PC2 and click button
4. please write me your experience

thank you


Tibor

yanism
18-04-2004, 11:53
nobody has found the way of do wake on wan with the wl500g ?

Antiloop
18-04-2004, 15:57
most of my workstations do not support wake-on-lan (nvidia nForce chipset) so i can't test it..

maybe my intel mobo powered pc does support it.. should try this once..

yanism
18-04-2004, 16:38
thank you Antiloop.
i try as mr_prof to forward port 2304 (port using by msi magic packet) to the local broadcast network but it doesn't work too. in the status log, the udp packet enter on the 2304 port of the router but the redirection doesn'r seems to work. I install firewall software on a computer in my local network it doesn't receive udp packet :(

Ark+
18-04-2004, 20:00
i try as mr_prof to forward port 2304 (port using by msi magic packet) to the local broadcast network but it doesn't work too

I do not think it can work that way.
I guess that when forwarding the magic packet (NAT), the router does not recognize the forwarding address as a broadcast address (as cisco does) and issues an ARP request which, of course, fails.

This can be easily verified with ethereal.

Possibly, you can use static ARP in order to send the wol packet directly to your PC. However i am not sure that the ASUS supports it.

Antiloop
18-04-2004, 23:52
Originally posted by mr_prof
Hi,
I'm sad. Last week, I tried a Linksys BEFW11S4 and WOL was OK, but it has'nt USB and parallel ports.


Ark+ I don't understand :Possibly, you can use static ARP in order to send the wol packet directly to your PC.

How can I use static ARP???

more important is. DOES it work at a Linksys WRT54g ?
if it does, then it can be added to the wl500g

mr_prof
19-04-2004, 08:45
Hi,
I'm sad. Last week, I tried a Linksys BEFW11S4 and WOL was OK, but it has'nt USB and parallel ports.


Ark+ I don't understand :Possibly, you can use static ARP in order to send the wol packet directly to your PC.

How can I use static ARP???

Ark+
19-04-2004, 13:15
With a standard Unix, the instruction for static arp is :
arp -s 192.168.1.10 01:02:03:04:05:06

Using this instruction, the host will not send an ARP request in order to convert an IP address -192.168.1.10) into a MAC address (01:02:03:04:05:06).

Thus the ASUS will be able to create the wol packet with the forwarded IP address (ie 192.168.1.10) and the right MAC address (the one you have entered using static ARP).

Unfortunately arp is not provided with the ASUS linux subset, but there should be a way.

Perhaps /etc/ethers should be used. You will have to set the nvram variables etc_ethers and etc_hosts as specified by Oleg.

erik_bies
05-05-2004, 22:20
I also did not get it to work with port forwarding, dunno why.

The way I found to work is to SSH to my WL500, and send the WOL command from the command prompt. That does work pretty well.

I found compiled 3 programs that did the trick.
ether-wake,wakelan,wol (the smallest, attached here)
Hope this works for you

Antiloop
06-05-2004, 00:36
quite interresting.. is this compiled for the wl500g? (e.g. found at the wrt54g community maybe? :D ) could you attach the others as well..

i've liked the wol feature for a long time until i installed my nForce which seemed to not support it for a weird reason..

erik_bies
07-05-2004, 14:51
No, I compiled then myself for the WL500g from some sources I found on the internet (not releated to the linksys)

They are rather large, as I comiled them with -static. Somehow when I don't compile them with -static, they complain 'bout missing libriaries etc (but they are small then :D )

Anyway, I guess there is some fiiference between my installed toolchain and Oleg's one. I'll experiment some more.

I'll also try to attach the sources, and settings for compiling if you are interested.

BTW. For me they are working fine on the nforce2 chippset, I switched on the wake-on-lan both in Windows (network driver setting) as well as in bios.

Antiloop
07-05-2004, 15:11
have to recheck it.. at that time it did not work, also msi was not willing to fix this, because according to them the nforce did not support it at all

it was only working when I inserted a 3com card..

Oleg
07-05-2004, 19:24
No, I compiled then myself for the WL500g from some sources I found on the internet (not releated to the linksys)

They are rather large, as I comiled them with -static. Somehow when I don't compile them with -static, they complain 'bout missing libriaries etc (but they are small then :D )

Anyway, I guess there is some fiiference between my installed toolchain and Oleg's one. I'll experiment some more.

I'll also try to attach the sources, and settings for compiling if you are interested.

BTW. For me they are working fine on the nforce2 chippset, I switched on the wake-on-lan both in Windows (network driver setting) as well as in bios.

The difference is not in the toolchain, but in the relinked libs. Can you point to the original sources you've used?

erik_bies
09-05-2004, 19:13
Oleg/Antiloop
Pls find attached the sources.
if you succeeded ub compiling them with dynamically loaded libc I'm interessted...

BTW how can I sync to yourlibc? I installed the linksys package.

susa
06-10-2004, 00:31
Hi All,

Does anyone have ether-wake (www.scyld.com/wakeonlan.html) compiled for the ASUS wl500? Is there someone kind enough to do it for me?

Thank you very much in advance,
ROliveira

Antiloop
06-10-2004, 01:19
yes it is already included in the custom firmware (1.7.5.9cr5 for example)

[root@WL500G root]$ ether-wake
Specify the Ethernet address as 00:11:22:33:44:55.

i've tested this too, and it works. it flawlessy turns on my nForce2 powered pc

susa
06-10-2004, 08:29
Thanks a lot!

ROliveira

barsju
26-03-2005, 22:08
Has anyone compiled a wake on LAN utility? My motherboard has that option and I would like to be able to turn it on from the router. I found some Linux tools here (http://gsd.di.uminho.pt/jpo/software/wakeonlan/mini-howto/wol-mini-howto-3.html#ss3.1). Maybe someone would like to compile?

Unless someone is compiling perl of course.. That would be even better! Is there a reason why that hasn't been done yet? Wouldn't perl be great to have on there?

S.

Styno
26-03-2005, 22:44
Search gives me this: http://wl500g.info/showthread.php?t=187&highlight=wake+LAN

Antiloop
27-03-2005, 00:09
it's even already built-in to the latest custom firmwares (current 1.9.2.7-4)

[root@WL500gx root]$ ether-wake
Specify the Ethernet address as 00:11:22:33:44:55.

barsju
27-03-2005, 08:43
Very sorry! Officialy kicking my self on the leg!

S.

fraho
04-05-2005, 13:07
Hi,

sorry for asking once more: Could someone please explain step-by-step how to wake up a pc from WAN-side through the WL500g with the latest firmware installed? Thanks!

fraho

barsju
04-05-2005, 13:18
To wake machine with mac adress: 00:11:22:33:44:55

Telnet to router and type:

ether-wake 00:11:22:33:44:55

You can also use "Hidden admin page".

S.

fraho
04-05-2005, 13:26
Thanks for your quick answer! Anyway, what can I do if I'm behind a firewall and the telnet-port can't be used? Isn't it possible to create a graphical WOL-Page within the web-frontend (I know, I shouldn't have remote administration enabled but who cares.....) so that any opened port could be used for WOL as well as for all other things?

fraho

barsju
04-05-2005, 13:54
How about SSH? That's what I use..

S.

fraho
04-05-2005, 14:06
What port does ssh use?
By the way, I've never used the "hidden admin page", how do I get there?

fraho

barsju
04-05-2005, 14:24
22.
Faq.

S.

fraho
04-05-2005, 14:36
o.k, just before I start flashing a new firmware on a running system :eek: :

Will this "hidden Admin page" let me send a wake-on-lan-command via Web-Frontend (via port 80)?

fraho

barsju
04-05-2005, 14:49
I can't test it for you right now, but I don't see how it shoult not work. So yes. You should be able to wake-on-lan from the web.

S.

fraho
04-05-2005, 15:03
is this "Hidden Admin Page" only available within customized firmwares? If yes, which is the most stable one?

fraho

Antiloop
04-05-2005, 15:22
o.k, just before I start flashing a new firmware on a running system :

Will this "hidden Admin page" let me send a wake-on-lan-command via Web-Frontend (via port 80)?
yes it works with stock firmwares and yes it works from WAN side

your websetup is at the port you define it is, standard it is when enabled at port 8080 from WAN

mao44
10-05-2005, 09:58
for erik_bies

i've tried to launch ether-wake from my telnet session with the Mac address, and it doesn't work !
but, if i use a tool on another PC to wake up the first one, it works

Can you tell me if i have to modify specific files or set specific rules to make this ?

thanks

Antiloop
10-05-2005, 10:14
it does work, I am assuming you use the built-in ether-wake application and not a standalone version found in this thread

perhaps it doesn't use the same WOL string to wake up the other pc

I have succesfully used this on:
Intel NIC (onboard at IntelŪ Desktop Board D815EEA2/D815EPEA2)
Nforce NIC (onboard at MSI K7N420Pro Nforce 1)
Nforce NIC (onboard at MSI K7N2 Delta ILSR Nforce 2)

mao44
10-05-2005, 14:02
answer to Antiloop

yes, i use the ether-wake i have found on my wl500gx
i'm not a linux expert, so coul you tell me the procedure to download a compiled version ?

thanks

Antiloop
10-05-2005, 14:11
answer to Antiloop

yes, i use the ether-wake i have found on my wl500gx
i'm not a linux expert, so coul you tell me the procedure to download a compiled version ?

thanks
no idea what you exactly mean

the built-in version is supposed to work correctly as said by me above
I am not aware of any other version that works

mao44
10-05-2005, 16:50
the ether_wake and wakelan doesn't work on my wl500gx and my PC motherboard P5GDC deluxe, but if i use a wol windows lan soft from another PC , it works !

what port is used ?

Antiloop
10-05-2005, 17:03
the ether_wake and wakelan doesn't work on my wl500gx and my PC motherboard P5GDC deluxe, but if i use a wol windows lan soft from another PC , it works !

what port is used ?
it is some sort of 'magic packet' that is broadcasted at your network, I'm not familair with exact details

are the pc's connected directly with CABLE to the WL500gx ?

mao44
10-05-2005, 17:09
yes, they are connected directly
if i use from an other PC a soft which send a Magic Packet, it works

i have made a web page who send this magic packet

mao44
10-05-2005, 17:29
i've found the pb, i have to use the broadcast option -b with wakelan


thanks

xanado
06-07-2005, 22:31
Hi

i have some troubles with using wake on lan.
Current firmware: 1.9.2.7-6b

When i telnet to my wl500gx and use
ether-wake <mac address> nothing happen to the target pc :(

However, when i use a windows utility (http://www.depicus.com/wake-on-lan/wake-on-lan-gui.aspx) from another PC also connected to the wl500gx it work everytime ok! >> So WOL is working fine on target pc.

Any suggestions why it isnt working from the wl500gx?

(and why i need to fill in more info in the windows util (like IP, subnet and port) when this is not nessecery with ether-wake?)


thnx in advance :)

SocoNaTromba
07-07-2005, 01:41
did you try specifying wich interface to use? for wl_500G deluxe you must use (this one works for me):

ether-wake -i vlan0 <mac_address>

tsabus
07-07-2005, 15:58
I had the same problem with WOL, but now, this solution works well !!!
THX SocoNaTromba !!

xanado
07-07-2005, 18:12
Thnx alot for this solution SocoNaTromba!
It works fine now :D

thnx again!

virtual
18-01-2006, 10:42
Dear all,

I am looking for a solution that will automatically wake up my webserver on the LAN by any request that is routed by the wl500g from WAN or LAN. I am using Olegs 1.9.2.7 6b firmware, which has included ether-wake. Also I configured a virtual server that points to my apache box.

I already searched this forum - and googled but found no solution.

Thank you in advance.
v.

oleo
18-01-2006, 15:51
My suggestion is that you install xinetd from optware packages and then create a wrapper script which replaces http service at port 80.
This script should reconfigure iptables for forwarding to server and wakes the server.

Additionally you can install thttpd server and run it in -D mode in script before reconfiguring iptables and waking server. This will enable visitors to see DELAY notice. HTML page should include

<META HTTP-EQUIV=Refresh CONTENT=300>

Of course this could also be solved with firmware, with simple reconfigure of busybox applets. But this requires knowledge of firmware compilation.
You should include inetd applet and set httpd to be run from inetd!

I dont know why, inetd is not included in Oleg firmware as this saves memory. Maybe because memory is so tight that it is safer to run as daemons.

HM. I think that this requires Oleg 7b firmware which has http_lanport patch as inetd has to live on port 80, to detect requests. Move GUI elsewhere.


Hope this helps you start. Write a WIKI page when you finished.

And why not running http server on router itself?

Willie2_z
25-01-2006, 18:49
I have a problem with my Wl500gx. I can't wol. I've tryed ssh my router and used the command: "ether-wake XX:XX:XX:XX:XX:XX" ,"ether-wake -i vlan0 XX:XX:XX:XX:XX:XX" and "ether-wake -i vlan1 XX:XX:XX:XX:XX:XX" and the two lan interfaces. Nothing works. I've checked that WOL is enabled on my PC, but it still doesn't work ?! Please Help


Sorry for my bad english....

WlanMan
26-01-2006, 01:09
Hi
Have you tried to WoL the computer directly with your (expected) other pc by using linux or a apropriate windows tool ? Maybe just your WoL is not reacting properly...

Greets

pezi
20-02-2006, 21:01
Hi all!

Is it possible to wake-on-lan the WL-500gx after it has been shutdown (by running 'halt' in a telnet session)?
I allready tried to wake it up by sending wol-packages to the router using 'wakeonlan' and 'etherwake' but that did not work.

Is there an utility available to configure the wol features of the router? Something like 'ethtool' for instance.

pezi

Oleg
21-02-2006, 09:02
WOL is not supported. Halt is the endless loop.

fastoche44
13-04-2007, 14:01
ether-wake do not work with the latest firmware?
wakelan to?

ether-wake -b -i xxxx 00:11:11:11:11:11 do not work, nothing with a sniffer :(

mistraller
20-08-2007, 14:47
I can succesfully wake my computer from the internet with sites like dslreports.com/wakeup using wake on lan.
But with this site, I have to remember the mac adresses of my computers.
I have php-thttpd running on my asus WL500gx, and I saw some php scripts to run on a device. So my idea was to create a central webpage (password protected) with links to several php scripts to wakeup my systems. I tried a script, but it does not work. The Oleg-internal ether-wake program works perfect so my home network is not the problem, but therefore I have to log in to the shell, which is not possible from many locations due to network restrictions.
The script looks as following:


<?
# Wake on LAN - (c) HotKey@spr.at, upgraded by Murzik
# Modified by Allan Barizo http://www.hackernotcracker.com
flush();
function WakeOnLan($addr, $mac,$socket_number) {
$addr_byte = explode(':', $mac);
$hw_addr = '';
for ($a=0; $a <6; $a++) $hw_addr .= chr(hexdec($addr_byte[$a]));
$msg = chr(255).chr(255).chr(255).chr(255).chr(255).chr(2 55);
for ($a = 1; $a <= 16; $a++) $msg .= $hw_addr;
// send it to the broadcast address using UDP
// SQL_BROADCAST option isn't help!!
$s = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
if ($s == false) {
echo "Error creating socket!\n";
echo "Error code is '".socket_last_error($s)."' - " . socket_strerror(socket_last_error($s));
return FALSE;
}
else {
// setting a broadcast option to socket:
$opt_ret = socket_set_option($s, 1, 6, TRUE);
if($opt_ret <0) {
echo "setsockopt() failed, error: " . strerror($opt_ret) . "\n";
return FALSE;
}
if(socket_sendto($s, $msg, strlen($msg), 0, $addr, $socket_number)) {
echo "Magic Packet sent successfully!";
socket_close($s);
return TRUE;
}
else {
echo "Magic packet failed!";
return FALSE;
}

}
}
// Port number where the computer is listening. Usually, any number between 1-50000 will do. Normally people choose 7 or 9.
$socket_number = "7";
// MAC Address of the listening computer's network device
$mac_addy = "00:12:4G:SF:12:13";
// IP address of the listening computer. Input the domain name if you are using a hostname (like when under Dynamic DNS/IP)
$ip_addy = gethostbyname("myhomeserver.dynamicdns.org");

WakeOnLan($ip_addy, $mac_addy,$socket_number)


?>


How can i get this script working?

mark76
21-09-2007, 12:13
in your thread you say that you can wake your computer by using the website. I can not figure out how to do that, the only solution in the forums is to use telnet.

can you explain how to make a website solution work ?

mistraller
23-09-2007, 21:05
in your thread you say that you can wake your computer by using the website. I can not figure out how to do that, the only solution in the forums is to use telnet.

can you explain how to make a website solution work ?

By using dslreports website you have to setup a NAT rule in firewall (running on my adsl modem, not asus router) which forwards packets received on port9 to internal broadcast adress. (In my 10.0.0.x range this is 10.0.0.255)

At the moment I have better solution running; I have a cgi script running on my asus, which is reachable from internet. This script will launch the builtin ether-wake (included in Oleg firmware) Using this solution, I don't even have to open a port at all. cgi is password protected by busybox-httpd webserver.

Find the cgi solution here. (read the whole thread, for better solution)
http://wl500g.info/showthread.php?t=10419

greengreen
01-10-2007, 17:44
Hi,
exists any way to wake up computer by wifi ?
thx

mistraller
01-10-2007, 20:08
Hi,
exists any way to wake up computer by wifi ?
thx
No. Wake on Lan is not supported on Wifi.

stevocz
09-01-2009, 11:41
how wake up PC from WL-500gx with oleg firmware?

DD-WRT has wol, but in oleg not see

al37919
09-01-2009, 12:06
/usr/bin/ether-wake

niente58
06-04-2010, 14:45
Greetings,

I need a litlle help, i own an Asus Wl500G, i am trying to setup a wake on lan connection, i have the latest oleg firmware "1.9.2.7-10"

I can wake up the computer from my internal lan but when i try to wake him up from the internet it doesnīt even receives the magic packet.

"It seems that the router is blocking the magic packets"


I have a dns ip, my static ip is: 192.168.1.206 my subnet mask is 255.255.255.0 and i have tried to forward all traficc to UDP port 9 on 192.168.1.255 and 192.168.1.206, with no luck.

Can you please explain me how to setup the router so that i can wake him up from the internet.


Thanks,

Bruno

al37919
06-04-2010, 16:16
search on ether-wake

niente58
06-04-2010, 17:30
All i can find is for linux?????

I donīt understand anything about programming in Linux.

Is there a simpler process???

Thanks

al37919
07-04-2010, 12:55
your router has linux inside. You have to login into it and execute command.

niente58
07-04-2010, 13:10
When you say login inside, you mean log in to the router default page and go to the command page??

What command do i execute? As i said before i donīīt understand any of linux.

Thanks

Copter
07-04-2010, 20:04
Follow this HowTO (http://wl500g.info/showthread.php?t=10307) To install the newest firmware on your wl500gP.

After that, you know the linux basics to log on you router.

jzaruba
03-01-2011, 14:46
Hello

Does this firmware add interface for WOL? I've read there's ether-wake for WakeOnLAN, but is it possible to set-up from the web UI?
(I'm about to buy WL-500gP v2, because it is known to work well with Oleg.)

JZ

wpte
04-01-2011, 13:42
Hello

Does this firmware add interface for WOL? I've read there's ether-wake for WakeOnLAN, but is it possible to set-up from the web UI?
(I'm about to buy WL-500gP v2, because it is known to work well with Oleg.)

JZ

well... not directly...
you can execute commands in the web-admin, so you could use the ether-wake utility trough that:)
I'm also pretty sure some people out there have a php script or something to do that kinda stuff:D

jzaruba
05-01-2011, 13:31
thanks for the reply
i think i will go with another firmware then

cheers
JZ

dvdtje
09-03-2011, 12:32
I want to use WOL via internet so I can wake up my pc at home.

When the pc is just turned off, I can turn it on by a magic packet. But after one hour or so, it isn't possible anymore.

so I think my modem forgets my computer. It's an speedtouch 706. On the internet I found some commands (static arp instead of dynamic arp) butI can't use them because I don't have access to telnet (t's an modem from my ISP).

So I have to work with the WL500g.

It's in AP mode because of the WAN port problem. I use the newest firmware (1.9.x.x) but I still have the WAN port problem. So I use it in AP mode and let my Speedtouch do the stuff.

But, because of that, ether-wake is not working, the wl-500g doesn't recognize the mac address (I think because the WL500g now acts as a simple switch instead of router). So, what can I do?

I want to use a LAN port (for example LAN4) as a WAN port and the WAN port as LAN4 (for my printer or other stuff) so I can use the WL500g in router mode. How to do that? I can only find 'use WAN as LAN' but not in reverse.
Or is it possible to add a MAC address or something in AP mode? So I can use ether-wake or something? I found this (http://wl500g.info/showthread.php?t=4327) thread and will try that..

And if thats not working maybe try dd-wrt... :P


Is it the problem of the speedtouch (he forgets MAC) or is it problem of WL500g (this one forgets mac)?

edit2: I found this on the DD-wrt site, is this possible with Olegs firmware?

Second WAN port

You can move ports to the WAN VLAN to make them act as WAN ports residing outside the router's NAT or to just replace a damaged WAN port. Devices attached to these ports will request their IP addresses from the ISP instead of getting a private IP address from your router. One might want to have such behavior when having unsorted firewall issues with a SIP operator.

nvram set vlan0ports="1 2 3 5*"
nvram set vlan1ports="0 4 5"
nvram commit
reboot

dvdtje
13-03-2011, 10:20
I now use the extra speedtouch for acomplishing this... That works.

But can anyone tell me why I still have the WAN port issue in 1.9.2.7 Oleg firmware?

I will try the 1.9.5.0 BETA from the Asus site now... but I need the extra stuff in Oleg's frimware :(