Hi,
I'm currently trying to migrate from ipset(+iptables) on Linux to ipfw(8) on FreeBSD.
I've a couple of complex parts that I'm struggling with.
1. I've a set of (IP,port) pairs, with a /16 network, e.g. 10.5.10.5,1232. The set contains about 3000 pairs. There is then a forward rule IP is the src-addr, and the port is the dst-port.
(The dst-port is then nat-ed to another dst-addr, but that bit comes in q2). I've seen that there are tables
2. Ports in the 1200-1299 range will NAT to a specific server (e.g. 10.100.9.12). I also have a backup server, which I can manually switch to with ipset.
Thanks,
Chris
I'm currently trying to migrate from ipset(+iptables) on Linux to ipfw(8) on FreeBSD.
I've a couple of complex parts that I'm struggling with.
1. I've a set of (IP,port) pairs, with a /16 network, e.g. 10.5.10.5,1232. The set contains about 3000 pairs. There is then a forward rule IP is the src-addr, and the port is the dst-port.
(The dst-port is then nat-ed to another dst-addr, but that bit comes in q2). I've seen that there are tables
ipfw add table 1 10.5.10.5 1232 and tables have an optional value. But I've been unable to find the syntax to ipfw add allow tcp from 'table(1)' to me 'tablevalue' in. Is this possible? Or should I restructure my rules?2. Ports in the 1200-1299 range will NAT to a specific server (e.g. 10.100.9.12). I also have a backup server, which I can manually switch to with ipset.
ipset swap main-server-12, backup-server-12. I haven't found anything comparable in ipfw, but it's a simple delete and add, so I can make it work. Was just wondering if there is a cleaner way?Thanks,
Chris
Last edited by a moderator: