studio313
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  阅读(301)  评论(0编辑  收藏  举报

分类:

技术点:

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2021-12-10
  • 2021-11-02
  • 2021-11-17
  • 2021-07-31
猜你喜欢
  • 2021-06-19
  • 2021-11-12
  • 2021-12-12
  • 2021-11-30
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案