Opnsense Ports version of SmartProxy

Opnsense firewall/router has the smart-proxy in it’s BSD Ports.
Wondering if anyone has used it with success?
Trying to work through the kinks of it’s setup, then write up a How-To for it.


Hey @platypusoffury
Not that I’ve heard of personally.
@lzap have you any idea?

hey ya @mcorr!

Opnsense is a pretty great appliance. though a lot of the paths for setup (dhcp, dns, and more) are shifted away from the root directory. hunting them down and setting them up is one adventure…
Key goal is to use the native plugin instead another smart proxy to MITM.

I’ve got a few other projects on my to do list before I can sit down for a discovery/document on it some more. I just don’t want to remake wheels if others have input that have yet to share (and want to contribute!)
I saw @CapitanBlack was working on a something similar with pfSense a few years ago.

1 Like

I had no idea such a port exists:

If you run into issues, we are here to help.

I spun a clean opnsense up in a vm. Port’s install of the smart proxy was pretty easy. Locations differ quite a bit. /usr/local/etc is where to set the smart proxy info up.

getting the below error when trying to “system foreman-proxy start”. Poor ruby setup that ports acquired?

root@OPNsense:/usr/local/share/foreman-proxy # service foreman-proxy onestart
Starting foreman_proxy.
Traceback (most recent call last):
	11: from /usr/local/sbin/smart-proxy:6:in `<main>'
	10: from /usr/local/lib/ruby/site_ruby/2.7/rubygems/core_ext/kernel_require.rb:54:in `require'
	 9: from /usr/local/lib/ruby/site_ruby/2.7/rubygems/core_ext/kernel_require.rb:54:in `require'
	 8: from /usr/local/share/foreman-proxy/lib/smart_proxy_main.rb:4:in `<top (required)>'
	 7: from /usr/local/lib/ruby/site_ruby/2.7/rubygems/core_ext/kernel_require.rb:54:in `require'
	 6: from /usr/local/lib/ruby/site_ruby/2.7/rubygems/core_ext/kernel_require.rb:54:in `require'
	 5: from /usr/local/share/foreman-proxy/lib/launcher.rb:1:in `<top (required)>'
	 4: from /usr/local/lib/ruby/site_ruby/2.7/rubygems/core_ext/kernel_require.rb:54:in `require'
	 3: from /usr/local/lib/ruby/site_ruby/2.7/rubygems/core_ext/kernel_require.rb:54:in `require'
	 2: from /usr/local/share/foreman-proxy/lib/proxy/log.rb:1:in `<top (required)>'
	 1: from /usr/local/lib/ruby/site_ruby/2.7/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/local/lib/ruby/site_ruby/2.7/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- logging (LoadError)
/usr/local/etc/rc.d/foreman-proxy: WARNING: failed to start foreman_proxy

You need to install dependencies. You do this typically via bundler. Have you seen:


We only cover Foreman there, not Proxy. For proxy it is far more easier - there is no database, no Javascript, no migration, just do bundle install.