lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <439a2ed6-a242-e0a9-1a8a-a8a86d2665e0@gmail.com>
Date:   Thu, 8 Mar 2018 11:14:23 -0700
From:   David Ahern <dsahern@...il.com>
To:     Roopa Prabhu <roopa@...ulusnetworks.com>
Cc:     netdev@...r.kernel.org
Subject: Re: [PATCH iproute2 net-next v5] iprule: support for ip_proto, sport
 and dport match options

On 3/8/18 11:06 AM, Roopa Prabhu wrote:
> From: Roopa Prabhu <roopa@...ulusnetworks.com>
> 
> add support to match on ip_proto, sport and dport ranges.
> For ip_proto, this patch currently enumerates, tcp, udp and sctp.
> This list can be extended in the future.
> 
> example:
> $ip rule add sport 666-777 dport 999 ip_proto tcp table 100
> $ip rule show
> 0:      from all lookup local
> 32765:  from all ip_proto 6 sport 666-777 dport 999 lookup 100
> 32766:  from all lookup main
> 32767:  from all lookup default
> 
> Signed-off-by: Roopa Prabhu <roopa@...ulusnetworks.com>
> ---
> v2: use inet_proto_* as suggested by David Ahern
> 
> v3: fix newlines in usage (feedback from David Ahern)
> 
> v4: fixes for json (feedback from Stephen H).
> 
> v5: drop uapi header update from patch, use int for inet_proto_a2n
> return val to catch invalid proto errors, rename ip_proto to ipproto
> to be consistent with tc
> 
>  ip/iprule.c        | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  man/man8/ip-rule.8 | 32 +++++++++++++++++++++++++-
>  2 files changed, 98 insertions(+), 1 deletion(-)
> 

applied to iproute2-next

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ