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

Version 3.0.0 #283

Merged
merged 178 commits into from
Oct 27, 2021
Merged

Version 3.0.0 #283

merged 178 commits into from
Oct 27, 2021

Conversation

jotyGill
Copy link
Owner

New release in 3 years. This is a major release that includes many improvements and bugfixes including fix for new API rate limiting set by Nordvpn, causing JSONDecodeErrors.

Some of the changes are:

New feature: Allow Openpyn to invoke sudo to run the specified command

Added MacOS manual DNS patch and revert to prevent DNS leak

New option --allow-locally To be used with "-f" to allow input traffic on all ports from locally connected devices / INTERNAL IP SUBNET

[New option --add-route to Add route to default-gateway; Needed to continue serving any service including SSH. Required on VPSs. To ensure it doesn't leak traffic use it with -f and --allow]

New options --allow-config and --allow-config-json. These options load a JSON config object that gets converted into a series of ip table rules that get loaded before the firewall to exclude certain ports.

[Logs are now stored in ~/.local/share/openpyn/logs/ instead of /var/log/openpyn/]

New option --stats

Send pings in parrallel

Removed --ping option

Added new Netflix servers

Fixed ping issue on systems with LC_NUMERIC other den en_*

Bugfix, kill_management_client() should be called before kill_openpyn

Bugfix: Revert /etc/resolv.conf only if skip_dns_patch is false

Improvement: invocations of openpyn --kill will now exit with status code 0

Add more verbose logging for JSON decode errors

Bugfix: revert /etc/resolv.conf back to the original if it was modified in a finally block (only for connect code invocations), ran tests on macOS

Changes for ASUSWRT-Merlin

Features (ASUSWRT-Merlin)

Feature: NVRAM connect and kill support for Asuswrt-merlin

Note:
Previously only write support was enabled meaning that a user would have to go to the web interface of the router to toggle an off/on switch, now this process is fully automated, and kill also works as a bonus. So now openpyn has full native Asuswrt-merlin support!

Bugfixes (ASUSWRT-Merlin)

Bugfix (nvram) and optimisations

Bugfixes and new features for NVRAM users, external app users

Bugfix: nvram write would fail if certificates folder does not exist yet (e.g., when user has never before used OpenVPN client in web interface)

Bugfix: ASUSWRT-Merlin 384.18 is now supported

Bugfix: ASUSWRT-Merlin latest is now supported

Bugfix: Improve check VPN client status for Asuswrt-merlin

Bugfix: Suppress output for VPN service connect/disconnect for Asuswrt-merlin

Bugfix: Suppress output for VPN service connect/disconnect for Asuswrt-merlin

jotyGill and others added 30 commits September 11, 2018 14:23
removed write permissions for others to folder "/var/log/openpyn" and
 execute permissions to files in it.
couldn't have Rotating logs to facilitate it.
added --status   stores status in "/var/log/openpyn/status"
store "openvpn --status" option's output to
"/var/log/openpyn/openvpn-status"
Except FileNotFoundError when config file is not yet downloaded
…ptions instead of status returns, removal of sys.exit() calls
…lter optimisation (CPU in a router is very slow)
…nd if using 'if' instead of 'elif', that very same server would be added multiple times to the remaining_servers list
A very big pull request :)
…ills the calling process as well (no clean exit code of 0)
…lled, openpyn will exit gracefully as well, explanation -- "sudo openpyn --kill" would kill openvpn, but openvpn could/would be run just in time again before "sudo killall openpyn" call in kill_all()
Some minor fixes by 1951FDG
1951FDG and others added 27 commits March 19, 2021 01:39
…ed in a finally block (only for connect code invocations), ran tests on macOS
Update README, bugfixes and new features run as another privileged user, NVRAM connect and kill support for Asuswrt-merlin
Several changes including fix for new API rate limiting
@jotyGill jotyGill merged commit 74a2c4d into master Oct 27, 2021
@1951FDG
Copy link
Contributor

1951FDG commented Oct 27, 2021

@jotyGill This is a huge release ! !, :)

I wasn't expecting a release this quickly, we also need to update the Netflix code, we should remove the argument and everything Netflix related, since its no longer relevant, and there is no documentation anymore about it on NordVPN.

Let me know if you're ok with this.

Edit: We leave the argument, but deprecate it, with or without a warning, and we remove all code Netflix related

@jotyGill
Copy link
Owner Author

jotyGill commented Nov 2, 2021

@1951FDG
Cool, sounds good. When somene uses --netflix, I think we should display something like,
Support for --netflix option has been deprecated by NordVPN. Please remove it from your scripts.

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

Successfully merging this pull request may close these issues.

None yet

5 participants