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

Re: new to networking question



On Wed, Aug 12, 1998 at 02:06:46PM -0500, Asher Haig wrote:
> Shaleh, shaleh@livenet.net on 8/12/98 11:33 PM
> 
> >Hi, I just bought a "network in a box" kit: hub, two 10/100 ethernet
> >cards, cable.  Could someone please point me to FAQs, HOWTOs etc. for
> >getting machines connected and using one box w/ ppp so all have net
> >access.  Also it is a sohoware kit, has anyone had good/bad/indifferent
> >luck w/ their hardware.  I can still take it back.
> >
> >Thanks, I am still getting accustomed to Linux networking.  Never set oe
> >up from scratch by myself.  (Which is why I am doing it).
> 
> Install all the cards and such, compile the modules, get ethernet working 
> on all the machines. Then set up ppp on one machine. Compile IPMASQ and 
> IPForwarding support in modules or in the kernel. Set up forwarding rules 
> for each internal ip, such as: 
> 
> ipfwadm -F -a m -S 10.0.0.2/32 -D 0.0.0.0/0
> ipfwadm -F -a m -S 10.0.0.3/32 -D 0.0.0.0/0
> ipfwadm -F -p deny

why not just 1 
ipfwadm -F -a m -S 10.0.0.0/32 -D 0.0.0.0/0
instead of 1 per IP?
that way all of 10* gets the ip masq forwarding?
(thats what I use)

> I put them in a file, such as /usr/bin/startipmasq. (This is on the ppp 
> machine).

or... in /etc/init.d/local.ipmasq (I use local. to prevent conflicts)
then it will set it up on reboot every time...
I have found this isn't a problem when the ppp link is downb either.

> Set up networking on the other machines (/etc/init.d/network) so that it 
> uses the ppp machine as a gateway. 10.0.0.* and 192.168.1.* both work as 
> internal-only IP ranges.

yup...and if you wanted a class B instead of a class A or C (I use the class A
10.* myself) hmm I can't find the numbers...
could have sworn it was in RFC 791...which references assigned numbers...
rfc790....hmm...I don't have that one...oh well

BTW just as a note...
I noticed that the other end of my PPP link is often 10.* ;)
makes sense tho...afterall...my ISP doesn't really need its ppp servers
to have REAL and acessable IPs ;)

> "It was like a visit by Don Carleone. I expected to 
> find a bloody computer monitor in my bed the next day."
> -- Mark Andreessen regarding the visit from Microsoft.

love the quote :)

-Steve

-- 
/* -- Stephen Carpenter <sjc@delphi.com> --- <sjc@debian.org>------------ */
E-mail "Bumper Stickers":
"A FREE America or a Drug-Free America: You can't have both!"
"honk if you Love Linux"


Reply to: