Skip to content

How to setup a manual PF? #37

Description

@Jorman

Hi, I'm trying to make a script to obtain the port-forward but I get some difficult.
Manual setup said:

you will need to find the private IP of the gateway you are connected to. In case you are WireGuard, the gateway will be part of the JSON response you get from the server, as you can see in the bash script.

The script point to a 404 page, but when I try to get the payload the curl command won't report any, a timeout occur.
For example this's the server that I'm already connected:

  Meta Services:  156.146.41.1 milano402
  WireGuard:  156.146.41.6 milano402
  OpenVPN TCP:  156.146.41.6 milano402
  OpenVPN UDP:  156.146.41.10 milano402

I also have the token and all info about the server

--> Trying to get a new token by authenticating with the meta service...
{
    "status": "OK",
    "token": "my token"
}
OK! This token will expire in 24 hours.
--> Trying to connect to the PIA WireGuard API on 156.146.41.6...
wireguard_json -> {
    "status": "OK",
    "server_key": "server key",
    "server_port": 1337,
    "server_ip": "156.146.41.6",
    "server_vip": "10.5.128.1",
    "peer_ip": "10.5.157.46",
    "peer_pubkey": "pubkey",
    "dns_servers": [
        "10.0.0.242",
        "10.0.0.244"
    ]
}
OK!

Now the problematic part ... I want to use all these informations to get my port-forward, so I run this but I get error

curl -k "https://10.5.128.1:19999/getSignature?token=mytoken"
curl: (7) Failed to connect to 10.5.128.1 port 19999: Operation timed out

What I miss?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions