2012-11-06 67 views
0

我工作在FreeBSD 9,我的pf.conf中低於FreeBSD的pf.conf文件適用於本地

#cat /etc/pf.conf 
int_if = "em1" 
emi = "127.0.0.1" 

rdr on $int_if proto tcp from any to any port 12345 -> $emi port 1010 

# pfctl -vvvvnf /etc/pf.conf 
int_if = "em1" 
emi = "127.0.0.1" 
@0 rdr on em1 inet proto tcp from any to any port = 12345 -> 127.0.0.1 port 1010 
# 

這個規則工作正常,當我在其他IP測試 - >本地

但我想適用本地規則 - >本地

這是可能的嗎?

回答

0

爲lo0接口添加相同規則

相關問題