Post

Debian Linux Setup/Conf. Cheat Sheet II

🖧🌐 Network Configuration:
-----------------------------|
ip a
systemctl status networking
#systemctl restart networking

sudo systemctl status networking.service
#sudo systemctl restart NetworkManager.service
#sudo systemctl restart networking.service

🏴‍☠️ File: sudo nano /etc/network/interfaces

#DHCP
--------------------------------|

# The loopback network interface
auto lo
iface lo inet loopback

#STATIC
--------------------------------|

# Primary network interface
auto enp2s1
iface enp2s1 inet static
address 10.5.10.44
netmask 255.255.255.0
gateway 10.5.10.1
dns-domain guler.com
dns-nameservers 10.5.10.10 1.1.1.1 8.8.8.8

✅🛡️ Firewall Management (UFW & GUFW):
----------------------------------------|

UFW:
#sudo apt-get install ufw
ufw --help
sudo ufw status
sudo ufw show added
sudo ufw enable
sudo ufw disable
sudo reload firewall
sudo ufw disable && sudo ufw enable & sudo ufw reset #reset

sudo ufw deny ssh #spesific servis
sudo ufw allow http
sudo ufw allow from 10.4.10.45 #allow-deny
sudo ufw deny 22/tcp #spesific port
sudo ufw delete allow 8080 #delete rule
sudo ufw allow 1000:2000/tcp #spesific port aralığı

sudo ufw default deny incoming #tüm gelenleri engelle
sudo ufw default allow outgoing #tüm gidenlere izin ver

GUFW:
#sudo apt-get install gufw
gufw

>>> Default Ports
MongoDB: 27017/tcp
MySQL: 3306/tcp
Postgres: 5432/tcp
Redis: 6379/tcp

🐛 "OpenLDAP" Configure Authentication
--------------------------------------|

............ .etc
This post is licensed under CC BY 4.0 by the author.