On Wednesday 08 March 2006 20:28, Kris Kerwin <[EMAIL PROTECTED]> wrote 
about '[gentoo-user] Printer Sharing with Samba':
> First off, I have a laptop with only one ethernet port, so setting up
> an ad hoc network between us is out of the question. Also, my school
> has a "one port - one computer" rule that prohibits routers.

That doesn't prohibit routers, it encourages them; routers add to the 
number of ports in your room. ;)  That rule just prohibits calculators, 
PDAs, cell phones, portable gaming devices, game consoles, moderm 
microwave ovens, modern televisions, some watches, etc., etc. (since they 
are [or contain] computers) from the room.

Real solutions:
(1) Get a wireless AP and connect both computers to it.  It doesn't have to 
have or use a port.
(2) Break the rules, they are stupid.
   (a) Generally speaking, students in dorms have an expectation of privacy 
so they can't (for example) search your room when you are gone.
   (b) A properly configured router doesn't look any different from a 
single computer network-wise.  You can do MAC duplication/spoofing if you 
had to register that with Computing Services.

> Second, since we're both behind a DHCPd server, we both have dynamic
> IPs. There's no easy way to point his computer to the right server if
> it has a dynamic IP.

Does it work like DNSmasq so that it does caching and local DNS?  Maybe you 
can just have the gentoo machine request a certain domain name and have 
the windows machine use that.  Heck, my school allowed student to have 
entries in the school's DNS, as log as the school wasn't using it so you 
might see if that's an option.

> Third, since we're both behind a router, using something like DynDNS
> to provide a static contact despite the dynamic IP won't work either.

Sure it does.  My computer was behind a router for nearly a year and ssh or 
whatever worked fine.  Do you get site-local IPs (10.0.0.0/8, 
192.168.0.0/16, or 176.0.0.0/8) or real IPs?  With real IPs you are set on 
that front.  With site-local, DynDNS would be doing the 'Net a favor to 
disallow them being registered, but you could try anyway.

In either case, does the router filter any ports?  That would be the big 
stumbling block, but if you find a single one that is open you could run 
cups (or what have you) on it.  If there's fewer ports open than you need, 
ssh tunnels can do SOCKS proxying and, IIRC, there's even kernel patches 
to force all connections through a SOCKS proxy.  (Heck, you don't really 
need kernel patches if you can write C and know how to use the LD_PRELOAD 
thingy.)

Finally, depending on how the router is set up, you may be able to do peer 
discovery through ARP or mDNS.

> So, I guess what I'm wondering is if there's any way to make this
> work, or if I'm SOL?

I doubt you are SOL, but it might take more work and /research/ than you 
are willing to put into it.

-- 
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh
-- 
gentoo-user@gentoo.org mailing list

Reply via email to