我的番茄炒蛋
生活如此精彩,挑战无处不在!

导航

 
int_if="rl0"
cnc_if="rl2"

internal_net="192.168.0.0/16"

cnc_addr="21.10.4.6"
web_server = "192.168.200.144"
routerip = "192.168.200.101"
intnet = "192.168.0.0/16"

no nat on $int_if from $int_if to $internal_net
nat on $int_if proto tcp from $internal_net to $web_server port www -> ($int_if)

nat on $cnc_if from $internal_net to any -> ($cnc_if)

rdr on $int_if proto tcp from $internal_net to $cnc_addr port www -> $web_server port www
rdr pass on $cnc_if proto tcp from any to $cnc_addr port {20,21,80} -> $web_server
posted on 2009-10-30 16:07  bluesky  阅读(345)  评论(0编辑  收藏  举报