I have rkhunter hunter on the above server which is behind a proxy, if I manually export the proxy and then run rkhunter --update, it works fine, but when run via the cron job it fails, I have tried adding the exported proxy settings to the cron job but it still fails, I also added this to .bashrc and called from the cron job and it failed.
Code: Select all
function setproxy() {
export {http,https,ftp}_proxy='http://user:password@myproxy.local:80'
}
function unsetproxy() {
unset {http,https,ftp}_proxy
}
https://sourceforge.net/p/rkhunter/mail ... /33692314/