Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.94 KB

File metadata and controls

50 lines (36 loc) · 1.94 KB

pfSense/OPNsense/BSD startup scripts

Note that these config files now support pfSense v2.5.0

Configuration

  1. Add the line udp_proxy_2020_enable=YES to /etc/rc.conf.local (file may need to be created)
  2. Create /usr/local/etc/udp-proxy-2020.conf on your firewall and edit as necessary for your needs.
  3. Copy over /usr/local/etc/rc.d/udp-proxy-2020
  4. Copy the correct udp-proxy-2020 binary for your system to /usr/local/bin/udp-proxy-2020 (yes, you have to rename the file!)
  5. 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
  6. If you want the service to auto-start on boot, in the pfSense webui:
    1. If necessary, install the shellcmd package (System -> Package Manager)
    2. Navigate to: Services -> Shellcmd
    3. 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

Run

Execute (as root) service udp-proxy-2020 start

Other info

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 / FreeBSD

OPNsense and FreeBSD have a different way of running scripts at boot and you should read their documentation for details: