Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to block Websocket protocol (to simulate corporate firewalls) on Ubuntu?

I am working on a web app that uses WebSockets, and I know that many corporate firewalls block it. Now I have added Socket.io to fallback to XHR polling in case Websockets are blocked.

But I can't figure out how to simulate this environment for testing. How can I simulate an environment similar to corporate firewalls?

I am on Ubuntu 12.04, but can switch to Windows 7 if required. Am open to any different approaches as well.

like image 296
Deepak Joy Cheenath Avatar asked Dec 13 '14 03:12

Deepak Joy Cheenath


1 Answers

install squid and tell your browser to use it as a proxy.

like image 129
Jasen Avatar answered Oct 20 '22 10:10

Jasen