`

iptables 使用

阅读更多
查看开放端口:   netstat -ultn

sudo iptables -A OUTPUT -p udp --sport 123 -j DROP
sudo iptables -A OUTPUT -p udp --sport 57764 -j DROP
sudo iptables -A OUTPUT -p udp --sport 54328 -j DROP
sudo iptables -A OUTPUT -p udp --sport 34494 -j DROP
sudo iptables -A OUTPUT -p tcp --sport 32000 -j DROP
sudo iptables -A OUTPUT -p tcp --sport 9500 -j DROP
sudo iptables -A OUTPUT -p tcp --sport 9300 -j DROP

sudo iptables -A INPUT -p udp --dport 123 -j DROP
sudo iptables -A INPUT -p udp --dport 57764 -j DROP
sudo iptables -A INPUT -p udp --dport 54328 -j DROP
sudo iptables -A INPUT -p udp --dport 34494 -j DROP
sudo iptables -A INPUT -p tcp --dport 32000 -j DROP
sudo iptables -A INPUT -p tcp --dport 9500 -j DROP
sudo iptables -A INPUT -p tcp --dport 9300 -j DROP


sudo /sbin/iptables-save

sudo iptables --list

sudo ifconfig eth1 down  停掉网卡

分享到:
评论

相关推荐

    Linux 防火墙软件 IPtables使用详解.docx

    Linux 防火墙软件 IPtables使用详解.docx

    Android iptables 使用及源码分析

    Android iptables 使用及源码分析

    LinuxIptables使用资料(整理).docx

    LinuxIptables使用资料(整理).docx

    iptables使用指南

    iptables使用指南iptables使用指南

    iptables 使用指南

    iptables 使用指南 内容比较详细

    linux下iptables使用

    介绍iptables编译,安装,启动以及iptables的工作原理,以及一些编写规则和范例

    ubuntu防火墙iptables使用教程

    1、iptables介绍 iptables是复杂的,它集成到linux内核中。用户通过iptables,可以对进出你的计算机的数据包进行过滤。通过iptables命令设置你的规则,来把守你的计算机网络──哪些数据允许通过,哪些不能通过,...

    Iptables使用手册

    Iptables使用手册. iptables是linux下功能与性能最为强大的防火墙。

    Iptables 使用指南

    一份很好的关于Iptables使用手册,pdf格式,1.6M

    iptables命令实例

    iptables 也可以用于 NAT 转发,例如要将外部请求的 80 端口转发到内部的 192.168.100.2 的 80 端口,可以使用以下命令:`iptables -t nat -A PREROUTING -p tcp --dport 80 -d $INTERNET_ADDR -j DNAT --to-...

    iptables使用手册

    手册中对linux防火墙工具iptables的使用进行了详细的讲解,非常适合正在研究这款工具的人,尤其对表、链、规则进行了细致的罗列,通俗易懂!

    iptables使用

    iptablesiptablesiptablesiptablesiptablesiptablesiptables

    iptables学习笔记.pdf

    - **Tables (表)**:iptables使用不同的表来组织规则,包括`filter`、`nat`、`mangle`等。 - `filter`表:用于包过滤。 - `nat`表:用于网络地址转换(NAT)。 - `mangle`表:用于修改数据包。 - **Command (命令)*...

    iptables 使用总结

    总结了iptables原理,在各个场景下的使用方法,并给出了sh脚本的实现过程

    Iptables中文使用指南

    第一章序言部分除了第三...第五章和第六章是iptables命令使用方法的详细介绍。 第七章与第八章是实例讲解,对我们编写自己的规则很有指导意义的,强烈建议你看一看。 附录里有一些资源链接是很好的,相信你一定会喜欢。

    LINUX IPTABLES防火墙的基本知识和应用

    一份说明IPTABLES基础知识的文档,含有详细使用说明和示例,内容较全面丰富,是一个学习LINUX 防火墙应用知识的材料。

    iptables源码iptables源码

    iptables源码 iptables工具

    iptables 高级使用研讨

    iptables 高级使用研讨

    iptables 1.1中文指南

    ### iptables 1.1中文指南知识点概览 #### 一、iptables简介...以上是对 `iptables 1.1中文指南` 的主要内容和知识点的详细解析,希望能帮助读者更好地理解和掌握iptables的使用方法及其在网络安全管理中的重要作用。

Global site tag (gtag.js) - Google Analytics