# Installation + Config

Installing Tailscale is made simple with OPNsense, and only 2 items are required to successfully install the service:

1. Console Access to router (SSH)
2. Internet Connection

SSH into your OPNsense router console, enter "8" to select the shell option. Then run the command to download or update the ports tree:

[![console.png](https://austinhomelabs.com/uploads/images/gallery/2024-04/scaled-1680-/38lzJ8m9N4nvMzI9-console.png)](https://austinhomelabs.com/uploads/images/gallery/2024-04/38lzJ8m9N4nvMzI9-console.png)

```
opnsense-code ports
```

Run it twice to make sure the most current and up-to-date version is downloaded. Then change directories and run the command to install Tailscale:

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-04/scaled-1680-/jAp3e33DnoJrRcVz-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-04/jAp3e33DnoJrRcVz-image.png)

```
cd /usr/ports/security/tailscale
make install
```

Run the following commands to enable the tailscaled service and check for the version to ensure its installed:

```
service tailscaled enable
service tailscaled start
```

Check version with:

```
tailscale version
```

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-04/scaled-1680-/16mdbxbQILqzPSPZ-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-04/16mdbxbQILqzPSPZ-image.png)

Run the command to add the OPNsense router as a node on your tailnet:

```
tailscale up
```

The output will provide you an authentication link to enter in your browser

Open your OPNsense router Web GUI to assign the interface and lock it to prevent removal:

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-04/scaled-1680-/RhBfZL40Buh7iUtp-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-04/RhBfZL40Buh7iUtp-image.png)

Your installation of tailscale is complete! Your next step should be to set up port mapping. See next page