Re: Allowing CUPS to use http ports 80 and 443

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- On Tue, 1/29/13, Steve Wilson <stevew@xxxxxxxxxx> wrote:
> From: Steve Wilson <stevew@xxxxxxxxxx>
> Subject: Allowing CUPS to use http ports 80 and 443
> To: selinux@xxxxxxxxxxxxxxxxxxxxxxx
> 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
--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux



[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux