, ,

IPTABLES redirect all ports to one port

Ahmad Avatar

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

Enjoying this article?

Subscribe to get new posts delivered straight to your inbox. No spam, unsubscribe anytime.

No spam. Unsubscribe anytime.

You may also like

See All blog →

One response to “IPTABLES redirect all ports to one port”

  1. PenelopeX Avatar
    PenelopeX

    I must say you have high quality posts here. Your content should go viral.

Leave a Comment

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.