IPTABLES redirect all ports to one port

Categories: Firewall, Linux

hello this  iptables rule

to redirect all incoming traffic from all ports to one port example 80 on ip 192.168.1.10

iptables -A PREROUTE -t nat -i eth0 -p tcp  --dport 1:65535 -j DNAT --to-destination 192.168.1.10:80

enjoy

«
»

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.