06-01-2023 11:28 AM - edited 06-01-2023 11:28 AM
Dear Team,
We have two WSA running in explicit proxy. We would like to store proxy pac file on WSA and we want client go with primary WSA as always and failover only if Primary WSA down.
So is there any way to archive this goal?
Note: Normally Proxy PAC configuration can be only configure with one specific URL/Location
Solved! Go to Solution.
06-01-2023 12:38 PM
06-01-2023 11:37 AM
06-01-2023 12:21 PM
06-01-2023 12:25 PM
06-01-2023 12:29 PM
Yes ken. My question is about location since customer wants to store the pac file on both WSA and we cannot configure 2 PAC location on endpoint device. So what is the best practice to archive this goal ?
06-01-2023 12:38 PM
06-02-2023 04:22 AM
Hi @LY YIHEANG
You can host it on Both WSAs.
then create an A record in your DNS server, such as PAC.network.local and put the TTL for that record to 0 ( no cache ) and point it to WSA1.
If WSA1 failed, you can update the DNS record to 2nd WSA's IP address.
Also be advised that, the PAC file also will be cached in the browser. so for the newly logged-in users or expired PAC users you will face issue, in the time duration between changing the A record.
on the other hand if WSA1 is completely down, ( not just some internal services are down), if browser resolves 2 IP for your PAC, it will try the 2nd PAC host.
Last but not least, you can configure Both WSA's IP in the PAC file it self, as a failover, you will face latency when WSA1 is down, since Browser will always try to reach to 1st Proxy IP then 2nd Proxy IP.
Regards,
Amirhossein Mojarrad
+++++++++++++++++++++++++++++++++++++++++++++++++++
++++ If you find this answer helpful, please rate it as such ++++
+++++++++++++++++++++++++++++++++++++++++++++++++++
06-02-2023 05:15 AM
Dear @amojarra ,
For updating DNS Record, I need to update manually to WSA1 IP Address?
For PAC Failover, Can we have any way to prevent browser try to reach failed WSA1? or enhance the timeout?
Thank You
06-03-2023 02:19 AM
Hi @LY YIHEANG
thanks for reaching out
[1] For updating DNS Record, I need to update manually to WSA1 IP Address? Yes, if WSA1 in under maintenance or not responding to Proxy requests or PAC requests, and you want to to redirect your clients to ask for PAC file from WSA2, you need to manually change the IP in your DNS server for that A record.
[2] For PAC Failover, Can we have any way to prevent browser try to reach failed WSA1? or enhance the timeout? Unfortunately, I have to say No, PAC file is not Cisco's product and the Browsers behavior is completely related to the browsers themself. but as far as I recall, they start from the 1st Proxy, unless there are some enhancement in the browsers to remember which Proxy was unresponsive and hold redirecting traffic to them for a while.
[3] what I believe is you have these concerns :
[3-1] How to redirect traffic to 2nd WSA if first WSA failed.
[3-2] How to host the PAC file in a place which if something happens to first WSA, the 2nd one response
if you are planning to have both WSAs in a failover ( Active-Passive) we have failoverconfig in WSA which you can do this, in this case, WSAs will pick a Virtual IP, and the active one response to the Proxy requests, and if Active failed, automatically the 2nd WSA will be in charge of responding to the Proxy requests .
so in this case, you just have one Virtual IP address which you can set in your PAC file.
for more information, please check "Configuring Failover Groups for High Availability" from user guide : User Guide for AsyncOS 14.5 for Cisco Secure Web Appliance - GD (General Deployment)
And if you want to have Active-Active, then you need to customize the DNS records, and do some manual configurations, if one of the WSAs failed.
Mostly using WCCP ( for transparent proxy) or Load balancer is more efficient for Active-Active production.
Hope, that meets your expectation, please feel free to let us know, if there are any questions or concerns,
Regards,
Amirhossein Mojarrad
+++++++++++++++++++++++++++++++++++++++++++++++++++
++++ If you find this answer helpful, please rate it as such ++++
+++++++++++++++++++++++++++++++++++++++++++++++++++
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide