Policy Based Routing

I am trying to configure policy based routing so that all traffic on my network automatically goes through our websense webfilter device.  I have attached a diagram showing our layout.  We have a Juniper SSG140 firewall.  

I have added the following lines to our firewall.  After doing so all web traffic stops

set interface "ethernet0/0" zone "Trust"
set interface "ethernet0/8" zone "Untrust"
set interface "ethernet0/9" zone "Websense"

set interface ethernet0/0 ip
set interface ethernet0/0 nat
set interface ethernet0/8 ip
set interface ethernet0/8 route
set interface ethernet0/9 ip
set interface ethernet0/9 nat

set access-list extended 1 src-ip dst-port 80-80 protocol any entry 1
set access-list extended 1 src-ip dst-port 443-443 protocol any entry 2
set match-group name 1
set match-group 1 ext-acl 1 match-entry 1
set action-group name 1
set action-group 1 next-interface ethernet0/9 next-hop
action-entry 1
set pbr policy name 1
set pbr policy 1 match-group 1 action-group 1 1
set interface ethernet0/0 pbr 1
set policy id 1 from "Trust" to "Websense" "" "Any" "ANY"
nat dst ip port 8080 permit log
set policy id 2 from "Websense" to "Untrust" "" "Any" "ANY" permit

set route int eth0/1 gateway

I have the following routes already in my routing table and I'm not sure if I need to disable one or more to get this working

set policy id 34 from "Untrust" to "Trust"  "Any-IPv4" "" "ANY" permit log count
set policy id 34
set policy id 33 from "Untrust" to "Trust"  "Any-IPv4" "Trusted Interface IP" "ANY" permit
set policy id 33
set policy id 32 from "Untrust" to "Trust"  "Any-IPv4" "Any-IPv4" "ANY" permit
set policy id 32
set policy id 30 from "Untrust" to "Trust"  "Any-IPv4" "" "ANY" permit
set policy id 30
set policy id 0 from "Trust" to "Untrust"  "Any-IPv4" "Any-IPv4" "ANY" permit log count
set policy id 0
set policy id 27 name "Any" from "Untrust" to "Trust"  "Any-IPv4" "VIP(ethernet0/8)" "ANY" permit log
set policy id 27
Who is Participating?
PDISConnect With a Mentor Author Commented:
Websense will not allow me to do that.  P1 and P2 on the websense device have to share the same default gateway.  The Juniper allowed me to use the same subnet on two ports by changing Network, Routing, Virtual Routers, Edit Trust-VR and putting a check mark in "Ignore Subnet Conflict for Interfaces in this VRouter
You can not use the same /21 on two interfaces.

Use for websense.
PDISAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.