I have had some custom rules in place for the last 2 years (white list sets) that has worked perfectly with my old N66U. However, getting a new AC68U and upgrading to the latest Merlin v380.66_4 I noticed that my scripts no longer work. Most likely due to an updated updated kernel and new version of "iptables/ipset" in my new router.
The previous version said (v380.66_2, N66U):
> ipset -V
ipset v4.5, protocol version 4.
Kernel module protocol version 4.
and the new version (v380.66_4, AC68U)
> ipset -V
ipset v6.29, protocol version: 6
I just can't seem to get the new syntax right.
Previously I had (as example, this is slightly simplified but still exhibits the same error) the WCHAIND is a custom chain rule for logging and dropping src addresses not in the whitelist. The ipset "whitelist" exists prior to this command.
iptables -A FORWARD -i eth0 -m set ! --set whitelist src -j WCHAIND
This gave a warning "--set being deprecated, use --match-set" so I updated to
iptables -A FORWARD -i eth0 -m set ! --match-set whitelist src -j WCHAIND
However, that still gives the error
"iptables: No chain/target/match by that name."
I have tried various permutation but I just can't seem to get the new syntax right. Having re-read the updated iptables/ipset manual pages my understanding is that the above line "should" work, but of course it doesn't
Anyone with a better idea than me?
The previous version said (v380.66_2, N66U):
> ipset -V
ipset v4.5, protocol version 4.
Kernel module protocol version 4.
and the new version (v380.66_4, AC68U)
> ipset -V
ipset v6.29, protocol version: 6
I just can't seem to get the new syntax right.
Previously I had (as example, this is slightly simplified but still exhibits the same error) the WCHAIND is a custom chain rule for logging and dropping src addresses not in the whitelist. The ipset "whitelist" exists prior to this command.
iptables -A FORWARD -i eth0 -m set ! --set whitelist src -j WCHAIND
This gave a warning "--set being deprecated, use --match-set" so I updated to
iptables -A FORWARD -i eth0 -m set ! --match-set whitelist src -j WCHAIND
However, that still gives the error
"iptables: No chain/target/match by that name."
I have tried various permutation but I just can't seem to get the new syntax right. Having re-read the updated iptables/ipset manual pages my understanding is that the above line "should" work, but of course it doesn't
Anyone with a better idea than me?