All of lore.kernel.org
 help / color / mirror / Atom feed
* nfsim problem with NAT
@ 2005-01-18 23:17 Max Kellermann
  2005-01-18 23:28 ` Samuel Jean
  0 siblings, 1 reply; 3+ messages in thread
From: Max Kellermann @ 2005-01-18 23:17 UTC (permalink / raw)
  To: netfilter-devel

Hi,

I'm trying to write a nfsim test for the H.323 conntrack module. The
NAT part fails, because I cannot set up the NAT rule:

 > 14:iptables -t nat -A POSTROUTING -o eth1 -p tcp --dport 1720 -j SNAT --to-source 192.168.0.100
 iptables: Invalid argument
 iptables: command failed
 Script failed at line 14: 
 iptables failed

I get the same message with the NAT tests from nfsim-testsuite
(e.g. 03NAT/62ftpdata-port.sim). My iptables version is v1.2.11, Linux
kernel 2.6.11-rc1 (nfsim fails to compile 2.6.11-rc1-mm1, anyone
interested in a detailed report or patch?).

Max

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

* Re: nfsim problem with NAT
  2005-01-18 23:17 nfsim problem with NAT Max Kellermann
@ 2005-01-18 23:28 ` Samuel Jean
  2005-01-18 23:32   ` Max Kellermann
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Jean @ 2005-01-18 23:28 UTC (permalink / raw)
  To: Max Kellermann; +Cc: netfilter-devel

Max Kellermann wrote:
> Hi,

Hi Max !

> 
> I'm trying to write a nfsim test for the H.323 conntrack module. The
> NAT part fails, because I cannot set up the NAT rule:
> 
>14:iptables -t nat -A POSTROUTING -o eth1 -p tcp --dport 1720 -j SNAT --to-source 192.168.0.100
>  iptables: Invalid argument
>  iptables: command failed
>  Script failed at line 14: 
>  iptables failed

both userspace and kernelspace use same structure ?

it works well for me:

 > iptables -t nat -A POSTROUTING -o eth1 -p tcp --dport 1720 -j SNAT 
--to-source 192.168.0.100
 >

NOTE: I use SVN iptables. but shouldn't matter. I think.

Samuel

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

* Re: nfsim problem with NAT
  2005-01-18 23:28 ` Samuel Jean
@ 2005-01-18 23:32   ` Max Kellermann
  0 siblings, 0 replies; 3+ messages in thread
From: Max Kellermann @ 2005-01-18 23:32 UTC (permalink / raw)
  To: netfilter-devel

On 2005/01/19 00:28, Samuel Jean <sj-netfilter@cookinglinux.org> wrote:
> >14:iptables -t nat -A POSTROUTING -o eth1 -p tcp --dport 1720 -j SNAT 
> >--to-source 192.168.0.100
> > iptables: Invalid argument
> > iptables: command failed
> > Script failed at line 14: 
> > iptables failed
> 
> both userspace and kernelspace use same structure ?

What do you mean by that?

> NOTE: I use SVN iptables. but shouldn't matter. I think.

Just tried that. No change.

Max

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

end of thread, other threads:[~2005-01-18 23:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-18 23:17 nfsim problem with NAT Max Kellermann
2005-01-18 23:28 ` Samuel Jean
2005-01-18 23:32   ` Max Kellermann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.