New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement: use "inet" family for NAT instead of "ip" and "ip6" #628
Comments
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 24, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 24, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 24, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 30, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 30, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 30, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 30, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 30, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 30, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 30, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 30, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 30, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 30, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 30, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Nov 30, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Dec 1, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Dec 1, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Dec 1, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
erig0
added a commit
to erig0/firewalld
that referenced
this issue
Dec 1, 2020
BREAKING CHANGE: This changes the rule layout and imposes a new linux kernel >= 5.3 dependency. This means we now require linux kernel >= 5.3. nftables nat inet family support was added in d164385ec572 ("netfilter: nat: add inet family nat support"), but we require linux >= 5.3 due to fix b4f1483cbfa5 ("netfilter: nf_tables: Support auto-loading for inet nat"). The main advantage of this change is we now consolidate all rules into the "inet" family. Previously we had to duplicate nat rules into the "ip" and "ip6" families. It also meant duplicating sets. Thus we go from three copies of "ipsets" to just one. Fixes: firewalld#628
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
This applies only to the nftables backend.
Currently forward-ports (DNAT) are done in the "ip" and "ip6" family tables. Historically nftables did not support NAT in "inet". This has recently been fixed.
Improvement
The kernel recently gained support for allowing NAT inside "inet" family. We should replace using "ip" and "ip6". This will consolidate all of firewalld rules into the "inet" family.
Benefits
Caveats
This means bumping the minimal required kernel version and the minimal required nftables version.
The text was updated successfully, but these errors were encountered: