Skip to content

Commit

Permalink
bump to 2023 distro packages/python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
furlongm committed Sep 14, 2023
1 parent 79a2019 commit 8a3265c
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 199 deletions.
36 changes: 14 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ server, however it does not necessarily need to.


## Supported Operating Systems
- Ubuntu 20.04 LTS (focal)
- Debian 10 (buster)
- CentOS/RHEL 8
- Ubuntu 22.04 LTS (jammy)
- Debian 11 (bullseye)
- Rocky/Alma/RHEL 9


## Source
Expand All @@ -32,11 +32,11 @@ https://github.com/furlongm/openvpn-monitor
- [nginx + uwsgi](#nginx--uwsgi)
- [deb/rpm](#deb--rpm)

N.B. all CentOS/RHEL instructions assume the EPEL repository has been installed:
N.B. all Rocky/Alma/RHEL instructions assume the EPEL repository has been installed:

```shell
dnf -y install epel-release

dnf makecache
```

If selinux is enabled the following changes are required for host/port to work:
Expand All @@ -51,11 +51,11 @@ setsebool -P httpd_can_network_connect=1
### virtualenv + pip + gunicorn

```shell
# apt -y install python3-virtualenv geoip-database geoip-database-extra # (debian/ubuntu)
# dnf -y install python3-virtualenv geolite2-city # (centos/rhel)
# apt -y install python3-venv # (debian/ubuntu)
# dnf -y install python3 geolite2-city # (rocky/alma/rhel)
mkdir /srv/openvpn-monitor
cd /srv/openvpn-monitor
virtualenv -p python3 .
python3 -m venv .
. bin/activate
pip install openvpn-monitor gunicorn
gunicorn openvpn-monitor -b 0.0.0.0:80
Expand All @@ -71,7 +71,7 @@ See [configuration](#configuration) for details on configuring openvpn-monitor.
##### Debian / Ubuntu

```shell
apt -y install git apache2 libapache2-mod-wsgi python3-geoip2 python3-humanize python3-bottle python3-semantic-version geoip-database geoip-database-extra
apt -y install git apache2 libapache2-mod-wsgi-py3 python3-geoip2 python3-humanize python3-bottle python3-semver
echo "WSGIScriptAlias /openvpn-monitor /var/www/html/openvpn-monitor/openvpn-monitor.py" > /etc/apache2/conf-available/openvpn-monitor.conf
a2enconf openvpn-monitor
systemctl restart apache2
Expand All @@ -80,7 +80,7 @@ systemctl restart apache2
##### CentOS / RHEL

```shell
dnf -y install git httpd mod_wsgi python3-geoip2 python3-humanize python3-bottle python3-semantic_version geolite2-city
dnf -y install git httpd mod_wsgi python3-geoip2 python3-humanize python3-bottle python3-semver geolite2-city
echo "WSGIScriptAlias /openvpn-monitor /var/www/html/openvpn-monitor/openvpn-monitor.py" > /etc/httpd/conf.d/openvpn-monitor.conf
systemctl restart httpd
```
Expand Down Expand Up @@ -111,17 +111,17 @@ variables.
#### Install dependencies

```shell
# apt -y install git gcc nginx uwsgi uwsgi-plugin-python3 virtualenv python3-dev libgeoip-dev geoip-database geoip-database-extra # (debian/ubuntu)
# dnf -y install git gcc nginx uwsgi uwsgi-plugin-python3 virtualenv python3-devel geoip-devel geolite2-city # (centos/rhel)
# apt -y install git gcc nginx uwsgi uwsgi-plugin-python3 python3-dev python3-venv libgeoip-dev # (debian/ubuntu)
# dnf -y install git gcc nginx uwsgi uwsgi-plugin-python3 python3-devel geolite2-city # (centos/rhel)
```

#### Checkout openvpn-monitor

```shell
cd /srv
git clone https://github.com/furlongm/openvpn-monitor.git
git clone https://github.com/furlongm/openvpn-monitor
cd openvpn-monitor
virtualenv -p python3 .
python3 -m venv .
. bin/activate
pip install -r requirements.txt
```
Expand Down Expand Up @@ -169,14 +169,6 @@ systemctl restart nginx

See [configuration](#configuration) for details on configuring openvpn-monitor.



### deb / rpm

```shell
TBD
```

## Configuration

### Configure OpenVPN
Expand Down
Loading

0 comments on commit 8a3265c

Please sign in to comment.