ESR series service routers.ESR-Series. User manual
16.5.2 HTTP proxy configuration example
Objective:
Organize URL filtering for a number of addresses using a proxy.
Solution:
Create a set of URLs to filter by. Configure a proxy filter and specify the actions for the created set of URLs:
esr# configure
esr(config)# object-group url test1
esr(config-object-group-url)# url http://speedtest.net/
esr(config-object-group-url)# url http://www.speedtest.net/
esr(config-object-group-url)# url https://speedtest.net/
esr(config-object-group-url)# url https://www.speedtest.net/
esr(config-object-group-url)# exit
Create a profile:
esr(config)# ip http profile list1
esr(config-profile)# default action permit
esr(config-profile)# urls local test1 action redirect redirect-url http://test.loc
esr(config-profile)# exit
Enable proxying on the interface by profile 'list1':
esr(config)# interface gi 1/0/1
esr(config-if)# ip http proxy list1
esr(config-if)# ip https proxy list1
If using Firewall, create permissive rules for it:
For example, ESR-20 with 4 CPUs is used.
For the http proxy, open ports 3128 to 3131.
For the https proxy, open ports 3132 to 3135.
Create a proxy server profile:
esr(config)# object-group service proxy
esr(config-object-group-service)# port-range 3128-3135
esr(config-object-group-service)# exit