How to Install Sish on macOS
Sish is a tool that allows you to create a secure reverse proxy server that can redirect traffic to any destination. It can be useful in a variety of scenarios such as securing web servers, hiding your IP address, and more. In this tutorial, we'll cover the steps needed to install Sish on macOS.
Prerequisites
- macOS (tested on Mojave)
- Homebrew package manager installed (
brewcommand)
Steps
- Open a terminal on your Mac and run the following command to install Sish using Homebrew:
brew install sish
- Verify the installation by running the following command:
sish --version
You should see the version of Sish that you just installed printed to the terminal.
- Start the Sish server by running the following command:
sudo sish server
Note that you must run this command with sudo privileges since Sish requires access to the system firewall configuration to function properly.
- You should see output that looks similar to the following:
[INFO] entering pass-through mode, no targets defined
[INFO] network listening on :2222
This means that the Sish server is ready and listening for incoming connections on port 2222.
- By default, Sish is configured to operate in "pass-through" mode, which means that it will simply forward traffic on to the destination without making any modifications. To create a target for Sish to redirect traffic to, you can use the
sish targetcommand.
For example, to create a target that will redirect traffic to example.com on port 80, you could run the following command:
sish target create --local_port 8080 --hostname example.com --remote_port 80
This command creates a new target that will listen on port 8080 on the local machine and redirect traffic to example.com on port 80.
- To start forwarding traffic to the newly created target, you can use the
sish forwardcommand.
sish forward --local_port 8080
This command will start forwarding traffic from port 8080 on the local machine to the target that you just created.
Congratulations, you have successfully installed Sish and created a target to redirect traffic to!