80端口 ,规则插入到前面
sudo iptables -t filter -I INPUT -s 192.168.2.0/24 -p tcp –dport http -j DROP
21端口,规则插入到前面
sudo iptables -t filter -I INPUT -s 192.168.1.23 -p tcp –dport ftp -j DROP
详细参考链接见:https://blog.csdn.net/sanve/article/details/80881380
sudo iptables -t filter -I INPUT -s 192.168.2.0/24 -p tcp –dport http -j DROP
sudo iptables -t filter -I INPUT -s 192.168.1.23 -p tcp –dport ftp -j DROP
详细参考链接见:https://blog.csdn.net/sanve/article/details/80881380