Linux Netfilter discussions
 help / color / mirror / Atom feed
* snat Invalid argument??? (urgent)
@ 2003-02-21  8:41 Luis Miguel Cruz Miranda
  2003-02-21 16:47 ` Jose Adalberto Gonzalez
  0 siblings, 1 reply; 7+ messages in thread
From: Luis Miguel Cruz Miranda @ 2003-02-21  8:41 UTC (permalink / raw)
  To: netfilter

I execute this line:

# iptables -t nat -A POSTROUTING -s 10.1.0.253 -o eth0 -j SNAT --to-source 
194.149.216.62
iptables: Invalid argument

but it returns Invalid argument????
What is wrong here?


Luis Miguel Cruz Miranda.               |       B2B INTEGRAL, S.A.
CCNA - Systems Administrator            |       Pol. Ind. de Asipo
                                         |       C/A - Parcela 86-C
Tel: +34 902 506 605                    |       33.428 - CAYES - LLANERA
Fax:+34 985 980 794                     |       ASTURIAS (ESPAÑA/SPAIN)




^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: snat Invalid argument??? (urgent)
@ 2003-02-21  8:58 Eugene Joubert
  2003-02-21 10:28 ` Luis Miguel Cruz Miranda
  0 siblings, 1 reply; 7+ messages in thread
From: Eugene Joubert @ 2003-02-21  8:58 UTC (permalink / raw)
  To: 'Luis Miguel Cruz Miranda', netfilter

[-- Attachment #1: Type: text/plain, Size: 893 bytes --]

Did you use this as is ...with a broken line. I tried your syntax in one
line and got no errors.

Try using it in one line....

-----Original Message-----
From: Luis Miguel Cruz Miranda [mailto:luismi@b2bi.es] 
Sent: 21 02 2003 10:41 AM
To: netfilter@lists.netfilter.org
Subject: snat Invalid argument??? (urgent)


I execute this line:

# iptables -t nat -A POSTROUTING -s 10.1.0.253 -o eth0 -j SNAT --to-source 
194.149.216.62
iptables: Invalid argument

but it returns Invalid argument????
What is wrong here?


Luis Miguel Cruz Miranda.               |       B2B INTEGRAL, S.A.
CCNA - Systems Administrator            |       Pol. Ind. de Asipo
                                         |       C/A - Parcela 86-C
Tel: +34 902 506 605                    |       33.428 - CAYES - LLANERA
Fax:+34 985 980 794                     |       ASTURIAS (ESPAÑA/SPAIN)



[-- Attachment #2: Type: text/html, Size: 2381 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: snat Invalid argument??? (urgent)
  2003-02-21  8:58 snat Invalid argument??? (urgent) Eugene Joubert
@ 2003-02-21 10:28 ` Luis Miguel Cruz Miranda
  2003-02-21 10:53   ` Sven Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Luis Miguel Cruz Miranda @ 2003-02-21 10:28 UTC (permalink / raw)
  To: Eugene Joubert, netfilter

No there is no broken line at all, the borken line is beacuse of the eudora 
mail client, sorry.
I search into google and the news at google without find the solution.

I am using redhat 7.3, kernel 2.4.20 patched with 
patch-o-matic-20030218.tar, iptables is iptables-1.2.5-3 from the official rpm.

Is there any incompatibility between the patched kernel I have and the 
iptables rpm?
Should I recompile the userspace programs?

At 10:58 21/02/2003 +0200, you wrote:

>Did you use this as is ...with a broken line. I tried your syntax in one 
>line and got no errors.
>
>Try using it in one line....
>
>-----Original Message-----
>From: Luis Miguel Cruz Miranda [<mailto:luismi@b2bi.es>mailto:luismi@b2bi.es]
>Sent: 21 02 2003 10:41 AM
>To: netfilter@lists.netfilter.org
>Subject: snat Invalid argument??? (urgent)
>
>I execute this line:
>
># iptables -t nat -A POSTROUTING -s 10.1.0.253 -o eth0 -j SNAT --to-source
>194.149.216.62
>iptables: Invalid argument
>
>but it returns Invalid argument????
>What is wrong here?
>
>Luis Miguel Cruz Miranda.               |       B2B INTEGRAL, S.A.
>CCNA - Systems Administrator            |       Pol. Ind. de Asipo
>                                          |       C/A - Parcela 86-C
>Tel: +34 902 506 605                    |       33.428 - CAYES - LLANERA
>Fax:+34 985 980 794                     |       ASTURIAS (ESPAÑA/SPAIN)

Luis Miguel Cruz Miranda.               |       B2B INTEGRAL, S.A.
CCNA - Systems Administrator            |       Pol. Ind. de Asipo
                                         |       C/A - Parcela 86-C
Tel: +34 902 506 605                    |       33.428 - CAYES - LLANERA
Fax:+34 985 980 794                     |       ASTURIAS (ESPAÑA/SPAIN)




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: snat Invalid argument??? (urgent)
  2003-02-21 10:28 ` Luis Miguel Cruz Miranda
@ 2003-02-21 10:53   ` Sven Schuster
  2003-02-21 12:21     ` Luis Miguel Cruz Miranda
  0 siblings, 1 reply; 7+ messages in thread
From: Sven Schuster @ 2003-02-21 10:53 UTC (permalink / raw)
  To: Luis Miguel Cruz Miranda; +Cc: netfilter

Luis Miguel Cruz Miranda wrote:

> No there is no broken line at all, the borken line is beacuse of the 
> eudora mail client, sorry.
> I search into google and the news at google without find the solution.
>
> I am using redhat 7.3, kernel 2.4.20 patched with 
> patch-o-matic-20030218.tar, iptables is iptables-1.2.5-3 from the 
> official rpm.
>
> Is there any incompatibility between the patched kernel I have and the 
> iptables rpm?
> Should I recompile the userspace programs?


Yes I think this is your problem. Just get iptables v1.2.7a source code 
(or the latest CVS)
and compile it again. Everything should work fine after that.

Sven



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: snat Invalid argument??? (urgent)
  2003-02-21 10:53   ` Sven Schuster
@ 2003-02-21 12:21     ` Luis Miguel Cruz Miranda
  2003-02-21 13:23       ` Sven Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Luis Miguel Cruz Miranda @ 2003-02-21 12:21 UTC (permalink / raw)
  To: Sven Schuster; +Cc: netfilter

Hummmm.
I use cvs code but I can use the userspace patches :/ and I need them :/
Any idea?

At 11:53 21/02/2003 +0100, Sven Schuster wrote:
>Luis Miguel Cruz Miranda wrote:
>
>>No there is no broken line at all, the borken line is beacuse of the 
>>eudora mail client, sorry.
>>I search into google and the news at google without find the solution.
>>
>>I am using redhat 7.3, kernel 2.4.20 patched with 
>>patch-o-matic-20030218.tar, iptables is iptables-1.2.5-3 from the official rpm.
>>
>>Is there any incompatibility between the patched kernel I have and the 
>>iptables rpm?
>>Should I recompile the userspace programs?
>
>
>Yes I think this is your problem. Just get iptables v1.2.7a source code 
>(or the latest CVS)
>and compile it again. Everything should work fine after that.
>
>Sven

Luis Miguel Cruz Miranda.               |       B2B INTEGRAL, S.A.
CCNA - Systems Administrator            |       Pol. Ind. de Asipo
                                         |       C/A - Parcela 86-C
Tel: +34 902 506 605                    |       33.428 - CAYES - LLANERA
Fax:+34 985 980 794                     |       ASTURIAS (ESPAÑA/SPAIN)




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: snat Invalid argument??? (urgent)
  2003-02-21 12:21     ` Luis Miguel Cruz Miranda
@ 2003-02-21 13:23       ` Sven Schuster
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Schuster @ 2003-02-21 13:23 UTC (permalink / raw)
  To: Luis Miguel Cruz Miranda; +Cc: netfilter


What version of iptables does

iptables -V

give you?? You will have to recompile if you have an old version...

Sven


Luis Miguel Cruz Miranda wrote:

> Hummmm.
> I use cvs code but I can use the userspace patches :/ and I need them :/
> Any idea?




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: snat Invalid argument??? (urgent)
  2003-02-21  8:41 Luis Miguel Cruz Miranda
@ 2003-02-21 16:47 ` Jose Adalberto Gonzalez
  0 siblings, 0 replies; 7+ messages in thread
From: Jose Adalberto Gonzalez @ 2003-02-21 16:47 UTC (permalink / raw)
  To: Luis Miguel Cruz Miranda; +Cc: netfilter

Luis,

I have seen similar problems when iptables has not been compiled and
installed
correctly (The INSTALL files needs to be read carefully).  If your syntax is
correct
are you are running 1.2.7a on a linux system, are you booting the right
kernel that
you used to build iptables?  Some times this problem also happends because
the
target module has not been loaded from the library or the kernel.

Good luck,

Jose.



----- Original Message -----
From: "Luis Miguel Cruz Miranda" <luismi@b2bi.es>
To: <netfilter@lists.netfilter.org>
Sent: Friday, February 21, 2003 12:41 AM
Subject: snat Invalid argument??? (urgent)


I execute this line:

# iptables -t nat -A POSTROUTING -s 10.1.0.253 -o eth0 -j SNAT --to-source
194.149.216.62
iptables: Invalid argument

but it returns Invalid argument????
What is wrong here?


Luis Miguel Cruz Miranda.               |       B2B INTEGRAL, S.A.
CCNA - Systems Administrator            |       Pol. Ind. de Asipo
                                         |       C/A - Parcela 86-C
Tel: +34 902 506 605                    |       33.428 - CAYES - LLANERA
Fax:+34 985 980 794                     |       ASTURIAS (ESPAÑA/SPAIN)





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-02-21 16:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-21  8:58 snat Invalid argument??? (urgent) Eugene Joubert
2003-02-21 10:28 ` Luis Miguel Cruz Miranda
2003-02-21 10:53   ` Sven Schuster
2003-02-21 12:21     ` Luis Miguel Cruz Miranda
2003-02-21 13:23       ` Sven Schuster
  -- strict thread matches above, loose matches on Subject: below --
2003-02-21  8:41 Luis Miguel Cruz Miranda
2003-02-21 16:47 ` Jose Adalberto Gonzalez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox