[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Providing network services for a laptop. Internet connection, and PPP



* John Purser (jmpurser2@home.com) [011023 12:58]:
> Hello,
> 
> I'm running Debian Woody with a custom 2.4.10 kernel.  On weekends someone
> plugs their laptop running Win2K into my ethernet network.  In order to
> allow her to browse the internet I have to reconfigure her (static) IP
> settings.  In order to allow her to dial into the company NT server I have
> to run a phone line down to her desk in addition to the ethernet cable.
> Here's what I'm trying to do.
> 
> First I want to configure my Debian machine to answer to the IP addresses of
> the DNS servers she uses at work.  I did this on a Red Hat box from
> instructions in the Apache manual by O'Reilly but if anyone can steer me to
> a HOWTO on this I'd appreciate it.

I take it you built iptables support into your custom kernel. How about
DNAT?

$IPTABLES -A POSTROUTING -s $HER_IP -d $CORP_DNS -j DNAT \
--to-destination $GATEWAY_IP

> Second set up DNS (BIND) on the Debian box.  I was planning to do that
> anyway just for the experience.  I think I can configure a route to her
> company's NT box through a modem connected to the Debian box.  Does this
> sound like a good idea and if so can you steer me to some applicable HOWTO's
> or other docs that have been helpful to you.
> 
> Am I overlooking something?  Is this the best approach to this problem?

That all looks good. If she can get away without the phone line, then it
would be easiest for her to just set up another connection, say
"weekend-dhcp", on her laptop and let win2k use that on the weekends.
Then the only thing you'd need to do is apt-get install dhcp.

The solution you describe, though, spoofing her DNS and providing a PPP
link to her corporate server through your ethernet LAN, is the least
headache for the end user (and will be more fun to set up).


-- 
Vineet                                   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\!             |tr 'a-zA-Z' 'n-za-mN-ZA-M'

Attachment: pgpGUdp86SrtJ.pgp
Description: PGP signature


Reply to: