We need the HTTP traffic to go to the Blue Coat Proxy Server and be proxied by it. The Blue Coat will process the packet and send it to the SRX, and the SRX will direct it to the WEB.
This article will explain how to configure the J or SRX Device for the Bluecoat Proxy server, that is configured in L3 or non-transparent mode. Topology:
Internet (web server) | | |ge-0/0/1.0 _______|________ | zone untrust | | | | SRX DMZ |--ge-0/0/2.0 ------------ Blue Coat | | |_ zone trust ___| | |ge-0/0/3.0 | Internet Users
The configuration below satisfies this requirement:
interfaces { ge-0/0/1 { description "Connected to ISP"; unit 0 { family inet { address 1.1.1.2/30; } } } ge-0/0/2 { description "Connected to BlueCoat"; unit 0 { family inet { address 10.10.10.1/30; } } } ge-0/0/3 { unit 0 { family inet { filter { input HTTP; } address 192.168.0.1/24; } } } }
firewall { filter HTTP-redirect { term HTTP { from { protocol 6; port 80; } then { routing-instance BLUECOAT; } } term accept { then accept; } } }
root# show routing-instances BLUECOAT { instance-type forwarding; routing-options { static { route 0.0.0.0/0 next-hop 10.10.10.2; } instance-import DPT; } }
Policy-options : root# show policy-optionspolicy-statement DPT { term 1 { from { instance master; interface ge-0/0/2.0; } then accept; } term 2 { then reject; }} The security zones for the interfaces - ge-0/0/1.0 is in untrust
root# show policy-optionspolicy-statement DPT { term 1 { from { instance master; interface ge-0/0/2.0; } then accept; } term 2 { then reject; }}
ge-0/0/2.0 is in DMZ ge-0/0/3.0 is in trust
#show security policies { from-zone trust to-zone untrust { policy T2U { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone trust to-zone DMZ { policy T2D { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone DMZ to-zone untrust { policy D2U { match { source-address any; destination-address any; application any; } then { permit; } } } } }
security { nat { source { rule-set trust-untrust { from zone trust; to zone untrust; rule 1 { match { source-address 0.0.0.0/0; } then { source-nat interface; } } } rule-set DMZ-Untrust { from zone DMZ; to zone untrust; rule Blue-to-web { match { source-address 0.0.0.0/0; } then { source-nat interface; } } } } } }