# Deploying Forwarding Service

This type of port forwarding program is recommended only for Linux-based systems. Before starting, first open the firewall for port 6009/tcp and modify the configuration according to your needs. Now adjust the following template configuration as appropriate and save it as the `~/frps.ini` file on the server.

```{danger}
Forwarding to the public internet is extremely dangerous. Do not be complacent and assume that the IP and port are very hidden. Be sure to enable certificate verification for the service!
```

```ini
[common]
bind_addr               = 0.0.0.0
bind_port               = 6009

token                   = lamda
use_encryption          = true
tls_enable              = true
allow_ports             = 2000-5000
authentication_timeout  = 60

proxy_bind_addr         = 127.0.0.1
max_pool_count          = 15
```

## Starting the FRPS Service

Execute the following script to download and start the frps server.

```bash
export VERSION=0.52.0
export PLAT=linux_amd64

export DOWNLOADURL=https://github.com/fatedier/frp/releases/download/v${VERSION}/frp_${VERSION}_${PLAT}.tar.gz
wget ${DOWNLOADURL} -O - | tar -xz

cd frp_${VERSION}_${PLAT}

./frps -c ~/frps.ini
```

## Configuring FIRERPA

After the service starts, fill in the following configuration (for configuration methods, see [Service Configuration](./properties.md)). The service will automatically forward its own service port through this server.

```{danger}
Forwarding to the public internet is extremely dangerous. Do not be complacent and assume that the IP and port are very hidden. Be sure to enable certificate verification for the service!
```

```ini
[fwd]
fwd.host=Your server IP
fwd.port=6009
fwd.rport=0
fwd.token=lamda
fwd.protocol=tcp
fwd.enable=true
```

```{tip}
The distributed deployment chapter also has relevant deployment tutorials for your reference.
```