Ahmad Mahfouz

Random notes

Category: Firewall

IPtables PREROUTING, POSTROUTING for mixed interfaces via DNAT & SNAT

hello world, let’s hit the point directly 1 – we have traffic coming from Source IP to our box and we need to Route it to another destination ( traffic forwarding ) 2- we have traffic coming from Source IP to our box and we need to Route it to another destination ( traffic forwarding )

IPTABLES redirect all ports to one port

hello this  iptables rule to redirect all incoming traffic from all ports to one port example 80 on ip 192.168.1.10

enjoy