TrueNAS-Scripts icon indicating copy to clipboard operation
TrueNAS-Scripts copied to clipboard

Failed to bind the port: Bad Gateway; Incorrect gateway address

Open GR1ML0CK opened this issue 2 years ago • 1 comments

when i run the script i get this log output:

| Transmission Port Forward 2023-06-23 14:23:16
| VPN connection up.
| Closed port detected.
| Loading port forward assignment information..
| New port: 37600
| Failed to bind the port: Bad Gateway; Incorrect gateway address

The first time i ran it, it complained about there not being a file at /tmp/piaPort/gateway.txt, so i created one. Now i get the above mentioned error. Should i have something in the gateway file. I don't see anything that suggests what goes there.

I am running this in a jail on FreeNas

GR1ML0CK avatar Jun 23 '23 21:06 GR1ML0CK

@GR1ML0CK the relevant section is the write_gateway_script function: its job is to make changes to your openvpn config to call a helper script that it writes that writes the /tmp/piaPort/gateway.txt file. If that file is not being created automatically then some part of that is not working correctly.

So can you tell me: are the mods being made to the config file? Is the helper script being written?

dak180 avatar Jun 24 '23 04:06 dak180