Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions controls/sshd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
sshd_valid_kexs = input('sshd_valid_kexs', value: ssh_crypto.valid_kexs)
sshd_valid_macs = input('sshd_valid_macs', value: ssh_crypto.valid_macs)
sshd_permittunnel = input('sshd_permittunnel', value: 'no')
sshd_tcpforwarding = input('sshd_tcpforwarding', value: 'no')
sshd_agentforwarding = input('sshd_agentforwarding', value: 'no')
sshd_gatewayports = input('sshd_gatewayports', value: 'no')
sshd_x11forwarding = input('sshd_x11forwarding', value: 'no')
Expand Down Expand Up @@ -413,7 +412,7 @@
title 'Server: Disable TCP forwarding'
desc 'If you use TCP forwarding in an uncontrolled manner then you can bypass the firewalls'
describe sshd_config("#{sshd_custom_path}/sshd_config") do
its('AllowTcpForwarding') { should eq(sshd_tcpforwarding) }
its('AllowTcpForwarding') { should match(/^no|local$/) }
end
end

Expand Down