|
藍森林 http://www.lslnet.com 2006年4月6日 20:18
如何在OpenBSD上不重起,使NAT生效?
我在pf.conf和nat.conf上作了修改,然後
pfctl -d
pfctl -R pf.conf
pfctl -e
然後pfctl -sn
發現新設置的NAT規則沒有生效
難道要重起麼?不重起有沒有辦法。
謝謝 |
如何在OpenBSD上不重起,使NAT生效?
不知道行不行
pfctl -F nat -R -f /etc/pf.conf |
如何在OpenBSD上不重起,使NAT生效?
[code]
-F modifier
Flush the filter parameters specified by modifier (may be abbre-
viated):
-F nat Flush the NAT rules.
-F queue Flush the queue rules.
-F rules Flush the filter rules.
-F state Flush the state table (NAT and filter).
-F Sources Flush the source tracking table.
-F info Flush the filter information (statistics that are
not bound to rules).
-F Tables Flush the tables.
-F osfp Flush the passive operating system fingerprints.
-F all Flush all of the above.
[/code] |
如何在OpenBSD上不重起,使NAT生效?
這個命令一打,我的NAT規則就被你清除了,要我死啊 |
如何在OpenBSD上不重起,使NAT生效?
暈,你不會先打到文件裡去?? |
如何在OpenBSD上不重起,使NAT生效?
如果遠程 最好寫腳本運行 |
如何在OpenBSD上不重起,使NAT生效?
我從來就是修改配置文件,然後再從文件load進去.
沒想到你...
不好意思. |
如何在OpenBSD上不重起,使NAT生效?
算了,就這幾句編shell,太浪費了,我已經解決了,還是謝謝你 |
如何在OpenBSD上不重起,使NAT生效?
[quote][i]原帖由 "sunwaylove"]算了,就這幾句編shell,太浪費了,我已經解決了,還是謝謝你[/quote 發表:[/i]
:lol:
幸好剛才沒有這樣打
pfctl -F all -R -f /etc/pf.conf
:mrgreen: :mrgreen: |
如何在OpenBSD上不重起,使NAT生效?
其實只要加載nat就可以了,我忘記load了
>;pfctl -N nat.conf |
| |