Deprecated: Function set_magic_quotes_runtime() is deprecated in /membri/cyberstorm/phpBB3/common.php on line 106

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 112
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3390: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3392: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3393: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3394: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
Neptune354 :: View topic - [WoL] Wake On Lan from Internet
Neptune354
http://cyberstorm.altervista.org/phpBB3/

[WoL] Wake On Lan from Internet
http://cyberstorm.altervista.org/phpBB3/viewtopic.php?f=8&t=40
Page 1 of 1

Author:  n1ck0s [ 07 Feb 2008, 16:33 ]
Post subject:  [WoL] Wake On Lan from Internet

I want to use Wake-On-LAN with my WAG354G. In order to do that the router has to be able to port forward UDP 9 traffic to 198.168.1.255 (as I understand x.x.x.x.255 is used for broadcast). In the port forward options I can't enter the 255 as a value. Only values up to 254 are valid.

By googling, I've found the following solution. The following command is given by telnet:

Code:
ip neighbor add 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff dev br0 nud permanent


The 192.168.1.254 IP is linked to the ff:ff:ff:ff:ff:ff MAC, which is also used for broadcasting. That way, by port forwarding UDP 9 traffic to 198.162.1.254, Wake-On-LAN works.

But, the thing is, that this must be done every time the router is restarted. Is there a way to implement this in the firmware somehow?

Thanks in advance,
N.

Author:  cyberstorm [ 08 Feb 2008, 14:52 ]
Post subject:  Re: Wake On Lan

yes, you can use the boot script feature. Instructions on how to do it are both in this forum and in web interface under administration.

You have to write in /mnt/script.sh these 2 lines:
Code:
#!/bin/sh
ip neighbor add 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff dev br0 nud permanent


cheers

Author:  n1ck0s [ 11 Feb 2008, 11:20 ]
Post subject:  Re: [WoL] Wake On Lan from Internet

Unfortunately I can't get it to work. Has anyone else tried that?

Is there a script or something which can send a magic packet? Is there a way to call such a script from the router's interface (by hitting a specific url perhaps)?

Thx in advance,
N.

Author:  DJKarlos [ 14 Feb 2008, 17:14 ]
Post subject:  Re: [WoL] Wake On Lan from Internet

I've been using the free web interface to send the magic packet which has been working for me.

http://www.rtsecurity.com/products/wol/

Author:  tidyfc [ 22 Mar 2008, 00:10 ]
Post subject:  Re: Wake On Lan

cyberstorm wrote:
yes, you can use the boot script feature. Instructions on how to do it are both in this forum and in web interface under administration.

You have to write in /mnt/scripts.sh these 2 lines:
Code:
#!/bin/sh
ip neighbor add 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff dev br0 nud permanent


cheers


FYI, the name of the script file should be /mnt/script.sh and not /mnt/scripts.sh.
Its taken me 2 days to figure it out but now works like a charm. :D

Author:  cyberstorm [ 24 Mar 2008, 19:42 ]
Post subject:  Re: [WoL] Wake On Lan from Internet

yes indeed tidyfc! It was a typo...

happy to see it works!

Author:  DJKarlos [ 13 Jan 2009, 20:10 ]
Post subject:  Re: [WoL] Wake On Lan from Internet

Quote:
FYI, the name of the script file should be /mnt/script.sh and not /mnt/scripts.sh.
Its taken me 2 days to figure it out but now works like a charm. :D

I know this is very late in the day lol...

I tried adding the above script to the /mnt/ folder, which was fine... As soon as I rebooted the router I noticed that my script.sh file had disappeared?!

Should I have put this file in a different location, or have I missed something that I need to set first?

Author:  starsat2000 [ 03 Feb 2009, 17:00 ]
Post subject:  Re: [WoL] Wake On Lan from Internet

cyberstorm wrote:
yes, you can use the boot script feature. Instructions on how to do it are both in this forum and in web interface under administration.
You have to write in /mnt/scripts.sh these 2 lines:
Code:
#!/bin/sh
ip neighbor add 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff dev br0 nud permanent


OK friends but i don't know linux and i don't know how i can write in /mnt/scripts.sh these 2 lines
PLEASE help me step by step
Friently George

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/