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

conntrack: T4523: Extend conntrack output direciton, mark, zone #1407

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

sever-sever
Copy link
Member

Change Summary

Extent op-mode show conntrack table ipv4
Add the ability to see the direction of flow:
origianl - Original src, Original dst
reply - Reply src, Reply dst

Add mark and zone options

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)

Component(s) name

conntrack

Proposed changes

How to test

Current output:

vyos@r14:~$ show conntrack table ipv4 
Connection id    Source              Destination          Protocol    State        Timeout
---------------  ------------------  -------------------  ----------  -----------  ---------
3409467955       192.168.122.14:22   192.168.122.1:59856  tcp         ESTABLISHED  431999
2033666077       255.255.255.255:67  0.0.0.0:68           udp                      19

Updated output

vyos@r14# run show conntrack table ipv4 
Id          Original src         Original dst       Reply src          Reply dst            Protocol    State        Timeout    Mark    Zone
----------  -------------------  -----------------  -----------------  -------------------  ----------  -----------  ---------  ------  ------
3529842617  192.168.122.1:53508  192.168.122.14:22  192.168.122.14:22  192.168.122.1:53508  tcp         ESTABLISHED  431999     0
179791316   192.0.2.10           1.1.1.1            1.1.1.1            192.168.122.14       icmp                     29         0       59651
[edit]
vyos@r14# 

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

Extent op-mode "show conntrack table ipv4"
Add ability to see direction of flow:
    origianl - "Original src", "Original dst"
    reply - "Reply src", "Reply dst"

Add "mark" and "zone" options
@c-po c-po merged commit 8f20f18 into vyos:current Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants