rsyslog.conf
module(load="omprog")
action(
type="omprog"
binary="/usr/local/bin/process_logs.py"
template="RSYSLOG_TraditionalFileFormat"
confirmMessages="off"
output="/var/log/process_logs_output.log"
rsyslog.conf
module(load="omprog")
action(
type="omprog"
binary="/usr/local/bin/process_logs.py"
template="RSYSLOG_TraditionalFileFormat"
confirmMessages="off"
output="/var/log/process_logs_output.log"
To configure a static IP address using the new NetPlan tool, the file should look like this: IPv4 address (192.168.1.212), Gateway (192.168.1.2), DNS Servers (8.8.8.8,8.8.4.4)
Run the commands below to create a new network configuration file
sudo vi /etc/netplan/01-netcfg.yaml
Then configure IPv4 addresses as shown below… take notes of the format the lines are written…
Ниже расскажу как добавить и удалить rich правила, добавить для конкретного IP разрешение на подключение к порту 80: | |
firewall-cmd --permanent --zone=public --add-rich-rule="rule family="ipv4" source address="192.168.1.7" port protocol="tcp" port="80" accept" | |
Удаление: | |
firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="192.168.1.7" port protocol="tcp" port="80" accept" | |
Просмотр правил: | |
firewall-cmd --list-rich-rules | |
После примененения команд с параметром permanent, необходимо совершать: | |
firewall-cmd --reload | |
Если необходимо создать правила для подсети, то достаточно указать источник так: | |
source address="192.168.1.0/24" |
1. Install venv | |
apt-get install python3-venv | |
2. Create venv | |
python3 -m venv venv_name | |
3. Enable venv | |
. /VENV_PATH/bin/activate | |
4. Create python file |
Command | Description |
---|---|
curl -h |
cURL help menu |
curl inlanefreight.com |
Basic GET request |
curl -s -O inlanefreight.com/index.html |
Download file |
curl -k https://inlanefreight.com |
Skip HTTPS (SSL) certificate validation |
curl inlanefreight.com -v |
Print full HTTP request/response details |
curl -I https://www.inlanefreight.com |
Send HEAD request (only prints response headers) |
Convert Debian 10 to Kali Linux on Google Cloud or Any Debian
After you create an account on Google Cloud, and create your VPS using Debian 10, follow the below guide to convert your Debian to Kali Linux Latest Version:
Step 1:
apt-get update -y && apt-get full-upgrade -y && apt-get dist-upgrade -y && apt autoremove -y && apt autoclean