UnixServerAdmin

Server Administration & Management

How to Redirect Port no. 80 to 443.txt

# iptables -t nat -A PREROUTING -i eth0 -p tcp –dport 80 -j REDIRECT –to-port 443

# /etc/init.d/iptables save

# chkconfig iptables on

Advertisements

September 11, 2011 Posted by | Apache, Firewall, Security, Tips & Tricks | , , , | Leave a comment