Re: $path problem with nftables

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

 



On Sun, Jun 03, 2018 at 11:08:39AM +0200, support@xxxxxxx wrote:
> 
> 
> 	why is it such a problem to solve
> 	$path by nftables ?
> 
> 	i.e.
> 	
> 	if server starts up script has
> 	before to CD (!)
> 	into /etc/nftables/
> 
> 	- or have to implement
> 	hardcoded absolutepath -
> 
> 	and start the firewall-script;
> 	otherwise the 'include ".."'
> 	is not working?

You can use:

* absolute path, eg. "/foo/bar/ruleset.nft"
* relative path, from /etc/nftables, eg. "ruleset.nft", assuming
  ruleset.nft is placed in /etc/nftables.
* relative path from your cwd, eg. "./bar/ruleset.nft", assuming your
  cwd is at /foo.

This information is available in the manpage, see INCLUDE FILES.

Not sure if you still do, please, don't use nft 0.5 (2015-Sep-17!) is
very very old and buggy.

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



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux