Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

A plugin for opnsense to use an upstream proxy for internet access

Notifications You must be signed in to change notification settings

TotalGriffLock/opnsense-plugin-upstreamproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This plugin has been archived as OPNsense added native support for adding OS environment variables

opnsense-plugin-upstreamproxy

A plugin for when your OPNsense firewall must use a proxy to access the internet, and that proxy is not transparent and therefore must be explicitly specified.

This is a bit beta-ish at the moment so use it at your own risk! Run these commands on your firewall to install:

curl -LO https://github.com/TotalGriffLock/opnsense-plugin-upstreamproxy/raw/main/os-upstreamproxy-1.0.pkg
pkg add ./os-upstreamproxy-1.0.pkg

If your firewall is behind a proxy already and you need to specify the proxy settings to download the pkg, beware that this cURL is actually a BusyBox built-in command, not a full version of cURL, so the normal cURL proxy parameters don't work. This does:

env https_proxy=http://proxy_host_name:port curl -LO [....]

Usage

Once installed the proxy configuration can be set by navigating to System -> Settings

image

TODO

Add a plugin description for the OPNsense gui to display when someone clicks (i)

Add support for NO_PROXY environment variable to allow users to specify URLs NOT to proxy

Use a more standard method of showing/hiding GUI elements rather than my awful javascript