Jump to content

bailz

Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

bailz's Achievements

Newbie

Newbie (1/14)

  1. Hi everyone, I can confirm that you can get a WAG200 to work with Wake on Lan over the internet..it took me two days and countless forums on the internet and digging through source code. Hopefully this helps others get this working Follow the steps below and you should have Wake On Lan working correctly over the internet on the WAG200. P.S The Javascript hack above for port forwarding 255 did not work for me on Cisco 1.09 or custom woytekm firmware, so hopefully this method works for you. ------------------------------------------------------------------------------------------------------------------------------- Set the Wake On Lan PC to a static IP address 1. Set the PC you wish to wake over the internet with a static IP address outside of the DHCP scope. As an example set your PC static IP address to 192.168.1.100 and set the DHCP scope on the router to start from 192.168.1.101. The DHCP router scope can be changed here http://192.168.1.1/setup.cgi?next_file=Setup.htm. (Look for the 'starting address' parameter and change this to 192.168.1.101) ------------------------------------------------------------------------------------------------------------------------------- Upgrade the router firmware 2. Download the excellent woytekm custom firmware available from http://woytekm.googlepages.com/linksyswag200g-eu and upgrade your router firmware at http://192.168.1.1/setup.cgi?next_file=FirmwareUpgrade.htm Make sure the language in the router configuration is set to english before you upgrade the firmware ------------------------------------------------------------------------------------------------------------------------------- Connect to the router via SSH using PuTTy 3. Using a program such as PuTTy, open an SSH (port 22) connection to your router at 192.168.1.1, when prompted enter username: root password: YourRouterWebAdministratorPassword (default password is "admin" if you have not changed it) ------------------------------------------------------------------------------------------------------------------------------- Create filesystem for custom scripts 4. Once logged in to the router via SSH, issue a "make_mtd5" command. This command will make a minix filesystem on /dev/mtdblock/5 - the space originaly designed to hold optional language version of the www interface. ------------------------------------------------------------------------------------------------------------------------------- Enable automounting of file system 5. Enable automounting of the filesystem from the http://192.168.1.1/MySetup.cgi?other webpage of the router. Also enable 'Run rc.local script' and 'Run rc.myfirewall' Pull the power on the router and reboot, or use the "Hard Reboot" command from administration page in setup menu. If you don't reboot the router, the next step will not work ------------------------------------------------------------------------------------------------------------------------------- Create static DHCP entry for Wake On Lan PC 6. Next you need to create a static DHCP entry for the Wake On Lan PC at LAN/WLAN interfaces on the MySetup->DHCP page. http://192.168.1.1/MySetup.cgi?DHCP. Enter the MAC address of the PC network card - to find the MAC address enter ipconfig /all at a command prompt, physical address listed for your network card is the MAC address. (Needs to be in entered the format of xx:xx:xx:xx:xx:xx) Enter the IP address of the PC, this would be 192.168.1.100 if using the examples above. Enter a comment such as WakeOnLan and then click 'save my settings' ------------------------------------------------------------------------------------------------------------------------------- Setup port forwarding for port 9 7. Next you need to forward port 9 to the wake on lan PC. To do this go to Applications and Gaming > Single Port Forwarding. http://192.168.1.1/setup.cgi?next_file=SingleForwarding.htm Create a new port forward using the following information Application: WakeOnLan External Port: 9 Internal Port: 9 Protocol: UDP (not TCP!) IP address: 192.168.1.100 'Enabled' option needs to be ticked Click 'save settings' ------------------------------------------------------------------------------------------------------------------------------- Wake On Lan testing tool Your almost there, reboot router again so everything is setup and forwading correctly. Now you need to test the fucntionality, fortunately there is a tool that will allow you to do this, without switching your PC off continously. Download Wake On Lan Monitor from http://www.depicus.com/wake-on-lan/wake-on-lan-monitor.aspx and run on the PC you wish to switch on over the internet. Set port to 9, then press the start button. This program is now listening on the local PC for any Wake On Lan requests and will show successful WOL requests in the window. ------------------------------------------------------------------------------------------------------------------------------- Testing WOL requests from the internet Now you need to issue a request over the internet to your router, to check that it forwards the WOL request on to your PC. You can do this by visiting http://www.depicus.com/wake-on-lan/woli.aspx Enter the following information Your Network Cards Mac Address: This can be the MAC address of the router or PC, you can get the router MAC from http://192.168.1.1/setup.cgi?next_file=Status.htm Any Computers Ip Number or FQDN: This is the public IP address of the router (or the dyndns domain name you have setup for it). You can get the public IP address at http://192.168.1.1/setup.cgi?next_file=Status.htm or www.whatismyipaddress.com Your subnet mask: This needs to be 255.255.255.255 (even if your subnet is set to something else such as 255.255.255.0)! Any port number: 9 (what we set in the single port forwarding earlier) Press the wake on lan button, and all going well, you will see the request in the Wake On Lan monitor window (running on the PC that will wake from lan). ------------------------------------------------------------------------------------------------------------------------------- Now that you have successfully recieved a WOL request from the internet to your PC, you now need to make sure your BIOS and network card are enabled for wake on lan. A good resource on this http://www.annoyances.org/exec/show/article04-101 Shut down the PC and then issue the wake up command from the internet again, it should wake up and begin booting within 2-5 seconds Good luck
×
×
  • Create New...