小樱 发表于 2018/8/23 15:11

linux centos ssh命令行中,测试远程ipv6的连通性方法,iptables? 关闭系统ip6tables防火墙

安装telnet测试工具
yum -y install telnet
测试命令
telnet 2001:19f0:6801:d75:5400:1ff:fea5:1eaa
返回报错
# telnet 2001:19f0:6801:d75:5400:1ff:fea5:1eaa
Trying 2001:19f0:6801:d75:5400:1ff:fea5:1eaa...
telnet: connect to address 2001:19f0:6801:d75:5400:1ff:fea5:1eaa: Permission denied


看起报错,感觉是这vps服务器有问题。


将所有ip6tables以序号标记显示,执行:
ip6tables -L -n --line-numbers


后来了解到,由于centos系统有两个防火墙,把ipv6防火墙关闭即可

service ip6tables stop
chkconfig ip6tables off

应该恢复正常,在次测试,确定已经正常工作。
# telnet 2001:19f0:6801:d75:5400:1ff:fea5:1eaa
Trying 2001:19f0:6801:d75:5400:1ff:fea5:1eaa...
telnet: connect to address 2001:19f0:6801:d75:5400:1ff:fea5:1eaa: Connection refused
#

页: [1]
查看完整版本: linux centos ssh命令行中,测试远程ipv6的连通性方法,iptables? 关闭系统ip6tables防火墙