linux网络调试常用指令
约 70 字
预计阅读 1 分钟
清空arp缓存
1
| ip -s -s neigh flush all
|
SNAT
1
| iptables -t nat -I POSTROUTING -s 192.168.23.232/32 -j SNAT --to 192.168.23.1
|
shell设置当前目录为环境变量
1
| export PYTHONPATH=$(pwd)
|
iptables日志调试
1
| iptables -t mangle -I PREROUTING -p udp --dport 5060 -j log
|