问题原文
原帖链接 · elp · CC BY-SA 4.0
First: ipv4 works fine.
So I got the following setup: (Server is an Arch Linux OS running as VM)
EDIT Added a rule
ACCEPT tcp ::/0 ::/0 tcp dpt:22
which accepts ANY connection on port 22 (to make sure it's not an IP failure), but that does not work as well. So I am doing something wrong with the ssh ... command or the ipv6 firewall table is not working:
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all ::/0 ::/0 ctstate RELATED,ESTABLISHED
ACCEPT all ::/0 ::/0
DROP all ::/0 ::/0 ctstate INVALID
UDP udp ::/0 ::/0 ctstate NEW
TCP tcp ::/0 ::/0 tcp flags:0x17/0x02 ctstate NEW
REJECT tcp ::/0 ::/0 reject-with tcp-reset
REJECT all ::/0 ::/0 reject-with icmp6-adm-prohibited
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain TCP (1 references)
target prot opt source destination
ACCEPT tcp ::/0 ::/0 tcp dpt:22
Chain UDP (1 references)
target prot opt source destination
After deleting the ip6table it finally works :D So I need to figure out what went wrong :)
已采纳解答
原帖链接 · fuero · CC BY-SA 4.0
Given that you didn't go into too much detail about your setup, here are a few pointers:
Verify that...
- you have ip_forward enabled for IPv6:
sysctl net.ipv6.conf.all.forwarding=1 - you are not dealing with link-local addresses (the fe80::/10 prefix)
- you can access the VM via IPv6 from the host it's running on.
- you test IPv6 connectivity with firewall disabled (
ip6tables -F) first and add rules when it's working.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
