Re: [PATCH] src: Add command "replace" for rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 27, 2015 at 12:58:07PM +0100, Carlos Falgueras García wrote:
> Modify the parser and add necessary functions to provide the command "nft
> replace rule <ruleid_spec> <new_rule>"
> 
> Example of use:
> 	# nft list ruleset -a
> 	table ip filter {
> 		chain output {
> 			ip daddr 8.8.8.7 counter packets 0 bytes 0 # handle 3
> 		}
> 	}
> 	# nft replace rule filter output handle 3 ip daddr 8.8.8.8 counter
> 	# nft list ruleset -a
> 	table ip filter {
> 		chain output {
> 			ip daddr 8.8.8.8 counter packets 0 bytes 0 # handle 3
> 		}
> 	}

Applied, thanks Carlos.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux