Then try to set up the proxy settings in avast accordingly. Since the machine works as a proxy (and has two NICs) it should be theoretically possible to connect from the machine directly - with no proxy. Try to set it up this way.

avast → Settings → Updating (Basics) → Advanced → Proxy.