Skip to content
Snippets Groups Projects
Verified Commit e999a8d3 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/sshd: Restrict forwarding even further by allowing forwarding only for...

roles/sshd: Restrict forwarding even further by allowing forwarding only for regular users and only on build servers for now.
parent 4772085f
No related branches found
No related tags found
No related merge requests found
......@@ -82,8 +82,13 @@ ChallengeResponseAuthentication no
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
{% if 'buildservers' in group_names and inventory_hostname in groups['buildservers'] %}
#AllowAgentForwarding yes
#AllowTcpForwarding yes
{% else %}
AllowAgentForwarding no
AllowTcpForwarding no
{% endif %}
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
......@@ -120,7 +125,9 @@ StreamLocalBindUnlink yes
# PermitTTY no
# ForceCommand cvs server
{% if 'buildservers' in group_names and inventory_hostname in groups['buildservers'] %}
Match User root
X11Forwarding no
AllowAgentForwarding no
AllowTcpForwarding no
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment