Hetzner - allow outgoing internet acess

SRC IP = * SRC PORTS = 443 + 80 DST IP = * or Empty or your IP (go with what Falzo's says on leaving this undefined to test). DST PORTS = * PROTOCOL = TCP FLAGS = ACK + RST + FIN (i.e. NO SYN) [allows related/established traffic]

Proxmox - port forwarding

On host machine run echo 1 > /proc/sys/net/ipv4/ip_forward && \ iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE && \ iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 10022 -j DNAT --to 192.168.1.3:22 && \ iptab...

Fast clear all IPTABLES Rules

iptables -P INPUT ACCEPT && \ iptables -P FORWARD ACCEPT && \ iptables -P OUTPUT ACCEPT && \ iptables -t nat -F && \ iptables -t mangle -F && \ iptables -F && \ iptables -X && \ iptables -t nat -nvL

Linux port forwarding

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 1234 -j DNAT --to 10.x.x.x:1234

Easy firewall with UFW

apt install ufw && \ ufw reset && \ ufw default deny incoming && \ ufw default allow outgoing && \ ufw allow ssh && \ ufw allow 80/tcp && \ ufw allow 443/tcp && \ ufw allow from 5.141.82.47 && \ ufw allow ntp && \ ufw enable && \ ufw status

Citrix XenServer Guest

Select the VM in the Resources pane, right-click, and then click Install XenServer Tools on the shortcut menu. Alternatively, on the VM menu, click Install XenServer Tools. Click Install XenServer Tools on the message dialog to go to the VM's cons...

How add ISO to xenserver

1. Make sure you have ssh access to your Xenserver.2. Download and install WinSCP on a windows machine or use native scp support on a linux box.3. Check if the folder “/var/opt/xen/iso_import"* exists. If not, you can create it using *mkdir -p /var/opt...

Clear all iptables records in one line

iptables -P INPUT ACCEPT && \ iptables -P FORWARD ACCEPT && \ iptables -P OUTPUT ACCEPT && \ iptables -t nat -F && \ iptables -t mangle -F && \ iptables -F && \ iptables -X