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 172.16.16.1/21
set interface ethernet0/0 nat
set interface ethernet0/8 ip 1.1.1.2/29
set interface ethernet0/8 route
set interface ethernet0/9 ip 172.16.16.38/21
set interface ethernet0/9 nat

set access-list extended 1 src-ip 172.16.16.0/21 dst-port 80-80 protocol any entry 1
set access-list extended 1 src-ip 172.16.16.0/21 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 172.16.16.37
action-entry 1
set pbr policy name 1
set pbr policy 1 match-group 1 action-group 1 1
exit
set interface ethernet0/0 pbr 1
set policy id 1 from "Trust" to "Websense" "172.16.16.0/21" "Any" "ANY"
nat dst ip 172.16.16.37 port 8080 permit log
set policy id 2 from "Websense" to "Untrust" "172.16.16.37/32" "Any" "ANY" permit

set route 0.0.0.0/0 int eth0/1 gateway 1.1.1.1


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" "172.16.16.0/21" "ANY" permit log count
set policy id 34
exit
set policy id 33 from "Untrust" to "Trust"  "Any-IPv4" "Trusted Interface IP" "ANY" permit
set policy id 33
exit
set policy id 32 from "Untrust" to "Trust"  "Any-IPv4" "Any-IPv4" "ANY" permit
set policy id 32
exit
set policy id 30 from "Untrust" to "Trust"  "Any-IPv4" "172.16.16.0/21" "ANY" permit
set policy id 30
exit
set policy id 0 from "Trust" to "Untrust"  "Any-IPv4" "Any-IPv4" "ANY" permit log count
set policy id 0
exit
set policy id 27 name "Any" from "Untrust" to "Trust"  "Any-IPv4" "VIP(ethernet0/8)" "ANY" permit log
set policy id 27
exit
PDISAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pergrCommented:
You can not use the same /21 on two interfaces.

Use 172.16.24.0/24 for websense.
0
PDISAuthor 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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PDISAuthor Commented:
a
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Network Architecture

From novice to tech pro — start learning today.