OpenWrt Forum Archive

Topic: Kamikaze : Iptables POSTROUTING... SNAT.... not working???

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

Can someone test if the command below works on his version of Kamikaze? So I can locate the problem.. it's either by me or generic...
It worked on my older version (4046 Kernel 2.4 last year) but not on this one anymore.

iptables -A POSTROUTING -t nat -o eth0 -s 192.168.1.0/24 -d 192.168.157.5 -m state --state ! INVALID -j SNAT --to-source 192.168.157.2
iptables v1.3.7: Unknown arg `--to-source'
Try `iptables -h' or 'iptables --help' for more information.

Thanks for your help.


Below the list of all the package I installed... (In installed for testing purpose all the netfilter available package)

root@OpenWrt:/packages# ipkg list
base-files-x86-2.6 - 8-7681 -
bridge - 1.0.6-1 -
busybox - 1.4.2-1 -
dnsmasq - 2.38-1 -
dropbear - 0.49-2 -
hotplug2 - 0.9-1 -
iptables - 1.3.7-1 -
kernel - 2.6.22-rc5-x86- -
kmod-arptables - 2.6.22-rc5-x86 -
kmod-ebtables - 2.6.22-rc5-x86 -
kmod-fs-nfs - 2.6.22-rc5-x86 -
kmod-hwmon - 2.6.22-rc5-x86 -
kmod-hwmon-pc87360 - 2.6.22-rc5-x86 -
kmod-ipt-conntrack - 2.6.22-rc5-x86 -
kmod-ipt-extra - 2.6.22-rc5-x86 -
kmod-ipt-filter - 2.6.22-rc5-x86 -
kmod-ipt-imq - 2.6.22-rc5-x86 -
kmod-ipt-ipopt - 2.6.22-rc5-x86 -
kmod-ipt-iprange - 2.6.22-rc5-x86 -
kmod-ipt-ipsec - 2.6.22-rc5-x86 -
kmod-ipt-ipset - 2.6.22-rc5-x86 -
kmod-ipt-nat - 2.6.22-rc5-x86 -
kmod-ipt-queue - 2.6.22-rc5-x86 -
kmod-leds-net48xx - 2.6.22-rc5-x86 -
kmod-madwifi - 2.6.22-rc5+r2420-20070602-x86-1 -
kmod-natsemi - 2.6.22-rc5-x86 -
kmod-ne2k-pci - 2.6.22-rc5-x86 -
kmod-nsc-gpio - 2.6.22-rc5-x86 -
kmod-ppp - 2.6.22-rc5-x86 -
kmod-pppoe - 2.6.22-rc5-x86 -
kmod-scx200-gpio - 2.6.22-rc5-x86 -
kmod-scx200-wdt - 2.6.22-rc5-x86 -
libgcc - 4.1.2-8 -
libopenssl - 0.9.8e-1 -
mtd - 5 -
pcmcia-cs - 3.2.8-1 -
ppp - 2.4.3-7 -
ppp-mod-pppoe - 2.4.3-7 -
uclibc - 0.9.28-8 -
udevtrigger - 106-1 -
wireless-tools - 29-1 -
wpa-cli - 0.5.7-1 -
wpa-supplicant - 0.5.7-1 -
zlib - 1.2.3-3 -
Done.

Hi,

Some more info... I tried on Kamikaze 7.06 and it works... then the issue is probably linked with the new kernel implementation... I continue to investigate.

The discussion might have continued from here.