24 Commits

Author SHA1 Message Date
DyonR
d3a6da3c0c Log warning when VPN is disabled
Log warning when VPN is disabled
2022-08-21 15:48:08 +02:00
Miguel A. Vico
e47ac45cba Start VPN client whenever VPN_ENABLED is 1/true/yes
VPN client was only started if VPN_ENABLED was "yes". However, earlier
in the start.sh file preparations were done whenever VPN_ENABLED was
either 1/true/yes.

Using a non-string 'yes' value in docker-compose.yaml, for instance,
would automatically make VPN_ENABLED take a value of "true", and that
would cause the VPN client not to start, without printing any sort of
warning or error.
2022-08-03 14:07:03 -07:00
brogers5
663157da0a
Move initial iptables -V call to avoid nft initialization failure in legacy kernels. 2022-01-07 22:17:14 -05:00
DyonR
3c30f4e4b9 Removed a few unnecessary spaces 2021-11-02 16:14:51 +01:00
DyonR
db18b6860f Allow all 'boolean' yes/no 0/1 true/false be to set like any equivalent
It is now possible to set any 'yes/no', '1/0' or 'true/false' value to any of the equivalent definition. This closes #65
2021-09-23 14:59:13 +02:00
DyonR
0cebbdae4b New method of reverting to iptables (legacy) and version info in log 2021-08-02 19:07:43 +02:00
DyonR
67bbd021d8 Uncommented LEGACY_IPTABLES
As requested in issue #25. Note that this is an experimental workaround, I guess
2021-08-02 18:51:08 +02:00
DyonR
96e038d282 VPN_ENABLED not case sensitive 2021-01-23 22:42:51 +01:00
DyonR
748ff94f82 Added pull-filters for ipv6 with ovpn, code formatting 2021-01-23 17:29:05 +01:00
DyonR
a64fb84fc6 commenting out LEGACY_IPTABLES, fixed sentence, moved sleep used for wg-quick down 2021-01-22 20:52:04 +01:00
Cassidy
f424da9874
Fixed environment variable mishap
$VPN_CONFIG returns a path, not a tunnel interface name. That's my bad. Getting the basename should work fine.
2021-01-19 00:27:37 -05:00
Cassidy
f640e83a28
Prevents extraneous warning from showing up in the logs.
`wg-quick down wg0` is called even if the interface doesn't exist - this change tests to see if the interface exists first. alternatively, it could be done with the following one-liner:

LINE 270:
     `ip link | grep -q $VPN_CONFIG && wg-quick down $VPN_CONFIG || echo "WireGuard is down already" | ts '%Y-%m-%d %H:%M:%.S'
2021-01-18 16:06:44 -05:00
DyonR
be1b3c33bd Revert iptables-legacy-save and restore 2020-12-09 22:56:09 +01:00
DyonR
1e10d8dfb8 Added legacy iptables-restore and iptables-save 2020-12-09 22:05:54 +01:00
DyonR
b52a8fd73b Added support for legacy ip tables 2020-12-09 21:52:05 +01:00
DyonR
1ff1eaac8c Removal of DISABLE_IPV6 2020-12-08 19:53:46 +01:00
DyonR
928b5a9633 Added quotes around some ${VPN_CONFIG}'s 2020-11-08 23:10:51 +01:00
DyonR
fd5f1e358f Catch the exit code of wg-quick down 2020-11-08 00:27:21 +01:00
DyonR
69898d166f
added wg-quick down to start.sh 2020-11-07 23:34:15 +01:00
DyonR
a668334f5b Fixed getting vpn_remote_line if there are no spaces 2020-09-12 22:06:42 +02:00
DyonR
f3db080780 Moved the Python installation to separate script 2020-08-30 20:50:17 +02:00
DyonR
74bcb8af6c Changed apt parameters 2020-08-30 03:41:49 +02:00
DyonR
b58ac33505 Added INSTALL_PYTHON3 2020-08-30 03:25:10 +02:00
DyonR
304e41e38a First working version 2020-08-16 01:53:01 +02:00