<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; FreeBSD防火墙</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/freebsd%E9%98%B2%E7%81%AB%E5%A2%99/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Sun, 10 May 2026 14:53:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FreeBSD配置防火墙开启SSH服务</title>
		<link>https://www.osyunwei.com/archives/3007.html</link>
		<comments>https://www.osyunwei.com/archives/3007.html#comments</comments>
		<pubDate>Sun, 04 Mar 2012 17:12:39 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[FreeBSD防火墙]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=3007</guid>
		<description><![CDATA[1、配置FreeBSD 防火墙 ee /etc/rc.conf   #编辑，在最后添加 firewall_enable="yes"  #开启防火墙 net.inet.ip.fw.verbose=1   #启用防火墙日志功能 net.inet.ip.fw.verbose_limit=5  #启用防火墙日志功能 natd_enable="YES"  # 开启防火墙NAT功能 natd_interface="rl0"      natd_flags="-dynamic -m" firewall_script="/etc/ipfw.rules"      #自定义防火墙规则路径 按esc，回车，再按a保存配置 2、添加防火墙规则 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容版权所有,转载请注明出处及原文链接 ee /etc/ipfw.rules    #编辑防火墙规则，添加以下代码 备注：参数说明： #$cmd 300 deny all from 192.168.0.0/16  to any in via $pif  #RFC 1918 private IP 我的IP地址是192.168.21.173，是属于192.168.0.0/16 IP段，所以这里要注释掉这一行，允许连接外网，否则主机无法联网。 $cmd 380 allow tcp from any to me 22 in [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/3007.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/3007.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
