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.
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.
CloudShark is always installed by the root
user.
Create the file /root/.curlrc
and add a single line:
proxy = http://proxy.lan
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
To use an authenticated proxy, simply include the user credentials in the proxy
URLs for either step: http://user:password@proxy.lan
.
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.