From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Klettke Subject: Re: POSTROUTING & DNAT Date: Wed, 10 Sep 2003 19:29:51 -0500 Sender: netfilter-admin@lists.netfilter.org Message-ID: <1063240191.29892.2.camel@klettke.us> References: <000501c32062$42b751e0$6901a8c0@tailor> <1b7301c3774d$2d14a260$8201a8c0@lw1dqwin> <1063195160.4399.0.camel@klettke.us> <005701c377e6$4fa71800$8201a8c0@lw1dqwin> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <005701c377e6$4fa71800$8201a8c0@lw1dqwin> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: "Diego R. Rodriguez Herlein" Cc: Leszek Zur , netfilter@lists.netfilter.org Diego, I'm not quite sure about your answer, I understand from it this: You do not have NAT support compiled into your kernel. You have it compiled as a kernel module though. Is this correct? On Wed, 2003-09-10 at 16:55, Diego R. Rodriguez Herlein wrote: > nop > like module ... > I am really lost about it > Thank you for your answer! > Regards, > > Diego > > PD Sorry about my english > ----- Original Message ----- > From: "Thomas Klettke" > To: "Diego R. Rodriguez Herlein" > Cc: "Leszek Zur" ; > Sent: Wednesday, September 10, 2003 8:59 AM > Subject: Re: POSTROUTING & DNAT > > > > Is NAT support compiled into the kernel? > > > > > > On Tue, 2003-09-09 at 22:39, Diego R. Rodriguez Herlein wrote: > > > Sorry those are my rules (DMZ) > > > > > > HTTP > > > # > > > iptables -t nat -A PREROUTING -p tcp -d $IP_REAL --dport 80 -j DNAT \ > > > --to-destination $IP_DMZ > > > iptables -t nat -A POSTROUTING -p tcp -d $IP_DMZ --dport 80 -j SNAT \ > > > --to-source $IP_LAN > > > iptables -t nat -A OUTPUT -p tcp -d $IP_REAL --dport 80 -j DNAT \ > > > --to-destination $IP_DMZ > > > # > > > # > > > # > > > work great with rh 7.1 kernel 2.4.17 > > > > > > > > > ----- Original Message ----- > > > From: "Leszek Zur" > > > To: > > > Sent: Thursday, May 22, 2003 10:01 AM > > > Subject: POSTROUTING & DNAT > > > > > > > > > > Hello > > > > > > > > iptables -t nat -A OUTPUT -d 1.1.1.1 -j DNAT --to-destination 2.2.2.2 > > > > iptables: Invalid argument > > > > > > > > Can anyone help me understand what is happening? > > > > > > > > iptables v1.2.8 > > > > kernel 2.4.20 > > > > > > > > thnx > > > > > > > > Leszek > > > > > > > > > > > > > > > > > >