Make a PC Look Like a Firewire or USB Drive?
buckinm asks: "Here's the problem: I have a Windows laptop that I use for work. When I'm at home though, I much rather use my Mac. Since we use Cisco's VPN client at work, I can't mount the drives on the PC from the Mac. What I'd like to know, is there any software out there that would make the PC act like a Firewire or USB drive? I'd want to be able to mount it read/write. I know I could do some sort of rsync of thing when not connected to the VPN, but that seems like too much trouble. I wouldn't be against writing something like that, if I could get some idea of what is required to listen / respond to traffic on the Firewire or USB ports."
...the gadget device driver and API. From the linked page:
Tiller's Rule: Never use a word in written form that you've only heard and never read. You will end up looking foolish.
This probably WON'T work, for the same reason he cannot use Samba over normal Ethernet.
Most VPN clients, in order to protect the network you are VPN'ing into, will shut down all other connections - they set the VPN interface to be the default route, and then they remove any other routes.
So doing IP over Firewire will work, right up to the time the VPN client kills it.
I'd suggest finding a small Linksys/Dlink (but NOT BELKIN) router that has Cisco VPN client support - the router will handle the VPN, and you can plug both your Mac and your PC into it.
www.eFax.com are spammers
For what it's worth, you hold T and it puts it in 'T'arget disk mode. This is so damn handy for when you've got a b0rked OS install, but you want to recover the data. It's so much easier than pulling the disk and sticking it in an external enclosure, especially in laptops...
> You want to mount drives form a Mac?
> Share the drives and mount them.
He can't, because VPN usually shuts off the other network connections.
> You want to mount vpn mapped drives from a Mac?
> Same deal, share them and mount them. If you can't share them, them subst them and share the subst.
Sharing won't work at all over TCP/IP while VPN is in use.
> You want to access your network from the Mac via the laptop?
> Enable routing on the laptop.
> Better yet, why not install the VPN client on the Mac and leave the laptop out of the question?
He did install VPN on the Mac -- his data is on the Windows laptop.
> What do you want?
He wants to get at all his work data, which is on his work laptop, while using his home desktop machine to connect with his servers at work. Since he can't use a normal TCP/IP connection to have the two machines talk to each other, but they are both at home with him, he thought using USB or Firewire to connect them would avoid the issues with trying to share data between them while the Mac is hooked up to VPN.
they set the VPN interface to be the default route, and then they remove any other routes.
Too true. and adding a host route or two resolves the issue.
route add mac'sIP mask 255.255.255.255 eth0'sIP
It may also be necessary to add a host route for the local eth0 interface as well, depends on how far your VPN client goes. I'd put it in a batch file so that I could run it each time I bring up the VPN.
Comment removed based on user account deletion
Actually, the kernel isn't involved at all. It's all done in OpenFirmware.
Back when PowerBooks used SCSI, it turned the 'Book into a SCSI drive. I believe there was a Control Panel you could use that would set the SCSI ID that it would use.
It's not just for PowerBooks anymore, though. Any[*] Mac with built-in FireWire can do Target Disk Mode.
[*] I'm pretty sure it's "Any", but it might just be "Most". Certainly works for old "Sawtooth" PowerMac G4s on up, and iMac DVs on up, in addition to the laptops.
-Ster
adding a host route or two resolves the issue.
This likely won't work either... the Nortel client, for example, automatically disconnects if *any* routing table changes are made after the client connects. Makes it a real pain to use networked printers at home, too.
I purchased an IOgear Smartlink cable. I had to use USB 1.1 due to OS and hardware inadequacies, but there may be a USB 2.0 option (though I don't see it on the IOgear site). The connection software is pretty crummy-looking, but it works, and their site claims that it supports Macs as well Windows (although I have not used it on a Mac). Since it's USB 1.1, it is as slow as molassass for entire-drive transfers, and you may prefer a different method.
Another option I looked into was an ethernet crossover cable, which, I believe swaps two of the wires over the course of the cable run. This was available at RadioShack (and I am sure other places). I decided not to go down this route, and it sounds like a no go for you as well, but I'm including it for the sake of completeness.
The third thing that might work is an external harddrive. I didn't use one because of the expense, but it may be worth it if you don't want to wait while your files transfer via USB. If you're doing smallish (less than 1GB) transfers, a thumb-drive may be the easiest way to do this.
It is VERY important that you do not try a straight USB to USB connection without the bridge cable. I understand that it can fry the USB ports on the machines. If you look at the image of the Smartlink cable on the page linked above, you'll see a bulge in the middle of the cable. That's the USB 'slave' that allows both computers to act as masters when doing the file transfer. FireWire may be a different story though, as you may just be able to plug it right in (no guarantees, though).