ich habe mal nft list ruleset ausgeführt und rein geschaut, für mich sieht es so aus als wäre das bei IPv6 auch drin.
Das mit der MTU ist auch ein guter Gedanke, aber ich bin per Kabel angebunden, das heißt die Default MTU von 1420 sollte perfekt sein. Ich habe mal ping -s 1372 -M do fd00:0:0:0:0042:c0ff:fea8:01c1 durchgeführt, das geht wunderbar durch. Wenn ich es über 1372 drehe geht es natürlich nicht mehr, dann haben wir mehr Protokoll overhead.
Code
table inet filter {
chain input {
type filter hook input priority filter; policy accept;
}
chain forward {
type filter hook forward priority filter; policy accept;
}
chain output {
type filter hook output priority filter; policy accept;
}
}
# Warning: table ip nat is managed by iptables-nft, do not touch!
table ip nat {
chain postrouting {
type nat hook postrouting priority srcnat; policy accept;
masquerade
}
chain prerouting {
type nat hook prerouting priority dstnat; policy accept;
ip daddr 1.2.3.4 tcp dport 80 dnat to 192.168.1.241
ip daddr 1.2.3.4 tcp dport 443 dnat to 192.168.1.241
}
chain DOCKER {
iifname "docker0" counter packets 0 bytes 0 return
iifname "br-6a1b61d22aef" counter packets 0 bytes 0 return
iifname "br-a5846efba401" counter packets 0 bytes 0 return
iifname != "docker0" tcp dport 9443 counter packets 0 bytes 0 dnat to 172.17.0.2:9443
iifname != "br-a5846efba401" tcp dport 9393 counter packets 1 bytes 64 dnat to 172.18.0.2:9393
iifname != "br-a5846efba401" tcp dport 9292 counter packets 0 bytes 0 dnat to 172.18.0.2:9292
iifname != "docker0" tcp dport 8000 counter packets 0 bytes 0 dnat to 172.17.0.2:8000
}
chain POSTROUTING {
type nat hook postrouting priority srcnat; policy accept;
ip saddr 172.17.0.0/16 oifname != "docker0" counter packets 0 bytes 0 masquerade
ip saddr 172.25.0.0/16 oifname != "br-6a1b61d22aef" counter packets 0 bytes 0 masquerade
ip saddr 172.18.0.0/16 oifname != "br-a5846efba401" counter packets 2 bytes 120 masquerade
ip saddr 172.17.0.2 ip daddr 172.17.0.2 tcp dport 9443 counter packets 0 bytes 0 masquerade
ip saddr 172.18.0.2 ip daddr 172.18.0.2 tcp dport 9393 counter packets 0 bytes 0 masquerade
ip saddr 172.17.0.2 ip daddr 172.17.0.2 tcp dport 8000 counter packets 0 bytes 0 masquerade
ip saddr 172.18.0.2 ip daddr 172.18.0.2 tcp dport 9292 counter packets 0 bytes 0 masquerade
}
chain PREROUTING {
type nat hook prerouting priority dstnat; policy accept;
fib daddr type local counter packets 117 bytes 8354 jump DOCKER
}
chain OUTPUT {
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump DOCKER
}
}
table ip6 nat {
chain postrouting {
type nat hook postrouting priority srcnat; policy accept;
}
chain prerouting {
type nat hook prerouting priority dstnat; policy accept;
ip6 daddr 1:2:3:4:c86a:75ff:fe6d:46a6 tcp dport 80 dnat to fd00::42:c0ff:fea8:1c1
ip6 daddr 1:2:3:4:c86a:75ff:fe6d:46a6 tcp dport 443 dnat to fd00::42:c0ff:fea8:1c1
}
}
# Warning: table ip filter is managed by iptables-nft, do not touch!
table ip filter {
chain DOCKER {
ip daddr 172.17.0.2 iifname != "docker0" oifname "docker0" tcp dport 9443 counter packets 0 bytes 0 accept
ip daddr 172.18.0.2 iifname != "br-a5846efba401" oifname "br-a5846efba401" tcp dport 9393 counter packets 1 bytes 64 accept
ip daddr 172.18.0.2 iifname != "br-a5846efba401" oifname "br-a5846efba401" tcp dport 9292 counter packets 0 bytes 0 accept
ip daddr 172.17.0.2 iifname != "docker0" oifname "docker0" tcp dport 8000 counter packets 0 bytes 0 accept
}
chain DOCKER-ISOLATION-STAGE-1 {
iifname "docker0" oifname != "docker0" counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-2
iifname "br-6a1b61d22aef" oifname != "br-6a1b61d22aef" counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-2
iifname "br-a5846efba401" oifname != "br-a5846efba401" counter packets 113 bytes 49157 jump DOCKER-ISOLATION-STAGE-2
counter packets 355 bytes 129018 return
}
chain DOCKER-ISOLATION-STAGE-2 {
oifname "docker0" counter packets 0 bytes 0 drop
oifname "br-6a1b61d22aef" counter packets 0 bytes 0 drop
oifname "br-a5846efba401" counter packets 0 bytes 0 drop
counter packets 113 bytes 49157 return
}
chain FORWARD {
type filter hook forward priority filter; policy accept;
counter packets 355 bytes 129018 jump DOCKER-USER
counter packets 355 bytes 129018 jump DOCKER-ISOLATION-STAGE-1
oifname "docker0" ct state related,established counter packets 0 bytes 0 accept
oifname "docker0" counter packets 0 bytes 0 jump DOCKER
iifname "docker0" oifname != "docker0" counter packets 0 bytes 0 accept
iifname "docker0" oifname "docker0" counter packets 0 bytes 0 accept
oifname "br-6a1b61d22aef" ct state related,established counter packets 0 bytes 0 accept
oifname "br-6a1b61d22aef" counter packets 0 bytes 0 jump DOCKER
iifname "br-6a1b61d22aef" oifname != "br-6a1b61d22aef" counter packets 0 bytes 0 accept
iifname "br-6a1b61d22aef" oifname "br-6a1b61d22aef" counter packets 0 bytes 0 accept
oifname "br-a5846efba401" ct state related,established counter packets 125 bytes 56879 accept
oifname "br-a5846efba401" counter packets 1 bytes 64 jump DOCKER
iifname "br-a5846efba401" oifname != "br-a5846efba401" counter packets 113 bytes 49157 accept
iifname "br-a5846efba401" oifname "br-a5846efba401" counter packets 0 bytes 0 accept
}
chain DOCKER-USER {
counter packets 355 bytes 129018 return
}
}
Alles anzeigen