On Thu, 2005-09-29 at 17:13 -0400, daniel wrote:
> On September 29, 2005 03:32 pm, Michael Kjorling wrote:
> > On 2005-09-29 15:19 -0400, [EMAIL PROTECTED] wrote:
> > > I thought I could just allow Linux to forward the packets, but I couldn't
> > > figure out the routing since I'm not dealing with a whole subnet, only a
> > > few allocated IPs.
> >
> > If a network delegation does not lend itself to being expressed in
> > CIDR (network/masklen) notation easily, and especially if it is just a
> > few addresses, your best bet may be to simply treat it as several host
> > routes. Then set up routing as usual.
> 
> I'm not sure I understand.  Can you explain with a little more detail?  In my 
> case, the IPs I'm working with are:
> 
>   x.y.z.186
>   x.y.z.187
>   x.y.z.188
>   x.y.z.189
>   x.y.z.190
> 
> 
> -- 
> what the scientists have in their briefcases is terrifying.
>   - nikita khrushchev
Your initial post was 4 ip addresses from 10-13, their is no legal
subnet that contains only those four ip addresses.  

This time you posted 5 ip addresses from 186-190, again , no legal
subnet.

Since you don't actually have an ip network, but a few addresses
belonging to a network you need to use host routes. 

You can google for stuff like "ip subnet" and "CIDR" for more
information.

Be careful with just using postrouting and prerouting chains, if you
really don't understand the flow you will likely get yourself into
trouble.

Hence back to host routing as was previously suggested.


Regards,
Ted




-- 
gentoo-user@gentoo.org mailing list

Reply via email to