--- On Tue, 1/29/13, Steve Wilson <stevew(a)purdue.edu> wrote:
From: Steve Wilson <stevew(a)purdue.edu>
Subject: Allowing CUPS to use http ports 80 and 443
To: selinux(a)lists.fedoraproject.org
Date: Tuesday, January 29, 2013, 8:19 PM
I'm migrating a CUPS print server from Ubuntu to RHEL6. Previously I
had CUPS configured to listen on port 80, 443 and 631. Now SELinux is
preventing CUPS from binding to ports 80 and 443. What would be the
recommended way to permit this in SELinux?
If you don't want to mess with SELinux, a workaround would be to use
iptables like this:
iptables -t nat -I PREROUTING -p tcp --dport 80 \
-j REDIRECT --to-port 631
iptables -t nat -I PREROUTING -p tcp --dport 443 \
-j REDIRECT --to-port 631
Cheers,
Cristian