2026-07-07 16:46:45 -03:00

14 lines
337 B
Plaintext

table nat {
chain prerouting {
type nat hook prerouting priority 0;
comment "this is necessary even if empty";
tcp dport $ARGENT_PORT redirect to $MARIADB_PORT;
}
chain postrouting {
type nat hook postrouting priority 100;
comment "enable NAT for VPN";
iifname "tun0" oifname "eth0" ip saddr $VPN_SUBNET masquerade;
}
}