在外地,使用家中,或任一地的印表機列印,PF防火牆

任一地的印表機,其實是要設定過的拉..也沒有說使用就能隨意的使用..

1.我使用的是HP的2605dn..它是一台有網卡的彩色雷射印表機.

PS//以下說明,都是我的例子.設定內容當然可調整

2.我的印表機

IP:192.168.0.99

然後我使用PF防火牆來過濾可使用條件.

因為HP使用的PORT為9100,所以開放9100使用者用

mgmt_net2=”{xxx.xxx.xxx.xxx} #這寫入只開放給特定的IP使用連入

hpprintports=”{9100}”

hpprint_server=”192.168.0.99″

rdr on $ext_if proto tcp from $mgmt_net2 to $ext_ip port $hpprintports -> $hpprint_server

pass in on $ext_if proto tcp from $mgmt_net2 to $hpprint_server port $hpprintports keep state

以上..接下來只要連線印表機即可使用了..

在連線是會用到icmp 512 測通..而因為我回應的主機不是印表機這台.所以會出現下圖,找不到的狀態..啊.反正知道沒錯就是了..所以.再往下一步設定到完成..就可以用啦..

This entry was posted in PF 防火牆 安全管理. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>