Skip to content

Commit

Permalink
feat: Add ban duration for the failtoban plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
eesaanatluri committed Jan 24, 2025
1 parent a4e4729 commit 4c83ae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@
sshpiper_version: "feat-routing-by-group"
sshpiper_dest_dir: "/opt/sshpiper"
sshpiper_bin_dir: "{{ sshpiper_dest_dir }}/out"
sshpiper_bantime: 1200

# http_proxy
enable_http_proxy: false
Expand Down
2 changes: 1 addition & 1 deletion roles/ssh_proxy/templates/sshpiperd.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ After=network.target

[Service]
Type=simple
ExecStart= {{ sshpiper_bin_dir }}/sshpiperd -p 22 --log-level=trace {{ sshpiper_bin_dir }}/yaml --config {{ sshpiper_dest_dir }}/sshpiperd.yaml --no-check-perm -- {{ sshpiper_bin_dir }}/failtoban
ExecStart= {{ sshpiper_bin_dir }}/sshpiperd -p 22 --log-level=trace {{ sshpiper_bin_dir }}/yaml --config {{ sshpiper_dest_dir }}/sshpiperd.yaml --no-check-perm -- {{ sshpiper_bin_dir }}/failtoban --ban-duration {{ sshpiper_bantime }}
Restart=on-failure
User=root

Expand Down

0 comments on commit 4c83ae0

Please sign in to comment.