On Thu, 26 Jan 2006 15:10:05 +0100
lore <[EMAIL PROTECTED]> wrote:

> hi all,
> i've just realize an https web server ( on trustix 2.2 ) and i'd like to 
> redirect every connection on port:80 to port:443.
> i've load these modules
> 
> /sbin/modprobe iptables_nat
> /sbin/modprobe ip_tables
> /sbin/modprobe ip_conntrack
> /sbin/modprobe ip_nat_ftp
> /sbin/modprobe ip_conntrack_ftp
> /sbin/modprobe ip_conntrack_irc
All needed modules will autoload, so there is no need for this.

> [EMAIL PROTECTED] /#iptables -t nat -A PREROUTING -p tcp -s 0/0 -d 
> 192.168.10.183 
> --dport 80 -j DNAT --to-destnation 192.168.10.183:443       

Since it's the same IP, you could (should?) use:

iptables -t nat -A PREROUTING -p tcp -d 192.168.10.183 --dport 80 
        -j REDIRECT --to-ports 443

Cheers
Olaf
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to