SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=header): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_topmenu.inc' line 5

ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000447ClearOSfirewallpublic2012-02-27 15:452012-04-18 19:39
Reporterdsokoloski 
Assigned Todsokoloski 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000447: Firewall rule host/domain name resolution
DescriptionThe current ClearOS firewall (all versions) uses gethostbynam() to resolve host/domain names. If the look-up is successful, one one IP address is returned to the calling firewall script. This is not correct behavior for multi-homed servers where more than one address is assigned (ex: google.com).

For those users who want to block a host/domain name, the firewall __lua_gethostbyname function needs to be changed to use getaddrinfo which returns multiple addresses.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000409)
dsokoloski (developer)
2012-02-28 11:35

Source Code Changelog
---------------------------------------------------
- Changed __lua_gethostbyname to use getaddrinfo, returns a LUA table with one or more IPv4 or IPv6 (depending on build options) addresses. [fixed tracker 0000447]

File Changes
---------------------------------------------------
Details: http://code.clearfoundation.com/svn/revision.php?repname=ClearOS&rev=3399 [^]
U packages/firewall/trunk/firewall.c
U packages/firewall/trunk/firewall.spec.in

- Issue History
Date Modified Username Field Change
2012-02-27 15:45 dsokoloski New Issue
2012-02-27 15:45 dsokoloski Status new => assigned
2012-02-27 15:45 dsokoloski Assigned To => dsokoloski
2012-02-28 11:35 dsokoloski Checkin
2012-02-28 11:35 dsokoloski Note Added: 0000409
2012-02-28 11:35 dsokoloski Status assigned => resolved
2012-02-28 11:35 dsokoloski Resolution open => fixed
2012-04-18 19:39 user2 Status resolved => closed

SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=footer): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_footer.inc' line 7