3

iptables redirect range and exclude

view full story
linux-howto

http://serverfault.com – i have this iptables and working. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 0:20 -j REDIRECT --to-port 8080 #bypass SSH iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 23:442 -j REDIRECT --to-port 8080 #bypass SSL iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 444:2082 -j REDIRECT --to-port 8080 #Cpanel SSL iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 2084:2086 -j REDIRECT --to-port 8080 #WHM SSL any idea to change this into following condition in more simple rules: Redirect ALL traffic to 8080 and Exclude Redirection if destination port match 22,443,2083 and (HowTos)