Using TCP tunneling with Squid

Squid Prerequisites

Squid Installation

Install Squid:

$ sudo apt-get install squid

Squid Configuration

See squid.conf for an example configuration.

Cowrie Configuration for Squid

Uncomment and update the following entries in etc/cowrie.cfg under the SSH section:

[ssh]
forward_tunnel = true
forward_tunnel_80 = 127.0.0.1:3128
forward_tunnel_443 = 127.0.0.1:3128

Restart Cowrie

Restart Cowrie from your honeypot state directory:

(cowrie-env) $ cowrie restart