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...
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...
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ür die Fe...
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...
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 ...