Since it appears that Speakeasy is not going to be able to figure out how to reconnect our internet, at least for a while, I got internet working simultaneously on our desktop and our laptop this morning.The trick is that the laptop has the modem, and only has a wireless network connection to the desktop, and the desktop doesn't have a modem.
I wanted ssh and http connections to work from the desktop. To make it work, the laptop opens an ssh tunnel to my web server and another tunnel to the desktop, and forwards ssh and http packets from the desktop to the web server, where they are then handled by a squid and ssh server respectively.
The laptop is using windows, so I am using Putty
The settings that are required are:
  • local port forwarding source 3129 to localhost:3128 (forwarding laptop traffic to the squid server)
  • remote port forwarding source 3129 to localhost:3129 (forwarding desktop traffic to the squid server, via the laptop, there might be a better way to do that, but I am not sure how to do it)
  • remote port forwarding source 2222 to orange:22 (forwarding desktop traffic to the ssh server directly - this port can go directly, because the ssh server allows traffic from anywhere, but the squid server only allows traffic from the localhost)
Tada - our desktop is now using the wireless network to access the internet over the laptop's modem!
A side-effect of this is that it is likely that we will be on dialup for most of the day, since Heather hasn't had internet in a while, so probably has things to do, as well as if I understand our new phone plan correctly (we got a cheaper one than the unlimited, since it is annoying to pay $25 for a phone line with no features) it costs $.07 per call during the day, and so it is actually better to make less, but longer calls, instead of the short dialups, that I have been doing...
Our skype phone is on, 412-567-2676. (also sort of fun - using an internet phone over a dialup connection...)

Yes, I'm a geek.
posted by Jon Daley on October 21, 2005, 8:30 AM
Category Internet
Comments (rss)