mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
20 lines
476 B
Go
20 lines
476 B
Go
package firewall
|
|
|
|
import (
|
|
"context"
|
|
|
|
"nfsense.net/nfsense/pkg/definitions"
|
|
)
|
|
|
|
type GetDestinationNATRulesParameters struct {
|
|
}
|
|
|
|
type GetDestinationNATRulesResult struct {
|
|
DestinationNATRules []definitions.DestinationNATRule
|
|
}
|
|
|
|
func (f *Firewall) GetDestinationNATRules(ctx context.Context, params GetForwardRulesParameters) (GetDestinationNATRulesResult, error) {
|
|
return GetDestinationNATRulesResult{
|
|
DestinationNATRules: f.Conf.Firewall.DestinationNATRules,
|
|
}, nil
|
|
}
|