Linux

Entries about: Linux
^Top
<< Back
Mobile-Menu










Sections

Snippets

Debian Source List Example

deb http://deb.debian.org/debian buster main deb-src http://deb.debian.org/debian buster main deb http://deb.debian.org/debian-security/ buster/updates main deb-src http://deb.debian.org/debian-security/ buster/updates main deb http://deb.debian.org/...


Proxmox

Bridge and Nat Interfaces Example

This script is for a proxmox host to set up 2 bridges. 1 provides static ip 4 and 6 to vservers 1 provides NAT routed connection &nbsp; Start of /etc/network/interfaces # This file describes the network interfaces available on your system # and h...


Postfix

Backup Mailserver

This is an easy postfix configuration to backup all emails going to specified domains until the master server is online again. &nbsp; Postfix Configuration [replace yourhostname with your hostname]: smtpd_relay_restrictions = permit_mynetworks pe...


IPTables

Allow All Traffic

USE WITH OWN RISK - ALL FIREWALL RULES WILL BE DELETED IPv4 iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -t mangle -F iptables -t mangle -X iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT IPv6 i...


Forward Port

This adds a rule to forwars port 1022 to port 22 (SSH) an another internal IP. iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 1022 -j DNAT --to 192.168.137.100:22 This removes the previous commands changes: iptables -t nat -D PREROUTING -i vmb...


Simple Firewall Setup Script

Attention! This script has been written 2010 and could be outdated. Start.SH - Start Firewall #!/bin/sh #Start Firewall #Copyright by Xeno # echo echo Firewall Starter echo echo Die Firewall wird gestartet und der Port 22 SSH echo f&uuml;r die Fe...


Commands

Command Line Hints

Find a String inside Files grep -rnw '/path/to/somewhere/' -e 'pattern' Find File in Folder Structure find ./ -name card.php Display Linux System Informations uname Display Kernel Releases Informations uname -r Display Systems upt...


Make File Immune

This unix Command will make a file non-writable. Make non-Writable chattr +i file Make writable again chattr -i file See Status: lsattr file ...


This Website is using Session Cookies for Site Functionality.