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
1 |
iptables -A PREROUTE -t nat -i eth0 -p tcp --dport 1:65535 -j DNAT --to-destination 192.168.1.10:80 |
enjoy