CloudShark Support

Proxy Support

Setting up Proxy Support

We use the host address ‘proxy.lan’ for the proxy server in our examples. Make sure you substitute your own proxy’s IP address when setting this up for your environment.

At the end of this article there is a bash script that aggregates everything mentioned in this article, if you prefer to just see a script.

How to Set up a Proxy

CloudShark can be installed from behind either an HTTP proxy or a SOCKS proxy. The initial installation uses the curl command behind the scenes to install the CloudShark software. Curl needs to be configured before you begin the installation process.

HTTP Proxy

CloudShark is always installed by the root user. Create the file /root/.curlrc and add a single line:

proxy = http://proxy.lan

SOCKS

The configuration is slightly different for a SOCKS proxy depending on if you are installing from CentOS 6 or CentOS 7:

# centos 6
socks5 = socks5://proxy.lan:1080

# centos 7
proxy = socks5://proxy.lan:1080

Authenticated Proxy

To use an authenticated proxy, simply include the user credentials in the proxy URLs for either step: http://user:password@proxy.lan.


Proxy support for import by URL

CloudShark has the ability to import capture files given a URL. The file transfer is handled on the server side, so if a proxy is required, you may also need to set up proxy support for that feature.

These same proxy options should be added to the /home/cloudshark/.curlrc file as described by the Custom curl options page.

About CloudShark

CloudShark is made by QA Cafe, a technology company based in Portsmouth, NH. Our passion for packet captures has grown out of our other product CDRouter.

Get in touch via our Contact us page or by following us on your favorite service: