Allowing CUPS to use http ports 80 and 443
Cristian Ciupitu
cristian.ciupitu at yahoo.com
Tue Jan 29 20:34:06 UTC 2013
--- On Tue, 1/29/13, Steve Wilson <stevew at purdue.edu> wrote:
> From: Steve Wilson <stevew at purdue.edu>
> Subject: Allowing CUPS to use http ports 80 and 443
> To: selinux at 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
More information about the selinux
mailing list