个人工具

“UbuntuHelp:IptablesHowTo/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第16行: 第16行:
 
**1.11 更多信息
 
**1.11 更多信息
 
**1.12 致谢
 
**1.12 致谢
 +
 +
 +
 +
==Iptables基础  如何在Ubuntu Server版上实施iptables==
 +
 +
iptables 是一个安装在Ubuntu Server上的默认防火墙。在正常的ubuntu安装过程中,iptables是被安装上了的,但是它默认允许所有的流量(不管防火墙是否是无效的)。
 +
 +
关于iptables有价值的信息很多,但是大多都描述的很复杂。如果你想做些基本的配置,下面的 How To 很适合你。
 +
 +
==基本命令==
 +
 +
键入:
 +
<pre><nowiki>
 +
# iptables -L
 +
</nowiki></pre>
 +
lists your current rules in iptables. If you have just set up your server, you will have no rules, and you should see
 +
列出您当前iptables中在规则。如果您是刚刚建立您的服务器,那么可能此时还没有任何规则,而且您应该看到如下:
 +
<pre><nowiki>
 +
Chain INPUT (policy ACCEPT)
 +
target    prot opt source              destination
 +
 +
Chain FORWARD (policy ACCEPT)
 +
target    prot opt source              destination
 +
 +
Chain OUTPUT (policy ACCEPT)
 +
target    prot opt source              destination
 +
</nowiki></pre>

2007年7月31日 (二) 20:31的版本

  • 1 Iptables基础 如何在Ubuntu Server版上实施iptables
    • 1.1 基本命令
    • 1.2 允许建立会话
    • 1.3 在指定端口上允许入站流量
    • 1.4 阻断流量
    • 1.5 编辑iptables
    • 1.6 日志记录
    • 1.7 保存iptables
    • 1.8 配置启动时自动加载规则
    • 1.9 提示
      • 1.9.1 如果你在一个已有规则上手动编辑iptables
      • 1.9.2 使用iptables-save/restore来测试规则
      • 1.9.3 更详细的日志记录
      • 1.9.4 禁用防火墙
    • 1.10 通过GUI界面程序简单配置
    • 1.11 更多信息
    • 1.12 致谢


Iptables基础 如何在Ubuntu Server版上实施iptables

iptables 是一个安装在Ubuntu Server上的默认防火墙。在正常的ubuntu安装过程中,iptables是被安装上了的,但是它默认允许所有的流量(不管防火墙是否是无效的)。

关于iptables有价值的信息很多,但是大多都描述的很复杂。如果你想做些基本的配置,下面的 How To 很适合你。

基本命令

键入:

# iptables -L

lists your current rules in iptables. If you have just set up your server, you will have no rules, and you should see 列出您当前iptables中在规则。如果您是刚刚建立您的服务器,那么可能此时还没有任何规则,而且您应该看到如下:

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination