. All rights reserved. */ /* ========================================================================== */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* ========================================================================== */ ]]> sshdcond 1.0 SSH Conditional SSH Conditional blocks Save /usr/local/pkg/sshdcond.inc SSH Conditions Configure SSH conditional exceptions
Services
/pkg.php?xml=sshdcond.xml
installedpackages->package->sshdcond /usr/local/pkg/ 755 https://packages.pfsense.org/packages/config/sshdcond/sshdcond.inc /usr/local/pkg/ 755 https://packages.pfsense.org/packages/config/sshdcond/sshdcond_sync.xml General /pkg.php?xml=sshdcond.xml Sync /pkg_edit.php?xml=sshdcond_sync.xml Status enable Match Type matchtype Match Value matchvalue listtopic Conditional SSH Options temp Enable enable checkbox Enable this ssh conditional option for specified options. Match Type matchtype See Match keyword at http://www.manpagez.com/man/5/sshd_config/ for options select Match Value matchvalue Insert Match Value. Do not use spaces or special characters. input 40 Match Config none rowhelper sshd option sshdoption select sshd value sshdvalue input 60 sshdcond_custom_php_write_config(); sshdcond_custom_php_write_config(); sshdcond_custom_php_install_command(); sshdcond_custom_php_deinstall_command(); sshdcond_custom_php_write_config(); unset($_POST['temp']);