• Da' Hoytt's Home
  • Darryl Hoytt's Personal Blog
  • Snakeice's "House of Beats" Radio Blog
  • Da' Hoytt's Online Games Blog
  • Darryl's Sale Items
  • Da' Hoytt's Online Universe Forums
  • Photos
  • Hoytt Enterprises
Da' Hoytt's Online Universe
Da Hoytt's Online Universe consists of places were you can listen to music, play games, participate in discussion, view photos and buy merchandise.

Sign In

  • Darryl Hoytt's Personal Blog
  • About Darryl Hoytt's Personal Blog
  • Darryl Hoytt Personal Blog Contact

Search

Da' Hoytt's Online Universe > Darryl Hoytt's Personal Blog > SELinux SELinux Policy Settings HTTP Requests From Fedora 5 Web Server

Darryl Hoytt's Personal Blog
Information about projects and some thoughts from me, Darryl Hoytt.

SELinux SELinux Policy Settings HTTP Requests From Fedora 5 Web Server

By Darryl Hoytt on September 22, 2006 10:08 AM | 2 Comments | 0 TrackBacks

 

I’m trying to live with the benefits of SELinux instead of disabling it every time I discover find it disallows the action I’m trying. I am testing a demo version of an application I’m thinking about using on my Radio Blog that allows users to make requests and dedications. I’m testing it on one of my other Linux backup systems not published to the public of course.

 Oh today I don’t feel like using specific ports and application names since I don’t know if I will used the application. I still have a bit more testing and configuring to do with this application.

            The requests mechanism is HTTP generated and uses a specific port. Well using Webmin tool I believe I successfully added a rule allowing for this port to be accessed. The issue now that I’m writing about it may be in the functions of the application itself.

            A bit of background: The application runs on Windows with a MySQL database instance on that Windows system. I have another MySQL database instance running on my Linux web server system that gets the updates via a utility from the other MySQL instance on the Windows system. That works fine and the information on the two MySQL instances is identical and my Linux web server can access its local MySQL instance to draw its information to run the website. I also have some PHP files I ftp’d over to my Linux system that runs my PHP generated web site and performs various functions such as the HTTP requests and dedications.

            The request and dedications via HTTP are the issue here and wait to be received via “the request line port” on my Windows server that runs the application. Well I kept getting permission denied errors when trying to make requests. I confirmed that this port was open on my router, that it showed with “netstat” as listening on that port on the Windows system waiting to hear the request. I was even able to successfully telnet to “the request line port” on that system. I then went and looked at where the request would be coming from, my Linux Web Server, and insured it had permissions in the allow file of the application from the LAN (both NIC’s) and the WAN. The WAN I knew worked since the alternative method of asking for request worked fine from another source on the WAN.

 

            So now the issue was what is blocking the requests from my Linux system! Well I started looking around and of course the requests go through just fine with SELinux in permissive mode or disabled. I had the “the request line port” enabled but then I started thinking what if the request which are handled via a PHP file aren’t going out via “the request line port”!

Plus the fact that the “system-config-securitylevel” utility didn’t allow me to add that port the same way I added the port for MySQL. I believe this is because that port is not listening or running any application on my Linux server and mysql is running on my Linux system.

            So now I’m completely up against it I cannot add the port and the policies I added in SELinux via Webmin for that “the request line port” is not having any affect. Then considering that the “the request line port” may not be applicable from my Linux web server and using a totally different port I started looking at the other SELinux policy settings in the “system-config-securitylevel” utility.  Since this was an HTTP request looked in the “HTTPD Service” section where I checked “Allow HTTPD scripts and modules to connect to the network” and now all my requests work!

 

            What does this mean? The PHP requests may go to “the request line port” the Windows system where the application resides but from the requesting system which will always be where the web server resides it doesn’t use the “the request line port”. In the SELinux policy settings I have to I checked “Allow HTTPD scripts and modules to connect to the network” to allow request to propagate from the Linux web server.

Categories:

  • Whole Site Development

No TrackBacks

TrackBack URL: http://www.dhoytt.com/cgi-bin/mt/mt-tb.cgi/998

2 Comments

joanne knight | October 8, 2006 8:09 PM | Reply

hello,
i wasw wondering if you still have any of that stuff for sale. i am looking for a back-up device for our office. we use old unix computers. we have a satellite office and i am trying to find a way to make the paper work go away. i need a tape driver that will handle a SLR tape. the one installed on the computer is a tandberg. will the one you have for sale work? just wondering.... i have been trying to do this myself as cheap as possible. thanks joanne

Darryl | October 21, 2006 1:57 PM | Reply

Hello Joanne,
I apologize for the late response but yes I do have some tape devices for sale. What capacity of tape devices do you need? Most of my tape devices require an accompanying SCSI card which you can get for a nominal price. I did have some Tandberg drives but I will have to look to see if I still have them.

I have the following type of backup devices:

DDS2 2 GB – 8 GB
DLT 2000 = 20 GB
DLT 3000 = 30 GB
DLT 4000 = 40 GB

Leave a comment

Categories

  • Food (13)
  • Health & Wellness (46)
  • Home Projects (21)
  • RandomThoughts (106)
  • Technical Non-Site Related (13)
  • Whole Site Development (48)

Monthly Archives

  • April 2010 (1)
  • March 2010 (2)
  • February 2010 (2)
  • December 2009 (4)
  • November 2009 (3)
  • October 2009 (4)
  • September 2009 (7)
  • August 2009 (2)
  • July 2009 (3)
  • January 2009 (1)
  • December 2008 (3)
  • June 2008 (1)
  • May 2008 (2)
  • April 2008 (2)
  • February 2008 (1)
  • January 2008 (1)
  • December 2007 (1)
  • August 2007 (4)
  • May 2007 (1)
  • March 2007 (1)
  • February 2007 (2)
  • January 2007 (4)
  • December 2006 (4)
  • November 2006 (2)
  • October 2006 (1)
  • September 2006 (1)
  • June 2006 (4)
  • April 2006 (4)
  • March 2006 (6)
  • February 2006 (10)
  • January 2006 (4)
  • December 2005 (1)
  • November 2005 (5)
  • October 2005 (1)
  • September 2005 (6)
  • August 2005 (1)
  • July 2005 (7)
  • June 2005 (1)
  • May 2005 (4)
  • April 2005 (4)
  • March 2005 (1)
  • February 2005 (5)
  • January 2005 (1)
  • December 2004 (4)
  • November 2004 (6)
  • October 2004 (4)
  • September 2004 (20)
  • August 2004 (31)
  • July 2004 (32)
  • June 2004 (28)
OpenID accepted here Learn more about OpenID
  • Subscribe to feed Subscribe to this blog's feed

About this Entry

This page contains a single entry by Darryl Hoytt published on September 22, 2006 10:08 AM.

Elliptical Trainers Maiden Voyage was the previous entry in this blog.

Fedora 6 Just Released as I’m Building & Configuring New Web Server is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type Pro

Links

  • Home
This blog is licensed under a Creative Commons License.