英文:
Why do I have no connection to dhcp server at ipv6 over nft
问题
我已经配置了我的nftable,正常操作看起来没问题,但是当我查看dhclient -6时,我看到:
XMT: 正在形成Rebind,已经过去了606790毫秒。
XMT: X-- IA_NA 1e:dd:f2:18
XMT: | X-- 请求续约 +3600
XMT: | X-- 请求重新绑定 +5400
XMT: | | X-- IAADDR 2a00:6020:500b:ef00:f6e1:1eff:fedd:f218
XMT: | | | X-- 首选生存时间 +7200
XMT: | | | X-- 最大生存时间 +7500
XMT: V IA_NA 已附加。
XMT: 在br0上重新绑定,间隔585450毫秒。
但是没有看到任何广播消息 (RCV)。我的配置有什么问题?
当我关闭nft时,它可以正常与我的Fritz box配合使用。所以在我看来,似乎有些配置错误。
我希望有人能帮到我 - 谢谢
英文:
I have configured my nftable with
table inet firewall {
chain input {
type filter hook input priority filter; policy drop;
ct state invalid counter packets 0 bytes 0 drop comment "early drop of invalid packets"
ct state established,related accept comment "accept all connections related to connections made by us"
ct helper "ftp" accept
iifname "lo" counter packets 63 bytes 3760 accept comment "accept loopback"
iifname "lo" ip saddr != 127.0.0.0/8 drop
iifname "lo" ip6 saddr != ::1 drop
ip protocol icmp counter packets 0 bytes 0 accept comment "accept all ICMP types"
meta l4proto ipv6-icmp accept comment "Accept ICMPv6"
jump input-inetd
jump output-inetd
}
chain forward {
type filter hook forward priority filter; policy drop;
ct state established,related,new accept
iifname "br0" counter packets 250 bytes 22684 accept comment "forwarding only on bridge"
}
chain output {
type filter hook output priority filter; policy accept;
oifname "lo" counter packets 63 bytes 3760 accept comment "accept loopback"
oifname "lo" ip daddr != 127.0.0.0/8 drop
oifname "lo" ip6 daddr != ::1 drop
}
chain input-inetd {
tcp dport 21 accept
tcp dport 23 accept
}
chain output-inetd {
tcp dport 20 accept
}
}
Normal operation looks fine, but if I look at dhclient -6 I see
XMT: Forming Rebind, 606790 ms elapsed.
XMT: X-- IA_NA 1e:dd:f2:18
XMT: | X-- Requested renew +3600
XMT: | X-- Requested rebind +5400
XMT: | | X-- IAADDR 2a00:6020:500b:ef00:f6e1:1eff:fedd:f218
XMT: | | | X-- Preferred lifetime +7200
XMT: | | | X-- Max lifetime +7500
XMT: V IA_NA appended.
XMT: Rebind on br0, interval 585450ms.
but did not see any Advertise message (RCV). What is wrong with my configuration?
When I turn nft off, it works fine with my Fritz box. So it looks to me like something is misconfigured.
I hope someone can help me - thanks
答案1
得分: 0
尝试将以下内容添加到您的输入链中:
meta l4proto ipv6-icmp accept
meta l4proto icmp accept
meta l4proto igmp accept
ip6 ecn not-ect accept
而不是
meta l4proto ipv6-icmp accept comment "Accept ICMPv6"
然后重新启动。
英文:
Try adding this to your input chain
meta l4proto ipv6-icmp accept
meta l4proto icmp accept
meta l4proto igmp accept
ip6 ecn not-ect accept
instead of
meta l4proto ipv6-icmp accept comment "Accept ICMPv6"
and reboot.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论