617 Commits

Author SHA1 Message Date
Patrick Kishino
e19200f5f5
Remove script_security
Due to non-support of this in latest openvpn it is removed..
2023-09-04 20:54:03 +09:00
Aemulation
75147a276b
TRANSMISSION_RPC_URL option causes a moved permanently error when using PIA (#2657)
* Respect option `TRANSMISSION_RPC_URL`

remove debug echo

* default `TRANSMISSION_RPC_URL` is now grabbed from `default-settings.json`

* Stricter grep pattern

* Remove redundant grep

* Added comment

* Use `jq` instead of `sed` to determine the default of `TRANSMISSION_RPC_URL`

---------

Co-authored-by: Mark Honkoop <112875887+MarkHonkoop@users.noreply.github.com>
2023-09-04 11:08:24 +09:00
Patrick Kishino
3ac3e14941
Update configure-openvpn.sh 2023-08-30 10:36:44 +09:00
Patrick Kishino
42eb2ee94e
Update fetch-external-configs.sh
removed duplicate bracket
2023-05-19 10:16:59 +09:00
ksurl
32833c41ba
move vpn config download to /config (#2592)
* move vpn config download to /config

* fix git safe dir permissions

* cleanup vpn config clone

* re-add zip dl, set git to default
2023-05-17 12:31:35 +09:00
WitchRecipe
82756d6a10
Fix problem with enabled UFW with Random Ports (#2603)
Fixing #2255
2023-05-11 21:01:53 +09:00
Patrick Kishino
0284aec036
Merge branch 'master' into dev 2023-04-15 22:21:17 +09:00
Derek Gordon
0e23559b69
OVPN script fix for for 4.x branch (#2566)
* Bump docker/build-push-action from 3 to 4 (#2534)

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Socks5 example doc (#2541)

* fixing some heading sizes

* adding socks5-proxy example

---------

Co-authored-by: Jonathan Fair <jonathaf@netapp.com>

* Docs: add capabilities for Podman to tips&tricks (#2546)

Co-authored-by: Tomas Vik <tvik@gitlab.com>

* git instead of unzip

git instead of unzip

* Using GIT

GIT is used now instead of UNZIP due to issues suddenly experienced.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JtMotoX <7191259+JtMotoX@users.noreply.github.com>
Co-authored-by: Jonathan Fair <jonathaf@netapp.com>
Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com>
Co-authored-by: Tomas Vik <tvik@gitlab.com>
2023-04-14 13:10:15 +09:00
Patrick Kishino
c763be0196
Update master with Transmission 4 (#2576)
* Image with Transmission 4.0.0-beta

* Build in separate stage

* Updated to beta2

* Update Dockerfile

* Updated transmission to 4.0.0 release

* Update Dockerfile

* update beta (#2554)

* Bump docker/build-push-action from 3 to 4 (#2534)

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Socks5 example doc (#2541)

* fixing some heading sizes

* adding socks5-proxy example

---------

Co-authored-by: Jonathan Fair <jonathaf@netapp.com>

* Docs: add capabilities for Podman to tips&tricks (#2546)

Co-authored-by: Tomas Vik <tvik@gitlab.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JtMotoX <7191259+JtMotoX@users.noreply.github.com>
Co-authored-by: Jonathan Fair <jonathaf@netapp.com>
Co-authored-by: Tomas Vik <tvik@gitlab.com>

* Update Dockerfile

4.0.2

* Update configure-openvpn.sh (#2567)

Same changes to master going to beta for beta tests w latest Transmission

* Transmission->4.0.3

* prep new master (#2575)

* Bump docker/build-push-action from 3 to 4 (#2534)

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Socks5 example doc (#2541)

* fixing some heading sizes

* adding socks5-proxy example

---------

Co-authored-by: Jonathan Fair <jonathaf@netapp.com>

* Docs: add capabilities for Podman to tips&tricks (#2546)

Co-authored-by: Tomas Vik <tvik@gitlab.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JtMotoX <7191259+JtMotoX@users.noreply.github.com>
Co-authored-by: Jonathan Fair <jonathaf@netapp.com>
Co-authored-by: Tomas Vik <tvik@gitlab.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Kristian Haugene <kristian@haugene.net>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JtMotoX <7191259+JtMotoX@users.noreply.github.com>
Co-authored-by: Jonathan Fair <jonathaf@netapp.com>
Co-authored-by: Tomas Vik <tvik@gitlab.com>
Co-authored-by: Derek Gordon <derek@derekgordon.com>
2023-04-14 13:04:30 +09:00
phesster
2322fd117d
simple adjustments to "openvpn/modify-openvpn-config.sh" and "transmission/start.sh" that can make the verbosity of logging user-adjustable (#2564)
* Bump docker/build-push-action from 3 to 4 (#2534)

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Socks5 example doc (#2541)

* fixing some heading sizes

* adding socks5-proxy example

---------

Co-authored-by: Jonathan Fair <jonathaf@netapp.com>

* Docs: add capabilities for Podman to tips&tricks (#2546)

Co-authored-by: Tomas Vik <tvik@gitlab.com>

* Change CONFIG_MOD_VERBOSITY usage

This change causes ${CONFIG_MOD_VERBOSITY} to become a variable used directly in the .ovpn config file.  The default value remains '3'.

* Insert ${TRANSMISSION_LOGGING} into exec'd command

This change allows for executing 'transmission-daemon' with '--log-level' set.  Utilizing a case-statement and forced lowercase, only valid values are accepted.  Default is no logging.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JtMotoX <7191259+JtMotoX@users.noreply.github.com>
Co-authored-by: Jonathan Fair <jonathaf@netapp.com>
Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com>
Co-authored-by: Tomas Vik <tvik@gitlab.com>
2023-03-28 22:02:35 +09:00
Chad
4d9a5e4483
Fix crash in fetch-external-configs on unset vars (#2561) 2023-03-25 19:47:18 +09:00
Kristian Haugene
b6c404900b Check for files existing instead of being executable #2459 2023-02-14 22:25:49 +01:00
edgd1er
8db9cd4681
review nordvpn error exit messages + tests (#2518) 2023-02-13 19:19:57 +09:00
Colin Hebert
cc616d4433
Simplify RPC creds setup (#2480)
Reduce the complexity associated with creating RPC creds
2023-01-21 08:03:27 +09:00
Kristian Haugene
0d2810850f Fix fallback of transmission-home #2409 2022-12-21 00:18:31 +01:00
Jonathan Sloan
3a7320e5cc
Fix sed busy (#2426)
* fix sed device or resource busy errors

Signed-off-by: Jonathan Sloan <jsloan117@gmail.com>

* update info

Signed-off-by: Jonathan Sloan <jsloan117@gmail.com>

* update docs

Signed-off-by: Jonathan Sloan <jsloan117@gmail.com>

* log and fail if config is a mountpoint

Signed-off-by: Jonathan Sloan <jsloan117@gmail.com>

* correct mountpoint check

Signed-off-by: Jonathan Sloan <jsloan117@gmail.com>

Signed-off-by: Jonathan Sloan <jsloan117@gmail.com>
2022-12-03 09:15:30 +01:00
Kristian Haugene
e5506e07e8 Quoute variables, fixes #2406 and #2418 2022-12-03 00:15:23 +01:00
Kristian Haugene
bcebe02df6 Allow unbound variables for UFW #2404 2022-11-16 09:26:44 +01:00
Derek Gordon
9308405d50 Update configure-openvpn.sh
Final pull request to master project lost/failed to have executable permissions on script.
2022-11-10 13:34:55 -05:00
Dustin Wilson
2c1f6102ec
Delete tun device if exists when create_tun_device is set (#2328) 2022-08-29 09:11:41 +09:00
Jan Matias Rivø
ab202865af
Added docker secret support for rpc credentials (#2321)
Co-authored-by: Jan Rivø <jan.rivo@cgi.com>
2022-08-29 09:04:05 +09:00
Derek Gordon
7a54587e7f
add OVPN to dev (#2317) 2022-08-16 05:49:31 +09:00
Dupontem
c06a8ad890
Update configure-openvpn.sh (#2299)
https://configs.ipvanish.com/configs is the right baseUrl
2022-07-25 09:09:27 +09:00
koukihai
67ae2da5c1
Replace ip route add with ip route replace (#2285) 2022-06-27 09:32:16 +09:00
MustangGB
0a9d4b5c33
Execute a script on VPN connection failure (#2252)
* Update start.sh

* Update persistEnvironment.py

* Update modify-openvpn-config.sh

* Update tunnelUp.sh

* Update modify-openvpn-config.sh

* Update modify-openvpn-config.sh

* Update modify-openvpn-config.sh

* Update modify-openvpn-config.sh

* Create config-failure.sh

* Update config-failure.sh

* Update tunnelUp.sh

* Update modify-openvpn-config.sh
2022-05-18 12:03:29 +09:00
Jason O'Conal
795098d51b
Fix PIA token script (#2250)
* Fixed typo in line 95

`form` to `from`

* supported setting DISABLE_PORT_UPDATER to false

previously DISABLE_PORT_UPDATER had to not exist..now it can also be set to false

* Fix minor typos (#2074)

* Fixed missing $ from UFW variable use

There were a number of variable references missing $

* Fixed some more variables missing $

* Removed outdated typeset

this fixes and closes #2095

* Fix building-blocks links (#2126)

* Update bug_report.yaml

* Fix PIA token script

Co-authored-by: Kobi <kobirosenstein@gmail.com>
Co-authored-by: Kristian Haugene <haugene@users.noreply.github.com>
Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com>
Co-authored-by: Sean Kelly <xconverge@users.noreply.github.com>
Co-authored-by: Chris Buckley <chris@cmbuckley.co.uk>
2022-05-02 09:02:25 +09:00
Patrick Kishino
51e8a0270a
Bash not equals fixed 2022-04-12 06:42:55 +09:00
Patrick Kishino
edb73e83d1
more explicit custom check
use VPN_PROVIDER when checking for CUSTOM and avoid external fetch
2022-04-10 12:45:26 +09:00
MustangGB
8952476945
Enforce new vpn endpoint on restart/failure (#2237)
* Fixed typo in line 95

`form` to `from`

* supported setting DISABLE_PORT_UPDATER to false

previously DISABLE_PORT_UPDATER had to not exist..now it can also be set to false

* Fix minor typos (#2074)

* Fixed missing $ from UFW variable use

There were a number of variable references missing $

* Fixed some more variables missing $

* Removed outdated typeset

this fixes and closes #2095

* Fix building-blocks links (#2126)

* Update bug_report.yaml

* Update start.sh

Co-authored-by: Kobi <kobirosenstein@gmail.com>
Co-authored-by: Kristian Haugene <haugene@users.noreply.github.com>
Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com>
Co-authored-by: Sean Kelly <xconverge@users.noreply.github.com>
Co-authored-by: Chris Buckley <chris@cmbuckley.co.uk>
2022-04-06 15:26:05 +09:00
Jonathan Sloan
e6bbf22790
removing cd command from vyprvpn download script (#2235) 2022-04-03 16:41:59 +09:00
edgd1er
383252d3cd
use docker secrets for openvpn credentials (#2169)
* use docker secrets for openvpn credentials

* openvpn creds in one file

Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com>
2022-02-18 09:12:03 +09:00
edgd1er
b65dedd01e
Add feature to NORDVPN: connect directly to a known server. (#2142)
* Add feature NORDVPN_SERVER, to download directly server's config.

* define vars as empty to avoid unbound variables

* restore shebang, define default values for NORDVPN_*
2022-01-29 15:35:11 +09:00
edgd1er
e7bda4030d
Fix NORDVPN download (appeared in PR#2104) (#2110)
fix doc typo + fix curl output filename
2021-12-12 18:34:37 +09:00
edgd1er
7be50f125c
update nordvpn script (#2104)
add warnings in logs, links to online doc, tests
2021-12-11 21:59:28 +09:00
Josh S
ff664f4fd4
Add ability to run custom script after routes are added (#2100)
* Fixed typo in line 95

`form` to `from`

* supported setting DISABLE_PORT_UPDATER to false

previously DISABLE_PORT_UPDATER had to not exist..now it can also be set to false

* Fix minor typos (#2074)

* Fixed missing $ from UFW variable use

There were a number of variable references missing $

* Fixed some more variables missing $

* Removed outdated typeset

this fixes and closes #2095

* add capability for routes-post-start.sh

* update docs

* amended position

placed entry where it should be in logical order when thinking about container lifecycle

Co-authored-by: Kobi <kobirosenstein@gmail.com>
Co-authored-by: Kristian Haugene <haugene@users.noreply.github.com>
Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com>
Co-authored-by: Sean Kelly <xconverge@users.noreply.github.com>
2021-12-10 13:02:49 +09:00
edgd1er
6bd01919f2
Fix for #2096 when not value is set for DEBUG (#2098) 2021-12-06 08:42:32 +09:00
edgd1er
af3d905b3a
DEBUG: print all lines before execution (#2096)
* DEBUG: print all lines before execution

if var DEBUG is set to anything other than false, each bash script will be run with a set -x. This would ease debugging

* DEBUG: centralize commands in utils.sh
2021-12-05 08:25:22 +09:00
XMB5
22f199814d
Fix scripts to work with --route-up, and update settings.json in transmission-home folder (#2082)
* Fix scripts to work with --route-up

* Update settings.json in transmission-home folder
2021-11-28 10:05:40 +09:00
XMB5
42b99aa86d
Fix IP leak for first few seconds after tunnel up (#2080) 2021-11-27 18:33:07 +09:00
Patrick Kishino
7793e9d23b
Using CUSTOM provider should not trigger download from vpn-repo (#2010) 2021-10-16 12:33:30 +09:00
Patrick Kishino
553b560d46 TunnelDown restores resolv.conf if backup exists" 2021-10-06 16:09:24 +09:00
Patrick Kishino
502ca0a5ad
Fixed missing env variables (#1973)
* Update bug_report.yaml (#1949)

* Fixed missing env variables

openvpn tunnelUp was missing required env variables: fixed
privoxy start/stop same: fixed
PEER_DNS and PEER_DNS_PIN_ROUTES added to persistEnv file
2021-09-29 09:15:18 +09:00
Kristian Haugene
b3074d5010 Add option to remap sigusr signal. And fix some comments in the scripts, was a bit copy-paste driven :) 2021-09-08 17:09:40 +02:00
Kristian Haugene
d580138e43 Add more config transformation options. Ref https://github.com/haugene/vpn-configs-contrib/issues/43 2021-09-08 16:54:26 +02:00
Kristian Haugene
8f0a92a2ff Modifying ca path should be in-place ofc 2021-09-05 18:25:32 +02:00
Kristian Haugene
3aa8daa0d3 Handle modifying relative and absolute ca paths 2021-09-05 01:14:41 +02:00
Kristian Haugene
c016e5d439 Another stab at the sed for ca certs 2021-09-04 20:25:34 +02:00
Patrick Kishino
1e107ef80f
ca replace corrected to include the ca cert
previousy it was stripping the cert and only replacing the directory
2021-08-25 08:43:55 +09:00
Patrick Kishino
60dd853c92
Fixed incorrect ca cert replacement
fixes #1916
2021-08-24 13:15:42 +09:00
Jake Melikov
e003c0639f
Automatically remove keepalive option if present. (#1827)
It doesn't work together with the ping options which we're adding in the following lines.
2021-05-10 05:52:37 +09:00