I'm testing installation now, but will soon have to build 4 XI boxes behind a firewall.
When using the proxy, wget https://assets.nagios.com/path/file fails so the installation fails. Now I'm testing just a single wget. If https_proxy isn't set, the test never tries to reach the proxy.
[root@sbiotlnxi001 nagiosxi]# export proxy=http://172.20.140.34:3128/; export http_proxy=http://172.20.140.34:3128/; export https_proxy=http://172.20.140.34:3128/;env | grep proxy
http_proxy=http://172.20.140.34:3128/
https_proxy=http://172.20.140.34:3128/
proxy=http://172.20.140.34:3128/
Code: Select all
[root@sbiotlnxi001 nagiosxi]# wget https://assets.nagios.com/downloads/nagiosxi/components/wkhtmltox-0.12.1-centos5-amd64.tar.gz --inet4-only
--2017-02-14 21:20:53-- https://assets.nagios.com/downloads/nagiosxi/components/wkhtmltox-0.12.1-centos5-amd64.tar.gz
Connecting to 172.20.140.34:3128... connected.
Proxy tunneling failed: Service UnavailableUnable to establish SSL connection.
[root@sbiotlnxi001 nagiosxi]#Code: Select all
14/Feb/2017:21:21:53 60378 172.20.140.30 TCP_MISS/503 0 CONNECT assets.nagios.com:443 - HIER_NONE/- - "Wget/1.14 (linux-gnu)"I realize this is outside the scope but thought maybe you'd have some ideas.
Code: Select all
[root@sbiotlpxy001 network-scripts]# cat /etc/squid/squid.conf
#
# Recommended minimum configuration:
#
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
#acl localnet src 2001:9888::/32
#acl localnet src 2001:9888:ef8:4343::/64
#acl localnet src 2001:9777:db7:4242::/64
#acl localnet src 172.20.140/24
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
tcp_outgoing_address 172.21.141.34
acl domain_whitelist dstdomain "/etc/squid/whitelist_domain"
#acl ip_whitelist dst "/etc/squid/whitelist_ip"
acl url_whitelist url_regex -i "/etc/squid/whitelist_url"
#
# Recommended minimum Access Permission configuration:
#
# Deny requests to certain unsafe ports
http_access deny !Safe_ports
# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports
# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager
http_access allow domain_whitelist
#http_access allow ip_whitelist
http_access allow url_whitelist
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
http_access deny to_localhost
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localhost
#http_access allow localnet
# allow all for testing only
#http_access allow all
# And finally deny all other access to this proxy
http_access deny all
# Squid normally listens to port 3128
http_port [2001:9888:ef8:4343::34]:3128
http_port 172.20.140.34:3128
# Uncomment and adjust the following to add a disk cache directory.
#cache_dir ufs /var/spool/squid 100 16 256
# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid
#
# Add any of your own refresh_pattern entries above these.
#
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
#See cache.log for debug info
debug_options ALL,1 33,2 28,9
# log format
logformat squid %tg %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt "%{User-Agent}>h"
Code: Select all
[root@sbiotlpxy001 network-scripts]# grep nagios /etc/squid/whitelist_*
/etc/squid/whitelist_domain:#.api.nagios.com
/etc/squid/whitelist_domain:#.assets.nagios.com
/etc/squid/whitelist_domain:#.repo.nagios.com
/etc/squid/whitelist_domain:.nagios.com
/etc/squid/whitelist_url:api.nagios.com/versioncheck