-
Notifications
You must be signed in to change notification settings - Fork 732
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
Ipv6 support #1905
base: master
Are you sure you want to change the base?
Ipv6 support #1905
Changes from 5 commits
f0da4a0
ef29db6
019483c
a1ddc1a
53c07f9
0a36977
704416d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
Value Required,Filldown TYPE (Service|Network) | ||
Value Required,Filldown TYPE (Service|Network|V6-Service|V6-Network) | ||
Value Required,Filldown NAME (\S+) | ||
Value DESCRIPTION (.+) | ||
Value NESTED_GROUPS (\S+) | ||
Value ANY (any) | ||
Value HOST (\d+\.\d+\.\d+\.\d+) | ||
Value HOST (((\d+\.\d+\.\d+\.\d+)|([A-Fa-f0-9:]+:+)+[A-Fa-f0-9]+)) | ||
Value HOST_RANGE_START (\d+\.\d+\.\d+\.\d+) | ||
Value HOST_RANGE_END (\d+\.\d+\.\d+\.\d+) | ||
Value NETWORK (\d+\.\d+\.\d+\.\d+) | ||
Value NETMASK (\d+\.\d+\.\d+\.\d+) | ||
Value NETWORK ((\d+\.\d+\.\d+\.\d+)|([A-Fa-f0-9:]+:+[A-Fa-f0-9:]+)) | ||
Value NETMASK ((\d+\.\d+\.\d+\.\d+)|((?:\/\d{1,3}))) | ||
Value PROTOCOL (\S+) | ||
Value PORT_MATCH (eq|neq|range|lt|gt) | ||
Value PORT ((?<!range\s)\S+) | ||
Value PORT_RANGE_START ((?<=range\s)\S+) | ||
Value PORT_RANGE_END (\S+) | ||
Value ICMP_TYPE (echo|echo-reply|administratively-prohibited|unreachable|port-unreachable|redirect|router-advertisement|router-solicitation|packet-too-big|time-exceeded|ttl-exceeded|parameter-problem) | ||
Value ICMP6_TYPE (dhaad-reply|dhaad-request|echo-reply|echo-request|mld-query|mld-reduction|mld-report|mld-v2-report|mpd-advertisement|mpd-solicitation|nd-na|nd-ns|packet-too-big|parameter-problem|redirect|router-advertisement|router-renumbering|router-solicitation|time-exceeded|unreachable) | ||
|
||
Start | ||
^(Service|Network) -> Continue.Clearall | ||
^(Service|Network|V6-Service|V6-Network) -> Continue.Clearall | ||
^${TYPE}\s+object\s+group\s+${NAME}\s*$$ -> Record | ||
^\s+Description\s+${DESCRIPTION}$$ -> Record | ||
^\s+group-object\s+${NESTED_GROUPS}\s*$$ -> Record | ||
^\s+(host\s+${HOST}|range\s+${HOST_RANGE_START}\s+${HOST_RANGE_END}|${ANY}|${NETWORK}\s+${NETMASK})\s*$$ -> Record | ||
^\s+icmp\s+${ICMP_TYPE}\s*$$ -> Record | ||
^\s+(host\s+${HOST}|range\s+${HOST_RANGE_START}\s+${HOST_RANGE_END}|${ANY}|${NETWORK}\s*${NETMASK})\s*$$ -> Record | ||
^\s+icmp\s+(${ICMP_TYPE}|${ICMP6_TYPE})\s*$$ -> Record | ||
This comment was marked as outdated.
Sorry, something went wrong. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Obsoleted by brunopeter/pull/1 |
||
^\s+${PROTOCOL}\s+${PORT_MATCH}\s+(${PORT_RANGE_START}\s+${PORT_RANGE_END}|${PORT})\s*$$ -> Record | ||
^\s+${PROTOCOL}\s*$$ -> Record | ||
^\s*$$ | ||
^. -> Error | ||
|
||
EOF | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
V6-Network object group TEST-v6-obj | ||
host 2001:db8::1:1111 | ||
host 2001:db8::2:2222 | ||
2001:db8:111:1::/48 | ||
2001:db8:222:2::/48 | ||
V6-Service object group TEST-v6-icmp | ||
icmp echo-request | ||
icmp echo-reply | ||
|
||
brunopeter marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,138 @@ | ||||||||
--- | ||||||||
parsed_sample: | ||||||||
- ANY: '' | ||||||||
DESCRIPTION: '' | ||||||||
HOST: '' | ||||||||
HOST_RANGE_END: '' | ||||||||
HOST_RANGE_START: '' | ||||||||
ICMP6_TYPE: '' | ||||||||
ICMP_TYPE: '' | ||||||||
NAME: TEST-v6-icmp | ||||||||
NESTED_GROUPS: '' | ||||||||
NETMASK: '' | ||||||||
NETWORK: '' | ||||||||
PORT: '' | ||||||||
PORT_MATCH: '' | ||||||||
PORT_RANGE_END: '' | ||||||||
PORT_RANGE_START: '' | ||||||||
PROTOCOL: '' | ||||||||
TYPE: V6-Service | ||||||||
- ANY: '' | ||||||||
DESCRIPTION: '' | ||||||||
HOST: '' | ||||||||
HOST_RANGE_END: '' | ||||||||
HOST_RANGE_START: '' | ||||||||
ICMP6_TYPE: echo-request | ||||||||
ICMP_TYPE: '' | ||||||||
NAME: TEST-v6-icmp | ||||||||
NESTED_GROUPS: '' | ||||||||
NETMASK: '' | ||||||||
NETWORK: '' | ||||||||
PORT: '' | ||||||||
PORT_MATCH: '' | ||||||||
PORT_RANGE_END: '' | ||||||||
PORT_RANGE_START: '' | ||||||||
PROTOCOL: '' | ||||||||
TYPE: V6-Service | ||||||||
- ANY: '' | ||||||||
DESCRIPTION: '' | ||||||||
HOST: '' | ||||||||
HOST_RANGE_END: '' | ||||||||
HOST_RANGE_START: '' | ||||||||
ICMP6_TYPE: '' | ||||||||
ICMP_TYPE: echo-reply | ||||||||
NAME: TEST-v6-icmp | ||||||||
NESTED_GROUPS: '' | ||||||||
NETMASK: '' | ||||||||
NETWORK: '' | ||||||||
PORT: '' | ||||||||
PORT_MATCH: '' | ||||||||
PORT_RANGE_END: '' | ||||||||
PORT_RANGE_START: '' | ||||||||
PROTOCOL: '' | ||||||||
TYPE: V6-Service | ||||||||
- ANY: '' | ||||||||
DESCRIPTION: '' | ||||||||
HOST: '' | ||||||||
HOST_RANGE_END: '' | ||||||||
HOST_RANGE_START: '' | ||||||||
ICMP6_TYPE: '' | ||||||||
ICMP_TYPE: '' | ||||||||
NAME: TEST-v6-obj | ||||||||
NESTED_GROUPS: '' | ||||||||
NETMASK: '' | ||||||||
NETWORK: '' | ||||||||
PORT: '' | ||||||||
PORT_MATCH: '' | ||||||||
PORT_RANGE_END: '' | ||||||||
PORT_RANGE_START: '' | ||||||||
PROTOCOL: '' | ||||||||
TYPE: V6-Network | ||||||||
- ANY: '' | ||||||||
DESCRIPTION: '' | ||||||||
HOST: 2001:DB8::1:1111 | ||||||||
HOST_RANGE_END: '' | ||||||||
HOST_RANGE_START: '' | ||||||||
ICMP6_TYPE: '' | ||||||||
ICMP_TYPE: '' | ||||||||
NAME: TEST-v6-obj | ||||||||
NESTED_GROUPS: '' | ||||||||
NETMASK: '' | ||||||||
NETWORK: '' | ||||||||
PORT: '' | ||||||||
PORT_MATCH: '' | ||||||||
PORT_RANGE_END: '' | ||||||||
PORT_RANGE_START: '' | ||||||||
PROTOCOL: '' | ||||||||
TYPE: V6-Network | ||||||||
- ANY: '' | ||||||||
DESCRIPTION: '' | ||||||||
HOST: 2001:DB8::2:2222 | ||||||||
HOST_RANGE_END: '' | ||||||||
HOST_RANGE_START: '' | ||||||||
ICMP6_TYPE: '' | ||||||||
ICMP_TYPE: '' | ||||||||
NAME: TEST-v6-obj | ||||||||
NESTED_GROUPS: '' | ||||||||
NETMASK: '' | ||||||||
NETWORK: '' | ||||||||
PORT: '' | ||||||||
PORT_MATCH: '' | ||||||||
PORT_RANGE_END: '' | ||||||||
PORT_RANGE_START: '' | ||||||||
PROTOCOL: '' | ||||||||
TYPE: V6-Network | ||||||||
- ANY: '' | ||||||||
DESCRIPTION: '' | ||||||||
HOST: '' | ||||||||
HOST_RANGE_END: '' | ||||||||
HOST_RANGE_START: '' | ||||||||
ICMP6_TYPE: '' | ||||||||
ICMP_TYPE: '' | ||||||||
NAME: TEST-v6-obj | ||||||||
NESTED_GROUPS: '' | ||||||||
NETMASK: /48 | ||||||||
NETWORK: '2001:DB8:111:1::' | ||||||||
PORT: '' | ||||||||
PORT_MATCH: '' | ||||||||
PORT_RANGE_END: '' | ||||||||
PORT_RANGE_START: '' | ||||||||
PROTOCOL: '' | ||||||||
TYPE: V6-Network | ||||||||
- ANY: '' | ||||||||
DESCRIPTION: '' | ||||||||
HOST: '' | ||||||||
HOST_RANGE_END: '' | ||||||||
HOST_RANGE_START: '' | ||||||||
ICMP6_TYPE: '' | ||||||||
ICMP_TYPE: '' | ||||||||
NAME: TEST-v6-obj | ||||||||
NESTED_GROUPS: '' | ||||||||
NETMASK: /48 | ||||||||
NETWORK: '2001:DB8:222:2::' | ||||||||
PORT: '' | ||||||||
PORT_MATCH: '' | ||||||||
PORT_RANGE_END: '' | ||||||||
PORT_RANGE_START: '' | ||||||||
PROTOCOL: '' | ||||||||
TYPE: V6-Network | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't the TYPE be a double quoted string too? TYPE: "V6-Network" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be obsoleted by brunopeter/pull/1 |
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Obsoleted by brunopeter/pull/1