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
I have the some problem with rh 8, kernel 2.4.20 iptables 1.2.7a Can anyone help me ???
Regards
Diego
----- Original Message -----
From: "Leszek Zur" <[email protected]>
To: <[email protected]>
Sent: Thursday, May 22, 2003 10:01 AM
Subject: POSTROUTING & DNAT
Quoted 16 lines
Hello
iptables -t nat -A OUTPUT -d 1.1.1.1 -j DNAT --to-destination 2.2.2.2
iptables: Invalid argumentCan anyone help me understand what is happening?
iptables v1.2.8
kernel 2.4.20thnx
Leszek
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" <[email protected]>
To: <[email protected]>
Sent: Thursday, May 22, 2003 10:01 AM
Subject: POSTROUTING & DNAT
Quoted 16 lines
Hello
iptables -t nat -A OUTPUT -d 1.1.1.1 -j DNAT --to-destination 2.2.2.2
iptables: Invalid argumentCan anyone help me understand what is happening?
iptables v1.2.8
kernel 2.4.20thnx
Leszek
Is NAT support compiled into the kernel?
Quoted 40 lines · Diego R. Rodriguez Herlein
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" <[email protected]>
To: <[email protected]>
Sent: Thursday, May 22, 2003 10:01 AM
Subject: POSTROUTING & DNATQuoted 16 lines
Hello
iptables -t nat -A OUTPUT -d 1.1.1.1 -j DNAT --to-destination 2.2.2.2
iptables: Invalid argumentCan anyone help me understand what is happening?
iptables v1.2.8
kernel 2.4.20thnx
Leszek
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" <[email protected]>
To: "Diego R. Rodriguez Herlein" <[email protected]>
Cc: "Leszek Zur" <[email protected]>; <[email protected]>
Sent: Wednesday, September 10, 2003 8:59 AM
Subject: Re: POSTROUTING & DNAT
Quoted 45 lines
Is NAT support compiled into the kernel?
Quoted 40 lines · Diego R. Rodriguez Herlein
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" <[email protected]>
To: <[email protected]>
Sent: Thursday, May 22, 2003 10:01 AM
Subject: POSTROUTING & DNATQuoted 16 lines
Hello
iptables -t nat -A OUTPUT -d 1.1.1.1 -j DNAT --to-destination 2.2.2.2
iptables: Invalid argumentCan anyone help me understand what is happening?
iptables v1.2.8
kernel 2.4.20thnx
Leszek
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?
Quoted 63 lines · Diego R. Rodriguez Herlein
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" <[email protected]>
To: "Diego R. Rodriguez Herlein" <[email protected]>
Cc: "Leszek Zur" <[email protected]>; <[email protected]>
Sent: Wednesday, September 10, 2003 8:59 AM
Subject: Re: POSTROUTING & DNATQuoted 45 lines
Is NAT support compiled into the kernel?
Quoted 40 lines · Diego R. Rodriguez Herlein
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" <[email protected]>
To: <[email protected]>
Sent: Thursday, May 22, 2003 10:01 AM
Subject: POSTROUTING & DNATQuoted 16 lines
Hello
iptables -t nat -A OUTPUT -d 1.1.1.1 -j DNAT --to-destination 2.2.2.2
iptables: Invalid argumentCan anyone help me understand what is happening?
iptables v1.2.8
kernel 2.4.20thnx
Leszek
yes, sorry about my english .. I have nat compiled as kernel module ... I found the problem
I fix it ...
I must compile the kernel with this ...
Networking options ---> IP: Netfilter Configuration --->[*] NAT of
local connections (READ HELP)
When I include this the rule of the output chain was accept I hope this help anyone.
Again sorry about my english y thanks for all
Best regards,
Diego
----- Original Message -----
From: "Thomas Klettke" <[email protected]>
To: "Diego R. Rodriguez Herlein" <[email protected]>
Cc: "Leszek Zur" <[email protected]>; <[email protected]>
Sent: Wednesday, September 10, 2003 9:29 PM
Subject: Re: POSTROUTING & DNAT
Quoted 6 lines
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.
Quoted 32 lines
Is this correct?
Quoted 26 lines · Diego R. Rodriguez Herlein
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" <[email protected]>
To: "Diego R. Rodriguez Herlein" <[email protected]>
Cc: "Leszek Zur" <[email protected]>; <[email protected]>
Sent: Wednesday, September 10, 2003 8:59 AM
Subject: Re: POSTROUTING & DNATQuoted 9 lines
Is NAT support compiled into the kernel?
Quoted 5 lines · Diego R. Rodriguez Herlein
Sorry those are my rules (DMZ)
HTTP
#
iptables -t nat -A PREROUTING -p tcp -d $IP_REAL --dport 80 -j DNAT
\
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
--to-destination $IP_DMZ
iptables -t nat -A POSTROUTING -p tcp -d $IP_DMZ --dport 80 -j SNAT
\
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
--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" <[email protected]>
To: <[email protected]>
Sent: Thursday, May 22, 2003 10:01 AM
Subject: POSTROUTING & DNAT
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Hello
iptables -t nat -A OUTPUT -d 1.1.1.1 -j DNAT --to-destination
2.2.2.2
Quoted 17 lines
Quoted 16 lines
Quoted 15 lines
Quoted 14 lines
Quoted 13 lines
iptables: Invalid argument
Can anyone help me understand what is happening?
iptables v1.2.8
kernel 2.4.20thnx
Leszek