1 |
On Thu, 2005-09-29 at 17:13 -0400, daniel wrote: |
2 |
> On September 29, 2005 03:32 pm, Michael Kjorling wrote: |
3 |
> > On 2005-09-29 15:19 -0400, danstemporaryaccount@×××××.ca wrote: |
4 |
> > > I thought I could just allow Linux to forward the packets, but I couldn't |
5 |
> > > figure out the routing since I'm not dealing with a whole subnet, only a |
6 |
> > > few allocated IPs. |
7 |
> > |
8 |
> > If a network delegation does not lend itself to being expressed in |
9 |
> > CIDR (network/masklen) notation easily, and especially if it is just a |
10 |
> > few addresses, your best bet may be to simply treat it as several host |
11 |
> > routes. Then set up routing as usual. |
12 |
> |
13 |
> I'm not sure I understand. Can you explain with a little more detail? In my |
14 |
> case, the IPs I'm working with are: |
15 |
> |
16 |
> x.y.z.186 |
17 |
> x.y.z.187 |
18 |
> x.y.z.188 |
19 |
> x.y.z.189 |
20 |
> x.y.z.190 |
21 |
> |
22 |
> |
23 |
> -- |
24 |
> what the scientists have in their briefcases is terrifying. |
25 |
> - nikita khrushchev |
26 |
Your initial post was 4 ip addresses from 10-13, their is no legal |
27 |
subnet that contains only those four ip addresses. |
28 |
|
29 |
This time you posted 5 ip addresses from 186-190, again , no legal |
30 |
subnet. |
31 |
|
32 |
Since you don't actually have an ip network, but a few addresses |
33 |
belonging to a network you need to use host routes. |
34 |
|
35 |
You can google for stuff like "ip subnet" and "CIDR" for more |
36 |
information. |
37 |
|
38 |
Be careful with just using postrouting and prerouting chains, if you |
39 |
really don't understand the flow you will likely get yourself into |
40 |
trouble. |
41 |
|
42 |
Hence back to host routing as was previously suggested. |
43 |
|
44 |
|
45 |
Regards, |
46 |
Ted |
47 |
|
48 |
|
49 |
|
50 |
|
51 |
-- |
52 |
gentoo-user@g.o mailing list |