SpherionOS / PsiphonLinux

Unnofficial repository to make the installation of the Psiphon VPN on the Linux operating system easier
72 stars 21 forks source link

PsiphonLinux #3

Closed Tem85 closed 4 months ago

Tem85 commented 4 months ago

Hello SpherionOS. Please tell me how to launch a specific region in PsiphonLinux? So that when turned on, the same country is always in touch.

SpherionOS commented 4 months ago

Hmm, I'm not quite sure how to set a specific country. It would be some parameter in the config file so I'll do some research. If I find a solution, I'll get back to you and document the solution.

SpherionOS commented 4 months ago

I've found a parameter called "EgressRegion". Inserting this into the psiphon.config file with your target country should tell Psiphon to choose servers from that specific region. Here is the modified psiphon.config example.

{ "LocalHttpProxyPort":8081, "LocalSocksProxyPort":1081, "EgressRegion":"US", "PropagationChannelId":"FFFFFFFFFFFFFFFF", "RemoteServerListDownloadFilename":"remote_server_list", "RemoteServerListSignaturePublicKey":"MIICIDANBgkqhkiG9w0BAQEFAAOCAg0AMIICCAKCAgEAt7Ls+/39r+T6zNW7GiV>"RemoteServerListUrl":"https://s3.amazonaws.com//psiphon/web/mjr4-p23r-puwl/server_list_compressed", "SponsorId":"FFFFFFFFFFFFFFFF", "UseIndistinguishableTLS":true }

I have changed "EgressRegion":"US", to US and it should hopefully put you in the right region. Change the region code to the country you want when you use it.. Try this on your linux device to see if it works. My onsite linux lab is being funky and I can't test right now. Lmk how it goes

Tem85 commented 4 months ago

Thanks a lot! Everything works great! You are the best!

SpherionOS commented 4 months ago

I'm glad it worked. I'll close this issue and update the documentation to show how to change regions.

hero007ir commented 2 months ago

Hello, I followed all the steps correctly.

After executing the following command, I get an error that the psiphon.config file does not exist: ./'psiphon-tunnel-core-x86_64' -config psiphon.config

I manually create this file and execute the above command again and the following error is displayed to me: {"data":{"message":"error processing configuration file: psiphon.LoadConfig#907: invalid character 'R' after object key:value pair"},"noticeType":"Error","timestamp":"2024-07-29T08:17:25.149Z"}

Ubuntu 22

SpherionOS commented 2 months ago

By "manually created this file" do you mean you wrote it out instead of copy pasting? Could there be a mistake while writing it? I'll rerun this code on an Ubuntu 22 vm to see if i get any errors there.

hero007ir commented 2 months ago

By "manually created this file" do you mean you wrote it out instead of copy pasting? Could there be a mistake while writing it? I'll rerun this code on an Ubuntu 22 vm to see if i get any errors there.

No. I created this file by nano psiphon.config command and put the above code by copy pasting (+save file) and received this error.

SpherionOS commented 2 months ago

Thats all good, thank you for the clarification, I'm looking into it now

SpherionOS commented 2 months ago

Could you copy paste the config file you have here so I can look at it?

hero007ir commented 2 months ago

Could you copy paste the config file you have here so I can look at it?

The contents of this file are exactly the same codes that you put above:

{ "LocalHttpProxyPort":8081, "LocalSocksProxyPort":1081, "EgressRegion":"US", "PropagationChannelId":"FFFFFFFFFFFFFFFF", "RemoteServerListDownloadFilename":"remote_server_list", "RemoteServerListSignaturePublicKey":"MIICIDANBgkqhkiG9w0BAQEFAAOCAg0AMIICCAKCAgEAt7Ls+/39r+T6zNW7GiV>"RemoteServerListUrl":"https://s3.amazonaws.com//psiphon/web/mjr4-p23r-puwl/server_list_compressed", "SponsorId":"FFFFFFFFFFFFFFFF", "UseIndistinguishableTLS":true }

As I said before, when I type the following command, (./'psiphon-tunnel-core-x86_64' -config psiphon.config) it says that the psiphon.config file does not exist, and I create it with the nano psiphon.config command and put the contents you said in it.

smblue07 commented 2 months ago

Hello to fix the location Edit the file /etc/psiphon/psiphon.config with nano Put the location in the 3 line, it will be ok, for example: { "LocalHttpProxyPort":8081, "LocalSocksProxyPort":1081, "EgressRegion":"US", .... }

hero007ir commented 2 months ago

Hello to fix the location Edit the file /etc/psiphon/psiphon.config with nano Put the location in the 3 line, it will be ok, for example: { "LocalHttpProxyPort":8081, "LocalSocksProxyPort":1081, "EgressRegion":"US", .... }

Thanks a lot! Everything works great!

iaghapour commented 2 months ago

Introducing the script in Persian language (English subtitles):

https://youtu.be/d3xJbxA9nGM?si=Rj173r21yyNzClNn

tsunamihell commented 2 months ago

first create config file nano config.json Copy and paste the following JSON content into the nano editor: { "LocalHttpProxyPort": 8081, "LocalSocksProxyPort": 1081, "EgressRegion": "US", "PropagationChannelId": "FFFFFFFFFFFFFFFF", "RemoteServerListDownloadFilename": "remote_server_list", "RemoteServerListSignaturePublicKey": "MIICIDANBgkqhkiG9w0BAQEFAAOCAg0AMIICCAKCAgEAt7Ls+/39r+T6zNW7GiV", "RemoteServerListUrl": "https://s3.amazonaws.com//psiphon/web/mjr4-p23r-puwl/server_list_compressed", "SponsorId": "FFFFFFFFFFFFFFFF", "UseIndistinguishableTLS": true } Save this content as a file named config.json

chmod +x psiphon-tunnel-core-x86_64

then ./psiphon-tunnel-core-x86_64 -config config.json

You can specify different egress regions in the configuration file to control the country from which your traffic appears to originate. Here’s a list of available regions you can use:

"regions":["AT","BE","BG","CA","CH","CZ","DE","DK","EE","ES","FI","FR","GB","HU","IE","IN","IT","JP","NL","NO","PL","RO","RS","SE","SK","US"]

mahsamcse commented 2 months ago

first create config file nano config.json Copy and paste the following JSON content into the nano editor: { "LocalHttpProxyPort": 8081, "LocalSocksProxyPort": 1081, "EgressRegion": "US", "PropagationChannelId": "FFFFFFFFFFFFFFFF", "RemoteServerListDownloadFilename": "remote_server_list", "RemoteServerListSignaturePublicKey": "MIICIDANBgkqhkiG9w0BAQEFAAOCAg0AMIICCAKCAgEAt7Ls+/39r+T6zNW7GiV", "RemoteServerListUrl": "https://s3.amazonaws.com//psiphon/web/mjr4-p23r-puwl/server_list_compressed", "SponsorId": "FFFFFFFFFFFFFFFF", "UseIndistinguishableTLS": true } Save this content as a file named config.json

chmod +x psiphon-tunnel-core-x86_64

then ./psiphon-tunnel-core-x86_64 -config config.json

You can specify different egress regions in the configuration file to control the country from which your traffic appears to originate. Here’s a list of available regions you can use:

"regions":["AT","BE","BG","CA","CH","CZ","DE","DK","EE","ES","FI","FR","GB","HU","IE","IN","IT","JP","NL","NO","PL","RO","RS","SE","SK","US"]

error root@8888:~# sudo chmod +x psiphon-tunnel-core-x86_64 chmod: cannot access 'psiphon-tunnel-core-x86_64': No such file or directory

tsunamihell commented 2 months ago

first create config file nano config.json Copy and paste the following JSON content into the nano editor: { "LocalHttpProxyPort": 8081, "LocalSocksProxyPort": 1081, "EgressRegion": "US", "PropagationChannelId": "FFFFFFFFFFFFFFFF", "RemoteServerListDownloadFilename": "remote_server_list", "RemoteServerListSignaturePublicKey": "MIICIDANBgkqhkiG9w0BAQEFAAOCAg0AMIICCAKCAgEAt7Ls+/39r+T6zNW7GiV", "RemoteServerListUrl": "https://s3.amazonaws.com//psiphon/web/mjr4-p23r-puwl/server_list_compressed", "SponsorId": "FFFFFFFFFFFFFFFF", "UseIndistinguishableTLS": true } Save this content as a file named config.json chmod +x psiphon-tunnel-core-x86_64 then ./psiphon-tunnel-core-x86_64 -config config.json You can specify different egress regions in the configuration file to control the country from which your traffic appears to originate. Here’s a list of available regions you can use: "regions":["AT","BE","BG","CA","CH","CZ","DE","DK","EE","ES","FI","FR","GB","HU","IE","IN","IT","JP","NL","NO","PL","RO","RS","SE","SK","US"]

error root@8888:~# sudo chmod +x psiphon-tunnel-core-x86_64 chmod: cannot access 'psiphon-tunnel-core-x86_64': No such file or directory.

Ensure you have downloaded the psiphon-tunnel-core-x86_64 executable file. Place it in your desired directory.If you have not downloaded it yet, do so from the official source.

irantechh commented 2 months ago

first create config file nano config.json Copy and paste the following JSON content into the nano editor: { "LocalHttpProxyPort": 8081, "LocalSocksProxyPort": 1081, "EgressRegion": "US", "PropagationChannelId": "FFFFFFFFFFFFFFFF", "RemoteServerListDownloadFilename": "remote_server_list", "RemoteServerListSignaturePublicKey": "MIICIDANBgkqhkiG9w0BAQEFAAOCAg0AMIICCAKCAgEAt7Ls+/39r+T6zNW7GiV", "RemoteServerListUrl": "https://s3.amazonaws.com//psiphon/web/mjr4-p23r-puwl/server_list_compressed", "SponsorId": "FFFFFFFFFFFFFFFF", "UseIndistinguishableTLS": true } Save this content as a file named config.json

chmod +x psiphon-tunnel-core-x86_64

then ./psiphon-tunnel-core-x86_64 -config config.json

You can specify different egress regions in the configuration file to control the country from which your traffic appears to originate. Here’s a list of available regions you can use:

"regions":["AT","BE","BG","CA","CH","CZ","DE","DK","EE","ES","FI","FR","GB","HU","IE","IN","IT","JP","NL","NO","PL","RO","RS","SE","SK","US"]

thanks, its work for me; is there anyway to use 2 or more location?