running vfense client within a proxy network

91 views
Skip to first unread message

peter.h...@gmail.com

unread,
Jul 4, 2014, 6:10:24 AM7/4/14
to vfe...@googlegroups.com
Hello,

I am testing vfense in my ubuntu environment. After setting up the vfense server I installed a client onto an ubuntu machine and it dit not show up in the vfense server. After analyzing the log file of the client it showed that the network was unreachable. After searching google I found out that the client missed a proxy entry. After adding the proxy entry into the /opt/TopPatch/agent/src/core.py
def internet_on(self):
 
        try:
            proxy = urllib2.ProxyHandler({'http': '156.5.6.7:8080'})
            opener = urllib2.build_opener(proxy)
            urllib2.install_opener(opener)
            urllib2.urlopen('http://www.google.com', timeout=3)
            logger.debug('Internet connection detected.')
            return True
 
        except Exception as e:
 
            logger.debug('No internet connection detected.')
            logger.exception(e)
            return False

After this the client was working and showed up in the vFense server.


Humberto Chacon

unread,
Jul 4, 2014, 6:36:48 PM7/4/14
to vfe...@googlegroups.com
Hello Peter,

Yes, the *nix agent has not yet been programmed to deal with proxy settings. I just haven't gotten around to implementing it, but I'll take it into account for the next iteration of the agent.

Thank you for the feedback.
Reply all
Reply to author
Forward
0 new messages