Re: using iptables to route between public networks

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

 



On Tuesday 23 December 2003 3:32 pm, Matthew Simpson wrote:

> I must have been doing something stupid last night, because I retried it
> this morning and it works.  Here is what I have for the forward chain:
>
> $IPTABLES -A FORWARD -d 209.210.10.1/28 -j ACCEPT
> $IPTABLES -A FORWARD -d ! 209.210.10.1/28 -j DROP
> $IPTABLES -P FORWARD ACCEPT
> $IPTABLES -F FORWARD
>
> This works.

When you say "this works", is assume that's only for minimal values of 
"working" :)

I can't believe that a router which will drop all packets except those 
addressed to 209.210.10.0/28 (note that your address designation is slightly 
incorrect above) will do an effective job.

You may want to route inbound packets only to these IP addresses, but what 
about the replies?   They are going to be going to other destination 
addresses, and need routing too.....

Antony.

-- 
If the human brain were so simple that we could understand it,
we'd be so simple that we couldn't.

                                                     Please reply to the list;
                                                           please don't CC me.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux