nfsim problem with NAT
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:
Quoted 1 line
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
Quoted 1 line · Max Kellermann
Hi,
Hi Max !
Quoted 9 lines
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:
Quoted 2 lines
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
Quoted 8 lines · Samuel Jean
Quoted 6 lines
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 failedboth userspace and kernelspace use same structure ?
What do you mean by that?
Quoted 1 line
NOTE: I use SVN iptables. but shouldn't matter. I think.
Just tried that. No change.
Max