Skip to content

plat: NAT64'd private traffic follow BGP best path #194

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions itamae/roles/plat/templates/etc/bird/bird.conf.d/plat.conf
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ protocol bgp bgp_outside {

ipv4 {
table bgp4;
import filter {
if net = 0.0.0.0/0 then accept;
reject;
};
import all;
export filter {
if dest = RTD_UNREACHABLE then reject; # static recursive route can be RTD_UNREACHABLE when unresolvable
if net = <%= node.dig(:plat, :nat64).fetch(:outer_public) %>/32 then accept;
Expand Down
4 changes: 4 additions & 0 deletions itamae/roles/plat/templates/etc/nftables/plat.conf
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@ table inet plat {
}

chain forward-xlat2inside {
ip saddr $nat64_outer accept

ct state invalid,new,untracked counter counter drop

ip6 saddr { $pref64n, 2001:df0:8500:ca6d::/64 } counter accept
counter drop
}

chain forward-inside2xlat {
ip daddr $nat64_outer accept

meta l4proto tcp ct state invalid,untracked counter reject with tcp reset
ct state invalid,untracked counter drop

Expand Down