Note that these config files now support pfSense v2.5.0
- Add the line
udp_proxy_2020_enable=YES
to /etc/rc.conf.local (file may need to be created) - Create /usr/local/etc/udp-proxy-2020.conf on your firewall and edit as necessary for your needs.
- Copy over /usr/local/etc/rc.d/udp-proxy-2020
- Copy the correct udp-proxy-2020 binary for your system to
/usr/local/bin/udp-proxy-2020
(yes, you have to rename the file!) - Ensure that
/usr/local/bin/udp-proxy-2020
and/usr/local/etc/rc.d/udp-proxy-2020
have the correct permissions by running:chmod 755 /usr/local/etc/rc.d/udp-proxy-2020 /usr/local/bin/udp-proxy-2020
- If you want the service to auto-start on boot, in the pfSense webui:
- If necessary, install the
shellcmd
package (System -> Package Manager
) - Navigate to:
Services -> Shellcmd
- Click
Add
and fill out the form:- Command:
/usr/local/etc/rc.d/udp-proxy-2020 start
- Shellcmd Type:
shellcmd
- Description:
Start udp-proxy-2020 at boot
- Command:
- If necessary, install the
Execute (as root) service udp-proxy-2020 start
Things to keep in mind:
- Tested to work with both Wiregard and OpenVPN on pfSense 2.6.0
- You may need to ssh into your firewall and run
ifconfig
to get the name of the VPN interface
Additional commands:
- Stop the service:
service udp-proxy-2020 stop
- Check status of the service:
service udp-proxy-2020 status
OPNsense and FreeBSD have a different way of running scripts at boot and you should read their documentation for details: