SYSTEM WARNING: 'file_get_contents(): SSL: Connection reset by peer' in '/var/www/virtual/newwrapper/cf_topmenu.inc' line 5

SYSTEM WARNING: 'file_get_contents(): Failed to enable crypto' in '/var/www/virtual/newwrapper/cf_topmenu.inc' line 5

SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=header): failed to open stream: operation failed' 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
0000105ClearOSapp-multiwan - Multi-WANpublic2010-06-09 12:412019-03-11 06:25
ReporterChristoBresler 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000105: Multi-WAN and DNS
DescriptionWould like to recommend the following to improve DNS working in a Muti-WAN environment.

First each interface has to set its DNS manually to file whether given statically or via DHCP when interface in brought up. If this is difficult we can leave it with static assignments only.
/etc/resolv.conf.eth0
/etc/resolv.conf.ppp0
/etc/resolv.conf.ppp1

Looking at the weight assigned to an interface the resolve.conf file looks as follows.
/etc/resolv.conf
# Nameserver of interface eth0 Multi-WAN weight 100
Nameservers of interfave with highest weight first and at the top.
# Nameserver of interface ppp1 Multi-WAN weight 50
Nameservers of interface with middle weight.
# Nameserver of interface ppp0 Multi-WAN weight 1
Nameservers of interface with lowest weight.

If syswatch detects that an interface is dead remove nameserver for that interface from the resolv.conf file. If the first nameserver is changed restart Squid. ( I have noticed squid only looks at the first nameserver and if that name server does not work, the server will be able to do DNS resolution but not squid, squid reload does not seem to be sufficient only restart resolves the problem )

Look at current active /etc/resolv.conf file and add all active nameserver to table 50.
ip route add “namserver1” table 50 via 192.168.16.178 dev eth1
ip route add “nameserver2” table 50 via ppp1
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0010591)
NickH (developer)
2019-03-11 06:25

Recommended workarounds are to either use a public DNS service or for the user to create their own /usr/sbin/syswatch.local

- Issue History
Date Modified Username Field Change
2010-06-09 12:41 ChristoBresler New Issue
2010-06-09 12:45 user2 Status new => confirmed
2019-03-11 06:25 NickH Note Added: 0010591
2019-03-11 06:25 NickH Status confirmed => closed
2019-03-11 06:25 NickH Resolution open => won't fix

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