Linux

Install Forwarder on Linux #

Debian/Ubuntu #

Forwarder provides .deb package with Systemd service for forwarder run command. Other commands are available as well, but you will need to start them manually.

Install package #

curl -L -o forwarder.deb https://github.com/saucelabs/forwarder/releases/download/v1.3.2/forwarder_1.3.2.linux_arm64.deb
sudo dpkg -i forwarder.deb
curl -L -o forwarder.deb https://github.com/saucelabs/forwarder/releases/download/v1.3.2/forwarder_1.3.2.linux_amd64.deb
sudo dpkg -i forwarder.deb

Edit config file #

sudo vim /etc/forwarder/forwarder.yaml

Enable and start Forwarder service #

sudo systemctl enable forwarder
sudo systemctl start forwarder

Check Forwarder status #

sudo systemctl status forwarder

RedHat/CentOS/Fedora #

Forwarder provides .rpm package with Systemd service for forwarder run command. Other commands are available as well, but you will need to start them manually.

Install package #

sudo rpm -i https://github.com/saucelabs/forwarder/releases/download/v1.3.2/forwarder-1.3.2_linux.aarch64.rpm
sudo rpm -i https://github.com/saucelabs/forwarder/releases/download/v1.3.2/forwarder-1.3.2_linux.x86_64.rpm

Edit config file #

sudo vim /etc/forwarder/forwarder.yaml

Enable and start Forwarder service #

sudo systemctl enable forwarder
sudo systemctl start forwarder

Check Forwarder status #

sudo systemctl status forwarder

Generic #

Forwarder provides .tar.gz package with a statically linked binary that can be used on any modern Linux distribution.

Unpack the tarball #

curl -L -o forwarder.tar.gz https://github.com/saucelabs/forwarder/releases/download/v1.3.2/forwarder-1.3.2_linux.aarch64.tar.gz
sudo mkdir -p /opt/forwarder
sudo tar -C /opt/forwarder -xzf forwarder.tar.gz
curl -L -o forwarder.tar.gz https://github.com/saucelabs/forwarder/releases/download/v1.3.2/forwarder-1.3.2_linux.x86_64.tar.gz
sudo mkdir -p /opt/forwarder
sudo tar -C /opt/forwarder -xzf forwarder.tar.gz
sudo ln -s /opt/forwarder/forwarder /usr/local/bin/forwarder

Add bash completion #

echo 'source <(forwarder completion bash)' >>~/.bash_profile
sudo mkdir -p /etc/bash_completion.d
sudo ln -s /opt/forwarder/completions/forwarder.bash /etc/bash_completion.d/forwarder

Edit config file #

This step is optional. You can use default configuration or configure Forwarder with flags or environment variables. See CLI reference for more details.

vim /opt/forwarder/forwarder.yaml

Start Forwarder #

forwarder run --config-file /opt/forwarder/forwarder.yaml

© 2024 Sauce Labs Inc.