Date: Mon, 6 Sep 1999 10:03:12 +0300 From: Ruslan Ermilov <ru@ucb.crimea.ua> To: john holland <johnbsd@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Cable modem 2-interface setup with natd? Message-ID: <19990906100312.B11485@relay.ucb.crimea.ua> In-Reply-To: <19990905001429.400.rocketmail@web601.yahoomail.com>; from john holland on Sat, Sep 04, 1999 at 05:14:29PM -0700 References: <19990905001429.400.rocketmail@web601.yahoomail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 04, 1999 at 05:14:29PM -0700, john holland wrote: > After a bout with DSL that didn't go very well > (unreliable) I decided to try cable modem again as a > way to the Net. It's gotten cheaper and works well for > one computer. > > Their setup is a bit odd- I'm told that it's because > they can't receive data on the cable (coax). So you > have to use a modem to dial in, but returning data > comes through the cable modem. > > They don't tell you what they're up to, but you set up > a NIC at 10.0.0.1 to talk to the cable modem, and the > telephone modem does the usual PPP stuff. So what I > want is to natd this access to other computers, and > had planned to do so on 192.168.1.1. But my computer > on 192.168.1.2 can't get through! > > my interfaces look like this: > > default 24.239.16.8 UGSc 26 > 18 tun0 > 10 link#3 UC 0 > 0 ep0 > 10.0.0.1 localhost UGHS 0 > 0 lo0 > 10.0.0.14 0:a0:73:13:8a:60 UHLW 1 > 2 ep0 894 > 24.239.16.8 n06h3097.ex-pressn UH 27 > 0 tun0 > localhost localhost UH 2 > 1 lo0 > 192.168.1 link#1 UC 0 > 0 ed1 > 192.168.1.1 localhost UGHS 0 > 0 lo0 > > > I suspect I need to do something tricky with the natd > options, ie NOT just divert all from any to any via > tun0 or ep0, but possibly inport and outport settings > as well. > > Any help would be appreciated. Nothing tricky. First, make sure you have gateway_enable="YES" in your /etc/rc.conf. If it is not, then this is obviously your problem. Then use natd(8) as usual. Or, better yet, use `-alias' option of ppp(8); it's better suited for ppp's operation than natd(8), and doesn't require you to compile divert(4) and ipfirewall(4) support into your kernel. -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990906100312.B11485>