etc
This commit is contained in:
parent
9abf58ed2a
commit
3da8f638eb
0
arch-install.md
Executable file → Normal file
0
arch-install.md
Executable file → Normal file
0
arch-post-install.md
Executable file → Normal file
0
arch-post-install.md
Executable file → Normal file
0
criptsetup.md
Executable file → Normal file
0
criptsetup.md
Executable file → Normal file
39
iptables.md
Normal file
39
iptables.md
Normal 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
0
letsencrypt.md
Executable file → Normal file
7
qemu.md
Executable file → Normal file
7
qemu.md
Executable file → Normal file
@ -3,14 +3,15 @@
|
|||||||
## Install libs.
|
## Install libs.
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
sudo pacman -S qemu-full virt-manager libvirt
|
sudo pacman -S qemu-full virt-manager libvirt dnsmasq dmidecode
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
## Configure libvirt.
|
## Configure libvirt.
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
sudo virsh -c qemu:///system net-autostart default
|
virsh -c qemu:///system net-autostart default
|
||||||
# or sudo virsh net-start default
|
|
||||||
|
# or virsh net-start default
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
## Create virtual disk.
|
## Create virtual disk.
|
||||||
|
0
touchpad.md
Executable file → Normal file
0
touchpad.md
Executable file → Normal file
0
wireguard.md
Executable file → Normal file
0
wireguard.md
Executable file → Normal file
2
xorg.md
Executable file → Normal file
2
xorg.md
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
# Install.
|
# 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
|
vim .xinitrc
|
||||||
> exec dwm
|
> exec dwm
|
||||||
~~~
|
~~~
|
||||||
|
Loading…
Reference in New Issue
Block a user