## firewall on the snapcraft VM
$ sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), deny (outgoing), deny (routed)
New profiles: skip
To Action From
-- ------ ----
80 DENY OUT Anywhere
443 DENY OUT Anywhere
3128 ALLOW OUT Anywhere
80 (v6) DENY OUT Anywhere (v6)
3128 (v6) ALLOW OUT Anywhere (v6)
443 (v6) DENY OUT Anywhere (v6)
## proxy on the snapcraft VM
$ set | grep proxy
http_proxy=http://user:xxx@192.168.1.21:3128/
https_proxy=http://user:xxx@192.168.1.21:3128/
no_proxy=localhost,127.0.0.0/8,::1
## squid hits during a local snap build
...
1505843729.301 30 192.168.1.222 TCP_MISS/200 15733 GET http://repo.apache.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar user HIER_DIRECT/151.101.48.209 application/java-archive
1505843729.351 22 192.168.1.222 TCP_MISS/200 709 HEAD http://repo.apache.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar.sha1 user HIER_DIRECT/151.101.48.209 text/plain
1505843729.377 21 192.168.1.222 TCP_MISS/200 709 HEAD http://repo.apache.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar.sha1 user HIER_DIRECT/151.101.48.209 text/plain
1505843729.402 19 192.168.1.222 TCP_MISS/200 835 GET http://repo.apache.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar.sha1 user HIER_DIRECT/151.101.48.209 text/plain
...
(hundreds of others)
...
## launchpad build: https://launchpadlibrarian.net/337799650/buildlog_snap_ubuntu_xenial_amd64_pig_BUILDING.txt.gz
## failed ant task trying to fetch the same dang thing
[ivy:resolve] trying http://repo.apache.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar
[ivy:resolve] tried http://repo.apache.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar
[ivy:resolve] HTTP response status: 403 url=http://repo.apache.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar
[ivy:resolve] CLIENT ERROR: Forbidden url=http://repo.apache.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar
[ivy:resolve] maven2: resource not reachable for xmlenc#xmlenc;0.52: res=http://repo.apache.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar
[ivy:resolve] maven2: no ivy file nor artifact found for xmlenc#xmlenc;0.52
[ivy:resolve] no ivy file in cache for xmlenc#xmlenc;0.52: tried /root/.ivy2/cache/xmlenc/xmlenc/ivy-0.52.xml
[ivy:resolve] trying http://repo1.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar
[ivy:resolve] tried http://repo1.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar
[ivy:resolve] HTTP response status: 403 url=http://repo1.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar
[ivy:resolve] CLIENT ERROR: Forbidden url=http://repo1.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar
[ivy:resolve] testrepo: resource not reachable for xmlenc#xmlenc;0.52: res=http://repo1.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar
[ivy:resolve] testrepo: no ivy file nor artifact found for xmlenc#xmlenc;0.52