PF loopback RDR solves the problem that intranet users are not allowed to access the Intranet when Nat is used to publish an Intranet web site.

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.