Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T5661: Add show ssh dynamic-protection and show log ssh dynamic-protection #2412

Merged
merged 4 commits into from
Oct 29, 2023
Merged

T5661: Add show ssh dynamic-protection and show log ssh dynamic-protection #2412

merged 4 commits into from
Oct 29, 2023

Conversation

JeffWDH
Copy link
Contributor

@JeffWDH JeffWDH commented Oct 28, 2023

Change Summary

Adds functionality to show IPs blocked by SSH dynamic-protection as well as the SSHGuard logs.
Manual backport of #2369

vyos-documentation PR 1127 has been submitted to update the documentation.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

Proposed changes

Add:
show ssh dynamic-protection
show log ssh dynamic-protection

How to test

Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@github-actions github-actions bot added the sagitta VyOS 1.4 LTS label Oct 28, 2023
@vyosbot vyosbot requested review from a team, dmbaturin, sarthurdev, zdc, jestabro, sever-sever and c-po and removed request for a team October 28, 2023 13:48
src/op_mode/ssh.py Outdated Show resolved Hide resolved
op-mode-definitions/show-log.xml.in Outdated Show resolved Hide resolved
op-mode-definitions/show-ssh.xml.in Outdated Show resolved Hide resolved
c-po added 3 commits October 29, 2023 08:10
This makes the code more easy to maintain in the future if everyone uses the
same structure when calling journalctl.

(cherry picked from commit e1b4e97)
…nition

Try to have as few calls to sudo in the op-mode scripts as possible. The XML
definitions can deal with it.

(cherry picked from commit 428dee2)
@c-po c-po changed the title T5661: Add show ssh dynamic-protection and show log ssh dynamic-prote… T5661: Add show ssh dynamic-protection and show log ssh dynamic-protection Oct 29, 2023
@c-po c-po merged commit 5974491 into vyos:sagitta Oct 29, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sagitta VyOS 1.4 LTS
Development

Successfully merging this pull request may close these issues.

3 participants