Archive for the ‘network’ Category

Ubuntu Linux 8.04 - Wake on LAN

Wednesday, September 3rd, 2008

Now that I’ve switched to a Macbook Pro with OSX Leopard as my primary desktop, I’ve located my Ubuntu machine in another part of the house to be accessible to my children. Not wanting to walk to the room where it’s located just to flip the power switch, I researched how to get “wake on LAN” working, so I could power it up remotely.

1. Enable the appropriate setting in your BIOS. Mine had something to do with wake on PCI device.

2. Install ethtool if you don’t already have it.

sudo apt-get install ethtool
cd /etc/init.d
sudo vim wakeonlanconfig

Add the following lines to that file:

#!/bin/bash
ethtool -s eth0 wol g

Install the script:

sudo update-rc.d -f wakeonlanconfig defaults

Run the script:

sudo /etc/init.d/wakeonlanconfig

3. Keep the network interface alive after shut down.

sudo vim /etc/init.d/halt

Change the following line:

halt -d -f -i $poweroff $hddown

to the following line (i.e. remove the -i)

halt -d -f $poweroff $hddown

4. Get the MAC address

ifconfig | grep HW

5. Send the magic packet via the following Ruby program:

require 'socket'
mac_addr = "x21x53x39xB3x90x42"
s = UDPSocket.new
s.setsockopt(Socket::SOL_SOCKET, Socket::SO_BROADCAST, 1)
s.send("xff"*6 + mac_addr*16, Socket::SO_BROADCAST, '10.0.0.255', 7)

Gizmo Project

Tuesday, November 13th, 2007

I’ve been using Gizmo to make voice-over-ip calls for many months now, and I’ve been extremely pleased with it. They have clients for Linux, Mac & Windows, and the call quality has been outstanding when both ends have broadband.

I picked up an inexpensive Plantronics headset with attached microphone which makes extended conversations while working at a computer a joy. Gizmo call quality is to POTS call quality as stereo is to clock radio. I highly recommend checking it out.

Surf Securely Using SSH

Thursday, August 2nd, 2007

This is so easy, you’re gonna love it! Thanks Tyler Pedersen.

Motivation

I’ve been using my laptop more frequently at wifi hotspots. Many web sites I visit encrypt traffic with SSL for authentication, but after that they send traffic in the clear which means the cookies that are used for authentication purposes are sent in the clear, so anyone with a sniffer within range of my laptop could easily intercept the traffic, steal my cookies and impersonate me on the web site. Not good! So, I went looking for a simple solution, and found a great article about using ssh for this purpose. Ya gotta love open source software :)

Prerequisites

I’ll assume the following:

  1. You’ve used ssh before
  2. You have access to a remote host running sshd

How To

Issue the following command on your local computer:

ssh -Nf username@hostname.com -D 1080

replace username@hostname.com with the appropriate information. Look at the man page for ssh, or read the article linked above for an explanation of the options.

The next step is to configure Firefox to use the SOCKS proxy you setup with the above command. I’m using Firefox 2.0.0.6 on Ubuntu 7.04 Linux.

Edit | Preferences | Advanced | Settings

Pulls up the following dialog:

socks.png

Notice how I’ve switched from “Direct connection to the Internet” to “Manual proxy configuration”. I’ve also set the SOCKS Host to be ‘localhost’ and the port to be ‘1080′.

I can now surf and have encrypted traffic between my local computer and the remote host I ssh’d to. The traffic between my remote host and the destination web site will be unencrypted, but hopefully that traffic is harder to sniff without being detected.

At this point, I tested it out and everything worked fine. I then killed my local ssh process and Firefox complained about the connection being reset, so I knew it was in fact sending data over the ssh tunnel.

The final step is optional, but if you want to avoid having the bad guys detect your DNS requests (or possibly redirect them - d’oh!), you can configure Firefox to route DNS requests through the proxy.

  1. Type about:config in the Firefox address bar.
  2. Look for network.proxy.socks_remote_dns and set the value to true

Is that easy or what? Thanks again Tyler.

100 Oldest .com Domains

Thursday, May 17th, 2007


Rank Create date Domain name
1. 15-Mar-1985 SYMBOLICS.COM
2. 24-Apr-1985 BBN.COM
3. 24-May-1985 THINK.COM
4. 11-Jul-1985 MCC.COM
5. 30-Sep-1985 DEC.COM
6. 07-Nov-1985 NORTHROP.COM
7. 09-Jan-1986 XEROX.COM
8. 17-Jan-1986 SRI.COM
9. 03-Mar-1986 HP.COM
10. 05-Mar-1986 BELLCORE.COM
11. 19-Mar-1986 IBM.COM
11. 19-Mar-1986 SUN.COM
13. 25-Mar-1986 INTEL.COM
13. 25-Mar-1986 TI.COM
15. 25-Apr-1986 ATT.COM
16. 08-May-1986 GMR.COM
16. 08-May-1986 TEK.COM
18. 10-Jul-1986 FMC.COM
18. 10-Jul-1986 UB.COM
20. 05-Aug-1986 BELL-ATL.COM
20. 05-Aug-1986 GE.COM
20. 05-Aug-1986 GREBYN.COM
20. 05-Aug-1986 ISC.COM
20. 05-Aug-1986 NSC.COM
20. 05-Aug-1986 STARGATE.COM
26. 02-Sep-1986 BOEING.COM
27. 18-Sep-1986 ITCORP.COM
28. 29-Sep-1986 SIEMENS.COM
29. 18-Oct-1986 PYRAMID.COM
30. 27-Oct-1986 ALPHACDC.COM
30. 27-Oct-1986 BDM.COM
30. 27-Oct-1986 FLUKE.COM
30. 27-Oct-1986 INMET.COM
30. 27-Oct-1986 KESMAI.COM
30. 27-Oct-1986 MENTOR.COM
30. 27-Oct-1986 NEC.COM
30. 27-Oct-1986 RAY.COM
30. 27-Oct-1986 ROSEMOUNT.COM
30. 27-Oct-1986 VORTEX.COM
40. 05-Nov-1986 ALCOA.COM
40. 05-Nov-1986 GTE.COM
42. 17-Nov-1986 ADOBE.COM
42. 17-Nov-1986 AMD.COM
42. 17-Nov-1986 DAS.COM
42. 17-Nov-1986 DATA-IO.COM
42. 17-Nov-1986 OCTOPUS.COM
42. 17-Nov-1986 PORTAL.COM
42. 17-Nov-1986 TELTONE.COM
42. 11-Dec-1986 3COM.COM
50. 11-Dec-1986 AMDAHL.COM
50. 11-Dec-1986 CCUR.COM
50. 11-Dec-1986 CI.COM
50. 11-Dec-1986 CONVERGENT.COM
50. 11-Dec-1986 DG.COM
50. 11-Dec-1986 PEREGRINE.COM
50. 11-Dec-1986 QUAD.COM
50. 11-Dec-1986 SQ.COM
50. 11-Dec-1986 TANDY.COM
50. 11-Dec-1986 TTI.COM
50. 11-Dec-1986 UNISYS.COM
61. 19-Jan-1987 CGI.COM
61. 19-Jan-1987 CTS.COM
61. 19-Jan-1987 SPDCC.COM
64. 19-Feb-1987 APPLE.COM
65. 04-Mar-1987 NMA.COM
65. 04-Mar-1987 PRIME.COM
67. 04-Apr-1987 PHILIPS.COM
68. 23-Apr-1987 DATACUBE.COM
68. 23-Apr-1987 KAI.COM
68. 23-Apr-1987 TIC.COM
68. 23-Apr-1987 VINE.COM
72. 30-Apr-1987 NCR.COM
73. 14-May-1987 CISCO.COM
73. 14-May-1987 RDL.COM
75. 20-May-1987 SLB.COM
76. 27-May-1987 PARCPLACE.COM
76. 27-May-1987 UTC.COM
78. 26-Jun-1987 IDE.COM
79. 09-Jul-1987 TRW.COM
80. 13-Jul-1987 UNIPRESS.COM
81. 27-Jul-1987 DUPONT.COM
81. 27-Jul-1987 LOCKHEED.COM
83. 28-Jul-1987 ROSETTA.COM
84. 18-Aug-1987 TOAD.COM
85. 31-Aug-1987 QUICK.COM
86. 03-Sep-1987 ALLIED.COM
86. 03-Sep-1987 DSC.COM
86. 03-Sep-1987 SCO.COM
89. 22-Sep-1987 GENE.COM
89. 22-Sep-1987 KCCS.COM
89. 22-Sep-1987 SPECTRA.COM
89. 22-Sep-1987 WLK.COM
93. 30-Sep-1987 MENTAT.COM
94. 14-Oct-1987 WYSE.COM
95. 02-Nov-1987 CFG.COM
96. 09-Nov-1987 MARBLE.COM
97. 16-Nov-1987 CAYMAN.COM
97. 16-Nov-1987 ENTITY.COM
99. 24-Nov-1987 KSR.COM
100. 30-Nov-1987 NYNEXST.COM

I found the list here.