This commit is contained in:
AntoXa PRO 2024-01-19 09:52:59 +03:00
parent 9abf58ed2a
commit 3da8f638eb
12 changed files with 44 additions and 4 deletions

0
arch-install.md Executable file → Normal file
View File

0
arch-post-install.md Executable file → Normal file
View File

0
criptsetup.md Executable file → Normal file
View File

0
dwm.md Executable file → Normal file
View File

39
iptables.md Normal file
View File

@ -0,0 +1,39 @@
# Iptables.
## Allow ssh traffic.
~~~
iptables -A INPUT -p tcp --dport=22 -j ACCEPT
# -A Append (End table) | -I Insert (Start table).
# -p Protocol.
# -j Action.
~~~
## Allow localhost traffic.
~~~
iptables -A INPUT -i lo -j ACCEPT
# -i Interface name.
~~~
## Allow ping.
~~~
iptables -A INPUT -p icmp -j ACCEPT
~~~
## Warning!!!.
~~~
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
~~~
## Input policy drop.
~~~
iptables -P INPUT DROP
~~~
## Save/Restore rules from file.
~~~
iptables-save > ./filename.rules
# iptables-restore < ./filename.rules
~~~

0
letsencrypt.md Executable file → Normal file
View File

0
pass.md Executable file → Normal file
View File

7
qemu.md Executable file → Normal file
View File

@ -3,14 +3,15 @@
## Install libs.
~~~
sudo pacman -S qemu-full virt-manager libvirt
sudo pacman -S qemu-full virt-manager libvirt dnsmasq dmidecode
~~~
## Configure libvirt.
~~~
sudo virsh -c qemu:///system net-autostart default
# or sudo virsh net-start default
virsh -c qemu:///system net-autostart default
# or virsh net-start default
~~~
## Create virtual disk.

0
st.md Executable file → Normal file
View File

0
touchpad.md Executable file → Normal file
View File

0
wireguard.md Executable file → Normal file
View File

2
xorg.md Executable file → Normal file
View File

@ -1,7 +1,7 @@
# Install.
~~~
pacman -S xorg-server xorg-xinit libx11 libxinerama libxft webkit2gtk
sudo pacman -S xorg-server xorg-xinit xorg-xrandr libx11 libxinerama libxft webkit2gtk
vim .xinitrc
> exec dwm
~~~