Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra \ in wireguard script in port forwarding section and missing export #4

Closed
Baenwort opened this issue Nov 23, 2020 · 2 comments
Closed

Comments

@Baenwort
Copy link

In the section: This script got started with PIA_PF=true. We will allow WireGuard to fully initialize and after that we will try to enable PF by running the following command: $ PIA_TOKEN=$PIA_TOKEN \\ PF_GATEWAY=\"$(echo "$wireguard_json" | jq -r '.server_vip')\" \\ PF_HOSTNAME=\"$WG_HOSTNAME\" \\ ./port_forwarding.sh
which starts on line 166 of connect_to_wireguard_with_token.sh you have to many \ and you are missing some exporting of the gateway and hostname to enable them to be used by the port_forwarding.sh

the code should be (and makes this function for me):
PIA_TOKEN=$PIA_TOKEN \ PF_GATEWAY="$(echo "$wireguard_json" | jq -r '.server_vip')" \ export PF_GATEWAY PF_HOSTNAME="$WG_HOSTNAME" \ export PF_HOSTNAME

@Baenwort Baenwort changed the title Extra \ in wireguard script in port forwarding section Extra \ in wireguard script in port forwarding section and missing export Nov 23, 2020
Baenwort added a commit to Baenwort/manual-connections that referenced this issue Apr 27, 2021
correcting items mentioned in glorious1#4
@glorious1
Copy link
Owner

Thanks. I'm not sure what that's all about, but it's merged. I never used Wireguard. Just to be clear, these scripts and all the magic came from pia-foss/manual-connections; I was just trying to get them going on FreeNAS/FreeBSD.

@Baenwort Baenwort closed this as completed Jun 2, 2021
@Baenwort
Copy link
Author

Baenwort commented Jun 2, 2021

Fixed merged in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants