From 7afa06f3ca4eba1cc8493b18fcc09c4829adf145 Mon Sep 17 00:00:00 2001 From: bms8197 Date: Mon, 17 Oct 2022 20:18:20 +0300 Subject: [PATCH] saving uncommitted changes in /etc prior to dnf run --- csf/csf.conf | 1 + csf/csf.ignore | 1 + hosts | 2 ++ nginx/conf.d/vpn.898.ro.conf | 2 +- ssh/sshrc | 6 +++--- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/csf/csf.conf b/csf/csf.conf index 65e18c7..410ea75 100644 --- a/csf/csf.conf +++ b/csf/csf.conf @@ -2621,6 +2621,7 @@ WGET = "/usr/bin/wget" # Note: File globs are only evaluated when lfd is started # HTACCESS_LOG = "/var/log/nginx/error.log" +NGINX_LOG = "/var/log/nginx/*.access.log" MODSEC_LOG = "" SSHD_LOG = "/var/log/secure" SU_LOG = "/var/log/secure" diff --git a/csf/csf.ignore b/csf/csf.ignore index 4eaa204..aa6fd82 100644 --- a/csf/csf.ignore +++ b/csf/csf.ignore @@ -40,4 +40,5 @@ 185.44.147.129 94.69.148.225 94.70.109.113 +94.68.45.238 diff --git a/hosts b/hosts index 605425b..529a10a 100644 --- a/hosts +++ b/hosts @@ -2,6 +2,8 @@ 134.122.29.182 consul1 +# Madrivo +167.172.23.191 grafana.madrivosoftware.com grafana ### 192.168.1.2 linux.vrem.ro linux diff --git a/nginx/conf.d/vpn.898.ro.conf b/nginx/conf.d/vpn.898.ro.conf index 3bf9af4..42a741d 100644 --- a/nginx/conf.d/vpn.898.ro.conf +++ b/nginx/conf.d/vpn.898.ro.conf @@ -18,7 +18,7 @@ server { error_log /var/log/nginx/vpn.898.ro.error.log notice; location / { - proxy_pass http://192.168.1.100:8443; + proxy_pass https://192.168.1.100:8443; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; } diff --git a/ssh/sshrc b/ssh/sshrc index e896c44..1bca499 100755 --- a/ssh/sshrc +++ b/ssh/sshrc @@ -2,10 +2,10 @@ export PATH="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:$PATH" -DATE="$(date)" +#DATE="$(date)" HOSTNAME="$(hostname)" -USERIP="$(echo "$SSH_CONNECTION" | cut -d " " -f 1)" -RDNS="$(dig -x "$USERIP" +short)" +#USERIP="$(echo "$SSH_CONNECTION" | cut -d " " -f 1)" +#RDNS="$(dig -x "$USERIP" +short)" if [[ "$USER" == "laser" ]] then