config ipset
option name 'foobar'
option family 'ipv4'
list match 'dest_ip'
list entry '192.168.10.30'
config redirect
option dest 'home'
option target 'DNAT'
option name 'https to foobar'
list proto 'tcp'
option src 'wan'
option src_dport '443'
option ipset 'foobar'
option dest_port '443'
However if I replace
option ipset 'foobar'
With:
option dest_ip '192.168.10.30'
It works perfectly. Any ideas on what I do wrong here?
I will reuse foobar/192.168.10.30 many places, but I plan to migrate that host to a different subnet. So I wanted to use ipsets so I would only need to update it from one place.
Well, ipsets are meant to be used to hold a set of IP addresses, and the destination of a redirect rule can only be a single IP address... so, even if you only keep a single IP address in that ipset, it does not make much sense that the destination is an ipset, does it?
I understand your need, but i do not think an ipset is the right solution (nor I know of a better alternative, unfortunately).