![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
面试题
SshikSsh
这个作者很懒,什么都没留下…
展开
-
如何使用iptables将本地80端口的请求转发到8080端口,当前主机IP为192.168.16.1,其中本地网卡eth0:
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 8080 -j DNAT --to 192.168.16.1:80原创 2020-09-04 06:47:24 · 1071 阅读 · 1 评论 -
使用netstat和awk命令统计下网络连接数:
netstat -an | awk '/^tcp/ {++y[$NF]} END {for(w in y) print w, y[w]}'原创 2020-09-04 06:46:53 · 174 阅读 · 0 评论