diff options
author | Namezero <namezero@afim.info> | 2012-05-04 15:18:20 +0300 |
---|---|---|
committer | Namezero <namezero@afim.info> | 2012-05-04 15:18:20 +0300 |
commit | 3eebc3ebfc2ca2c3cf9e5c0e206978a9cd4baaf6 (patch) | |
tree | 6ad8d01903f2d30619b89d44baa6c8314562facc /etc/sshd | |
parent | a52706d5d8bbaff13e22c78990648f2e4e17b1c7 (diff) | |
download | pfsense-3eebc3ebfc2ca2c3cf9e5c0e206978a9cd4baaf6.zip pfsense-3eebc3ebfc2ca2c3cf9e5c0e206978a9cd4baaf6.tar.gz |
Minimal non-intrusive change for SSHDCond package extra parameters
Diffstat (limited to 'etc/sshd')
-rwxr-xr-x | etc/sshd | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -121,6 +121,15 @@ $sshconf .= "Protocol 2\n"; /* Run the server on another port if we have one defined */ $sshconf .= "Port $sshport\n"; + + /* Apply package SSHDCond settings if config file exists */ + if(file_exists("/etc/sshd_extra")) + { + $fdExtra = fopen("/etc/sshd_extra", 'r'); + $szExtra = fread($fdExtra, 1048576); // Read up to 1MB from extra file + $sshconf .= $szExtra; + fclose($fdExtra); + } /* Write the new sshd config file */ $fd = fopen("/etc/ssh/sshd_config", "w"); |