Re: avoid NAT for one address?

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

 



On Sat, 2004-07-24 at 12:24, Antony Stone wrote:
> On Saturday 24 July 2004 6:00 pm, Les Mikesell wrote:
> 
> > So, the long story comes down to this question: is there a simple
> > statement I can add to force all packets to a certain destination
> > to skip over all the other special cases and go directly out the
> > right interface with no nat or other changes?  I'd like to keep the
> > changes to a minimum since everything else works.
> 
> iptables -I POSTROUTING -t nat -d a.b.c.d -j ACCEPT
> 
> where a.b.c.d is the destination address for packets you don't want anything 
> changed on.

Thanks, but it didn't fix it and iptables -v -t nat --list shows
that the rule isn't being hit.  The weird thing here is that
tcpdump sees the GRE packets coming in on the eth1 interface OK but
as they go out the cipcb0 interface they are source-natted with
the eth0 interface address and I don't see any rules that
should be causing that - but I'm not sure I understand them
all.

---
  Les Mikesell
   les@xxxxxxxxxxxxxxxx




[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