1: No idea how to start ICAP. I tried using a shell, going to /usr/local/lib/ruby/gems/2.3/gems/icaprb-server-0.0.2/bin. and using start_server.rb. That didn't work. root@OPNsense:/usr/local/lib/ruby/gems/2.3/gems/icaprb-server-0.0.2/bin # ruby start_server.rb/usr/local/lib/ruby/2.3/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler/setup (LoadError) from /usr/local/lib/ruby/2.3/rubygems/core_ext/kernel_require.rb:55:in `require' from start_server.rb:2:in `<main>'
2: What will the listen address become? The webpage uses Request Modify URL icap://192.168.2.1:1344/avscanreq and Response Modify URL icap://191.168.2.1:1344/avscan.However your website has it listed as icap://localhost:1344/echoSo which one is it? If it looks like yours, will it be the same thing listed twice?I greatly appreciate the help you and the remainder of the forum members have posted.Thank you,Mike
#https://github.com/fabianfrz/ICAPrb-Server/blob/master/bin/start_server.rb#L34s.services['echo'] = Services::EchoService.new
I liked that OPNsense could do virus scanning till I found out that the requirement is an external solution. On the other side with more and more sites going https and not running an internal smtp server I wonder if the effort is worth it if I have local anti virus installed.
variable_which_holds_the_body.gsub!('</body>','ICAP Modified!</body>')
http_resp_header['Content-Length'] = http_resp_body.length.to_s
just to chime in... I also stumbled upon this.While the HowTo is nice I guess 99% of people except it to not only cover how to install ICAPrb but also an AntiVirus solution. And I know that those are two different things... now.I liked that OPNsense could do virus scanning till I found out that the requirement is an external solution. On the other side with more and more sites going https and not running an internal smtp server I wonder if the effort is worth it if I have local anti virus installed.