[GH-ISSUE #18] Update for Pritunl v1.30.3108.50 #17

Closed
opened 2026-02-27 23:03:24 +03:00 by kerem · 47 comments
Owner

Originally created by @MANKUD on GitHub (Mar 17, 2022).
Original GitHub issue: https://github.com/simonmicro/Pritunl-Fake-API/issues/18

Originally assigned to: @simonmicro on GitHub.

Hello,

Could you please try to make your API work for the latest release pritunl v1.30.3108.50 as this release contains a fix for port forwarding on wireguard which is very crucial. if you are able to do it I would love to make a donation to support you.

Originally created by @MANKUD on GitHub (Mar 17, 2022). Original GitHub issue: https://github.com/simonmicro/Pritunl-Fake-API/issues/18 Originally assigned to: @simonmicro on GitHub. Hello, Could you please try to make your API work for the latest release pritunl v1.30.3108.50 as this release contains a fix for port forwarding on wireguard which is very crucial. if you are able to do it I would love to make a donation to support you.
kerem 2026-02-27 23:03:24 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@simonmicro commented on GitHub (Mar 17, 2022):

Sure thing! Could you provide any logs what the current problem is? There is a good chance, that you have just missed to reapply the patch after updating 😁

<!-- gh-comment-id:1071850433 --> @simonmicro commented on GitHub (Mar 17, 2022): Sure thing! Could you provide any logs what the current problem is? There is a good chance, that you have just missed to reapply the patch after updating :grin:
Author
Owner

@MANKUD commented on GitHub (Mar 17, 2022):

Hello,

I have tried it on a fresh installation on the latest release its just that
it says the license is activated as I remember but nothing happens.

<!-- gh-comment-id:1071870261 --> @MANKUD commented on GitHub (Mar 17, 2022): Hello, I have tried it on a fresh installation on the latest release its just that it says the license is activated as I remember but nothing happens.
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

The logs when I had checked it said invalid key.

<!-- gh-comment-id:1071883309 --> @MANKUD commented on GitHub (Mar 18, 2022): The logs when I had checked it said invalid key.
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

Hello,

Would you be able to help me I would really appreciate it and maybe we can have a look together if you have time.

<!-- gh-comment-id:1072315144 --> @MANKUD commented on GitHub (Mar 18, 2022): Hello, Would you be able to help me I would really appreciate it and maybe we can have a look together if you have time.
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

Sure thing! Could you provide any logs what the current problem is? There is a good chance, that you have just missed to reapply the patch after updating 😁

Here are a few screenshots.

image

image

image

<!-- gh-comment-id:1072657241 --> @MANKUD commented on GitHub (Mar 18, 2022): > Sure thing! Could you provide any logs what the current problem is? There is a good chance, that you have just missed to reapply the patch after updating 😁 Here are a few screenshots. ![image](https://user-images.githubusercontent.com/83474708/159057805-bb342533-84b9-4e1c-adeb-afaf88b198c9.png) ![image](https://user-images.githubusercontent.com/83474708/159057817-7de721e2-350d-4d87-ac5e-bdb8c6a1889f.png) ![image](https://user-images.githubusercontent.com/83474708/159057827-9b8ff9f9-5169-425d-a6a6-2152a0ef7a6c.png)
Author
Owner

@simonmicro commented on GitHub (Mar 18, 2022):

🤣 - I see: github.com/pritunl/pritunl@c1772d9b32

Guess I have to update the script to work with that... This will take a while, as I have pretty much no time 😁

<!-- gh-comment-id:1072728276 --> @simonmicro commented on GitHub (Mar 18, 2022): :rofl: - I see: https://github.com/pritunl/pritunl/commit/c1772d9b3268f91de409ad552e3d4d54d5ae1125 Guess I have to update the script to work with that... This will take a while, as I have pretty much no time :grin:
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

Oh, I see that now he has encoded it using base64. Will it be so hard since base64 is used?

<!-- gh-comment-id:1072734796 --> @MANKUD commented on GitHub (Mar 18, 2022): Oh, I see that now he has encoded it using base64. Will it be so hard since base64 is used?
Author
Owner

@simonmicro commented on GitHub (Mar 18, 2022):

No, but I will NOT update the setup for that - at least not using bash. I guess a few lines of Python will be enough for the future.

<!-- gh-comment-id:1072735734 --> @simonmicro commented on GitHub (Mar 18, 2022): No, but I will NOT update the setup for that - at least not using bash. I guess a few lines of Python will be enough for the future.
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

oh ok, may I know a timeline maybe? when can we expect an update from your end?

<!-- gh-comment-id:1072738267 --> @MANKUD commented on GitHub (Mar 18, 2022): oh ok, may I know a timeline maybe? when can we expect an update from your end?
Author
Owner

@simonmicro commented on GitHub (Mar 18, 2022):

Could you be my BETA tester? Try this: setup.py.zip

<!-- gh-comment-id:1072799675 --> @simonmicro commented on GitHub (Mar 18, 2022): Could you be my BETA tester? Try this: [setup.py.zip](https://github.com/simonmicro/Pritunl-Fake-API/files/8307646/setup.py.zip)
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

sure I would love to let me try this :)

<!-- gh-comment-id:1072815865 --> @MANKUD commented on GitHub (Mar 18, 2022): sure I would love to let me try this :)
Author
Owner

@simonmicro commented on GitHub (Mar 18, 2022):

Nvm, I had not tested the script - it is broken... Working on that...

<!-- gh-comment-id:1072832866 --> @simonmicro commented on GitHub (Mar 18, 2022): Nvm, I had not tested the script - it is broken... Working on that...
Author
Owner

@simonmicro commented on GitHub (Mar 18, 2022):

2nd try setup.py.zip

<!-- gh-comment-id:1072836248 --> @simonmicro commented on GitHub (Mar 18, 2022): 2nd try [setup.py.zip](https://github.com/simonmicro/Pritunl-Fake-API/files/8307764/setup.py.zip)
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

yes, I tried and it seems like its broken as you mentioned.

BTW I downgraded to pritunl v1.30.3102.46 (last version supported by your current fake API)and then ran your script which worked fine after that I manually replaced the wg port forwarding fix files i.e clients.py and instance.py and now the wg fix is working on an older version where your old fake api works.

<!-- gh-comment-id:1072836417 --> @MANKUD commented on GitHub (Mar 18, 2022): yes, I tried and it seems like its broken as you mentioned. BTW I downgraded to pritunl v1.30.3102.46 (last version supported by your current fake API)and then ran your script which worked fine after that I manually replaced the wg port forwarding fix files i.e clients.py and instance.py and now the wg fix is working on an older version where your old fake api works.
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

2nd try setup.py.zip

let me give it a try

<!-- gh-comment-id:1072837223 --> @MANKUD commented on GitHub (Mar 18, 2022): > 2nd try [setup.py.zip](https://github.com/simonmicro/Pritunl-Fake-API/files/8307764/setup.py.zip) let me give it a try
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

2nd try setup.py.zip

does not seem to be working I have to run this instead of your old script right?

<!-- gh-comment-id:1072840458 --> @MANKUD commented on GitHub (Mar 18, 2022): > 2nd try [setup.py.zip](https://github.com/simonmicro/Pritunl-Fake-API/files/8307764/setup.py.zip) does not seem to be working I have to run this instead of your old script right?
Author
Owner

@simonmicro commented on GitHub (Mar 18, 2022):

Yes, this is strange... I'm investigating...

<!-- gh-comment-id:1072840818 --> @simonmicro commented on GitHub (Mar 18, 2022): Yes, this is strange... I'm investigating...
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

oh ok no problem take your time :)

<!-- gh-comment-id:1072842185 --> @MANKUD commented on GitHub (Mar 18, 2022): oh ok no problem take your time :)
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

Hi, the script ran successfully but the fake API emulation is not working.

image

<!-- gh-comment-id:1072844885 --> @MANKUD commented on GitHub (Mar 18, 2022): Hi, the script ran successfully but the fake API emulation is not working. ![image](https://user-images.githubusercontent.com/83474708/159089155-ac6c37dc-d778-4dc7-ab60-41d9dd46626b.png)
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

no pop up here

image

image

<!-- gh-comment-id:1072845413 --> @MANKUD commented on GitHub (Mar 18, 2022): no pop up here ![image](https://user-images.githubusercontent.com/83474708/159089607-4b731892-30d3-456e-9080-44cae527de07.png) ![image](https://user-images.githubusercontent.com/83474708/159089477-cb86e2eb-61b9-488b-8730-360c53417f5a.png)
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

image

<!-- gh-comment-id:1072846151 --> @MANKUD commented on GitHub (Mar 18, 2022): ![image](https://user-images.githubusercontent.com/83474708/159090050-d1ecd861-f82d-42b8-83b6-0854847ee1e2.png)
Author
Owner

@simonmicro commented on GitHub (Mar 18, 2022):

Here we go again: setup.py.zip

<!-- gh-comment-id:1072858695 --> @simonmicro commented on GitHub (Mar 18, 2022): Here we go again: [setup.py.zip](https://github.com/simonmicro/Pritunl-Fake-API/files/8307914/setup.py.zip)
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

oh ok great that was quick let me try.

<!-- gh-comment-id:1072858872 --> @MANKUD commented on GitHub (Mar 18, 2022): oh ok great that was quick let me try.
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

looks like added 3 more things.

image

image

<!-- gh-comment-id:1072860417 --> @MANKUD commented on GitHub (Mar 18, 2022): looks like added 3 more things. ![image](https://user-images.githubusercontent.com/83474708/159091865-26ec4208-e3ee-43e6-885d-3893bcc4c18b.png) ![image](https://user-images.githubusercontent.com/83474708/159091869-92c29f17-2710-4562-b07b-52681e62b549.png)
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

looks like it did not work I cannot see advanced options for users :(

image

<!-- gh-comment-id:1072861665 --> @MANKUD commented on GitHub (Mar 18, 2022): looks like it did not work I cannot see advanced options for users :( ![image](https://user-images.githubusercontent.com/83474708/159092078-f66fd1b0-8acd-44bd-a584-c64ce3d656df.png)
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

image

<!-- gh-comment-id:1072863058 --> @MANKUD commented on GitHub (Mar 18, 2022): ![image](https://user-images.githubusercontent.com/83474708/159092327-5d8771e9-087c-40c3-bf57-50b22270bd79.png)
Author
Owner

@simonmicro commented on GitHub (Mar 18, 2022):

Yes, I've just seen that error. Looks like they changed how the CSS file is passed on...

<!-- gh-comment-id:1072863161 --> @simonmicro commented on GitHub (Mar 18, 2022): Yes, I've just seen that error. Looks like they changed how the CSS file is passed on...
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

so it means more digging into it and adding more lines of code into the script?

<!-- gh-comment-id:1072863558 --> @MANKUD commented on GitHub (Mar 18, 2022): so it means more digging into it and adding more lines of code into the script?
Author
Owner

@simonmicro commented on GitHub (Mar 18, 2022):

Theoretically I just have to mitigate github.com/pritunl/pritunl@70b354a10d on my side...

...on it...

<!-- gh-comment-id:1072867431 --> @simonmicro commented on GitHub (Mar 18, 2022): Theoretically I just have to mitigate https://github.com/pritunl/pritunl/commit/70b354a10df55d60515f76d851dee42939864395 on my side... ...on it...
Author
Owner

@simonmicro commented on GitHub (Mar 18, 2022):

Done. I'll push everything soon ™️

Can you confirm?

<!-- gh-comment-id:1072870304 --> @simonmicro commented on GitHub (Mar 18, 2022): Done. I'll push everything soon :tm: Can you confirm?
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

confirm? I did not understand tell me what I need to do?

<!-- gh-comment-id:1072870642 --> @MANKUD commented on GitHub (Mar 18, 2022): confirm? I did not understand tell me what I need to do?
Author
Owner

@simonmicro commented on GitHub (Mar 18, 2022):

Just restart your server after applying the script. I've just updated the api endpoint to be compatible with the newest version!

<!-- gh-comment-id:1072870965 --> @simonmicro commented on GitHub (Mar 18, 2022): Just restart your server after applying the script. I've just updated the api endpoint to be compatible with the newest version!
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

ok I am on it.

<!-- gh-comment-id:1072871095 --> @MANKUD commented on GitHub (Mar 18, 2022): ok I am on it.
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

OMG perfect you are awesome looks like it is finally fixed.

image

image

<!-- gh-comment-id:1072871962 --> @MANKUD commented on GitHub (Mar 18, 2022): OMG perfect you are awesome looks like it is finally fixed. ![image](https://user-images.githubusercontent.com/83474708/159094101-32a31622-89db-429d-99e9-ec44584e67a3.png) ![image](https://user-images.githubusercontent.com/83474708/159094105-7e0c6116-548c-42f5-8d70-3d92f4bac084.png)
Author
Owner

@MANKUD commented on GitHub (Mar 18, 2022):

check your sponsor's page :)

<!-- gh-comment-id:1072873105 --> @MANKUD commented on GitHub (Mar 18, 2022): check your sponsor's page :)
Author
Owner

@simonmicro commented on GitHub (Mar 18, 2022):

Thank you very much 😊 🤯

<!-- gh-comment-id:1072873678 --> @simonmicro commented on GitHub (Mar 18, 2022): Thank you very much :blush: :exploding_head:
Author
Owner

@MANKUD commented on GitHub (Mar 21, 2022):

Hello,

The script seems to be broken again on the latest release. Maybe the developer has again changed something.

image

image

image

<!-- gh-comment-id:1074484915 --> @MANKUD commented on GitHub (Mar 21, 2022): Hello, The script seems to be broken again on the latest release. Maybe the developer has again changed something. ![image](https://user-images.githubusercontent.com/83474708/159373553-9f2746d1-167d-4394-9a3d-b49b0e828ce5.png) ![image](https://user-images.githubusercontent.com/83474708/159373592-e72d07de-598a-4a63-8a56-02ec4b3e27d5.png) ![image](https://user-images.githubusercontent.com/83474708/159373621-d248389d-7cc0-4128-aaad-a16dfb8f91c9.png)
Author
Owner

@simonmicro commented on GitHub (Mar 21, 2022):

Just making sure: You rerun the setup.py after updating? Because I do not see any relevant code changes...

<!-- gh-comment-id:1074486838 --> @simonmicro commented on GitHub (Mar 21, 2022): Just making sure: You rerun the `setup.py` after updating? Because I do not see any relevant code changes...
Author
Owner

@MANKUD commented on GitHub (Mar 21, 2022):

Yes, I already tried that it does not fix it. I think the changes are hidden this time may be as I too did not find any significant changes in the code related to this.

<!-- gh-comment-id:1074487935 --> @MANKUD commented on GitHub (Mar 21, 2022): Yes, I already tried that it does not fix it. I think the changes are hidden this time may be as I too did not find any significant changes in the code related to this.
Author
Owner

@MANKUD commented on GitHub (Mar 21, 2022):

image

<!-- gh-comment-id:1074488585 --> @MANKUD commented on GitHub (Mar 21, 2022): ![image](https://user-images.githubusercontent.com/83474708/159374243-6580a67e-3595-4636-ba83-d68c353c8316.png)
Author
Owner

@simonmicro commented on GitHub (Mar 21, 2022):

Sadly both the Docker image (goofball222/pritunl) and the Debian packages (https://repo.pritunl.com/stable/apt/pool/) do not contain this version yet. Therefore I'm unable to investigate this (yet). Feel free to open up a new issue if the problem persist (even after a cold-boot of the server - maybe some caching is going on here?). Overall this seems very strange...

<!-- gh-comment-id:1074494771 --> @simonmicro commented on GitHub (Mar 21, 2022): Sadly both the Docker image (`goofball222/pritunl`) and the Debian packages (https://repo.pritunl.com/stable/apt/pool/) do not contain this version yet. Therefore I'm unable to investigate this (yet). Feel free to open up a new issue if the problem persist (even after a cold-boot of the server - maybe some caching is going on here?). Overall this seems very strange...
Author
Owner

@MANKUD commented on GitHub (Mar 21, 2022):

What I noticed is that the latest release is usually not available as a package update via the repository and we have to manually download it using wget package name and then run dpkg -i package name to manually update to the latest release.

<!-- gh-comment-id:1074496574 --> @MANKUD commented on GitHub (Mar 21, 2022): What I noticed is that the latest release is usually not available as a package update via the repository and we have to manually download it using wget package name and then run dpkg -i package name to manually update to the latest release.
Author
Owner

@simonmicro commented on GitHub (Mar 21, 2022):

Argh sh*t. here we go again: github.com/pritunl/pritunl@97f08a9ad6

Please open a new issue for this - that will take a while... I guess this only affects the subscription UI...

<!-- gh-comment-id:1074505700 --> @simonmicro commented on GitHub (Mar 21, 2022): Argh sh*t. here we go again: https://github.com/pritunl/pritunl/commit/97f08a9ad634086cc19f38cfdd67cc93bc5eecb0 Please open a new issue for this - that will take a while... I guess this only affects the subscription UI...
Author
Owner

@MANKUD commented on GitHub (Mar 21, 2022):

Yes, right I was about to share the same. Looks like the developer is following Pritunl-Fake-AP very closely 🤣

Alright, I will open a new issue and you can take your time for this one no problem 😄

<!-- gh-comment-id:1074514204 --> @MANKUD commented on GitHub (Mar 21, 2022): Yes, right I was about to share the same. Looks like the developer is following Pritunl-Fake-AP very closely 🤣 Alright, I will open a new issue and you can take your time for this one no problem 😄
Author
Owner

@MANKUD commented on GitHub (Mar 21, 2022):

I see this now will it be even possible anymore?

cipher = Cipher(
algorithms.AES(key),

<!-- gh-comment-id:1074515360 --> @MANKUD commented on GitHub (Mar 21, 2022): I see this now will it be even possible anymore? cipher = Cipher( algorithms.AES(key),
Author
Owner

@simonmicro commented on GitHub (Mar 21, 2022):

Yes, it is - he uses symmetric encryption with not-so-secret secrets... BUT the faked API is written in PHP, so getting the proper "encryption" (more an obfuscation) running on the api side will be very challenging. Maybe I'll just ship a patch with the setup.py which reverts that "feature", but this is a little more intrusive than just changing the hard-coded endpoint URL. I'll have to think about this and won't fix this just as fast as his previous breaking change.

<!-- gh-comment-id:1074518277 --> @simonmicro commented on GitHub (Mar 21, 2022): Yes, it is - he uses symmetric encryption with not-so-secret secrets... BUT the faked API is written in PHP, so getting the proper "encryption" (more an obfuscation) running on the api side will be very challenging. Maybe I'll just ship a patch with the `setup.py` which reverts that "feature", but this is a little more intrusive than just changing the hard-coded endpoint URL. I'll have to think about this and won't fix this just as fast as his previous breaking change.
Author
Owner

@MANKUD commented on GitHub (Mar 21, 2022):

I totally understand and I would love to test it whenever you are able to make a patch for pritunl v1.30.3112.0 😄

<!-- gh-comment-id:1074519647 --> @MANKUD commented on GitHub (Mar 21, 2022): I totally understand and I would love to test it whenever you are able to make a patch for pritunl v1.30.3112.0 😄
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Pritunl-Fake-API#17
No description provided.