使用tcpdump工具,检查源地址或目的地址(例如,238.0.0.238:8888)的数据包
tcpdump -i ens33 host 238.0.0.238 port 8888
systemctl stop firewalld
service iptables stop
systemctl disable firewalld
chkconfig iptables off
sudo sysctl -w net.ipv4.conf.en4.rp_filter=0
sudo sysctl -w net.ipv4.conf.all.rp_filter=0
修改/etc/sysctl.conf 文件中的 net.ipv4.conf.all.rp_filter 设置成0
sudo vi /etc/sysctl.conf
改为:
net.ipv4.conf.default.rp_filter=0
net.ipv4.conf.all.rp_filter=0
route add -net 238.0.0.238 netmask 255.255.255.255 dev ens33