We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i'd like to add to the wishlist 🙂 e.g.
these should be relatively common use-cases and, being new to both nftables and this library, it's not obvious to me how to do this here.
as this is my first post in this repo, thank you for creating this library 🙌
Originally posted by @steveej in #12 (comment)
creating this issue to start contributing documentation. here's an example for exposing a host (case 3 and 1 from above)
networking.nftables = { firewall = { enable = true; zones = { wan.interfaces = ["wan" "lan0"]; }; }; chains = { prerouting = { "redirectweb" = { after = ["hook"]; rules = let wanInterfaces = builtins.concatStringsSep ", " config.networking.nftables.firewall.zones.wan.interfaces; exposedHost = "192.168.0.23"; in [ "iifname { ${wanInterfaces} } tcp dport 220 redirect to 22" "iifname { ${wanInterfaces} } dnat ip to ${exposedHost}" ]; }; }; }; };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i'd like to add to the wishlist 🙂 e.g.
these should be relatively common use-cases and, being new to both nftables and this library, it's not obvious to me how to do this here.
as this is my first post in this repo, thank you for creating this library 🙌
Originally posted by @steveej in #12 (comment)
creating this issue to start contributing documentation. here's an example for exposing a host (case 3 and 1 from above)
The text was updated successfully, but these errors were encountered: