Blame | Last modification | View Log | RSS feed
# Sample configuration snippet for nftables service.# Meant to be included by main.nft, not for direct use.# dedicated table for IPv4table ip nftables_svc {# interfaces to masquerade traffic fromset masq_interfaces {type ifnameelements = { "virbr0" }}# networks to masquerade traffic from# 'interval' flag is required to support subnetsset masq_ips {type ipv4_addrflags intervalelements = { 192.168.122.0/24 }}# base-chain to manipulate conntrack in postrouting,# will see packets for new or related traffic onlychain POSTROUTING {type nat hook postrouting priority srcnat + 20policy acceptiifname @masq_interfaces oifname != @masq_interfaces masqueradeip saddr @masq_ips masquerade}}