Skip to content

Instantly share code, notes, and snippets.

@khorsmann
Forked from sdoro/gist:4291961
Last active April 26, 2018 09:33
Show Gist options
  • Save khorsmann/271ce911c6a4fc92d03c206d3b9dc35f to your computer and use it in GitHub Desktop.
Save khorsmann/271ce911c6a4fc92d03c206d3b9dc35f to your computer and use it in GitHub Desktop.
restart OpenVPN server in CLI pfsense
# (edits /conf/config.xml symlink to /cf/conf/config.xml)
viconfig
# add for example fragment 1300;mssfix to a client
# <openvpn>
# <openvpn-client>
# <topology>subnet</topology>
# <custom_options>fragment 1300;mssfix 1300</custom_options>
# restart all OpenVPN service
echo "<?php include('openvpn.inc'); openvpn_resync_all();?>" | php -q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment