Versions in this module Expand all Collapse all v0 v0.1.7 Feb 21, 2023 v0.1.6 Feb 20, 2023 Changes in this version type FirewallRuleSetRule + ICMPV6 FirewallRuleSetRuleICMP v0.1.5 Feb 20, 2023 v0.1.4 Feb 20, 2023 Changes in this version + func MarshalCommands(v any) (out []byte, err error) + type Config struct + Firewall Firewall + type EnableDisable bool + func (e EnableDisable) MarshalText() ([]byte, error) + func (e EnableDisable) String() string + type Firewall struct + AllPing *EnableDisable + BroadcastPing *EnableDisable + ConfigTrap *EnableDisable + Groups FirewallGroups + Interfaces FirewallInterface + LogMartians *EnableDisable + NamesV4 map[string]FirewallRuleSet + NamesV6 map[string]FirewallRuleSet + ReceiveRedirects *EnableDisable + ResolverCache bool + ResolverInterval *uint16 + SendRedirects *EnableDisable + SourceValidation *string + SrcRouteV4 *EnableDisable + SrcRouteV6 *EnableDisable + StatePolicy FirewallStatePolicies + SynCookies *EnableDisable + TwaHazardsProtection *EnableDisable + Zone map[string]FirewallZone + type FirewallAppliedRuleSets struct + NameV4 *string + NameV6 *string + type FirewallGroups struct + AddressGroupsV4 map[string]FirewallGroupsAddressGroup + AddressGroupsV6 map[string]FirewallGroupsAddressGroup + DomainGroups map[string]FirewallGroupsDomainGroup + InterfaceGroups map[string]FirewallGroupsInterfaceGroup + MacGroups map[string]FirewallGroupsMacGroup + NetworkGroupsV4 map[string]FirewallGroupsNetworkGroup + NetworkGroupsV6 map[string]FirewallGroupsNetworkGroup + PortGroups map[string]FirewallGroupsPortGroup + type FirewallGroupsAddressGroup struct + Addresses []ValueOrRange[IPAddr] + Description *string + Includes []string + type FirewallGroupsDomainGroup struct + Description *string + Domains []string + type FirewallGroupsInterfaceGroup struct + Description *string + Includes []string + Interfaces []string + type FirewallGroupsMacGroup struct + Description *string + Includes []string + MacAddresses []net.HardwareAddr + type FirewallGroupsNetworkGroup struct + Description *string + Includes []string + Networks []IPPrefix + type FirewallGroupsPortGroup struct + Description *string + Includes []string + Ports []ValueOrRange[string] + type FirewallInterface struct + In FirewallAppliedRuleSets + Local FirewallAppliedRuleSets + Out FirewallAppliedRuleSets + type FirewallRuleSet struct + DefaultAction *string + DefaultJumpTarget *string + Description *string + EnableDefaultLog bool + Rules map[uint]FirewallRuleSetRule + type FirewallRuleSetRule struct + Action *string + ConnectionMarks []uint + ConnectionStatus FirewallRuleSetRuleConnectionStatus + DSCPExcludes []ValueOrRange[uint8] + DSCPs []ValueOrRange[uint8] + Description *string + Destination FirewallRuleSetRuleAddresses + Disable bool + Fragment FirewallRuleSetRuleFragment + ICMP FirewallRuleSetRuleICMP + IPSec FirewallRuleSetRuleIPSec + InboundInterface FirewallRuleSetRuleInterface + JumpTarget *string + Limit FirewallRuleSetRuleLimit + Log *EnableDisable + LogLevel *string + OutboundInterface FirewallRuleSetRuleInterface + PacketLengthExcludes []ValueOrRange[uint16] + PacketLengths []ValueOrRange[uint16] + Protocol *string + Recent FirewallRuleSetRuleRecent + Source FirewallRuleSetRuleAddresses + State FirewallRuleSetRuleState + TCP FirewallRuleSetRuleTCP + TTL FirewallRuleSetRuleTTL + Time FirewallRuleSetRuleTime + type FirewallRuleSetRuleAddressGroup struct + AddressGroup *string + DomainGroup *string + MacGroup *string + NetworkGroup *string + PortGroup *string + type FirewallRuleSetRuleAddresses struct + Address *FirewallRuleSetRuleAddressesAddress + AddressMask net.IPMask + FQDN *string + GeoIP FirewallRuleSetRuleGeoIP + Group FirewallRuleSetRuleAddressGroup + MacAddress net.HardwareAddr + Ports []ValueOrRange[string] + type FirewallRuleSetRuleAddressesAddress struct + Address ValueOrRange[IPAddr] + Negated bool + func (FirewallRuleSetRuleAddressesAddress) JSONSchema() *jsonschema.Schema + func (a *FirewallRuleSetRuleAddressesAddress) UnmarshalYAML(node *yaml.Node) error + func (a FirewallRuleSetRuleAddressesAddress) MarshalText() ([]byte, error) + func (a FirewallRuleSetRuleAddressesAddress) String() string + type FirewallRuleSetRuleConnectionStatus struct + NAT FirewallRuleSetRuleConnectionStatusNAT + type FirewallRuleSetRuleConnectionStatusNAT struct + Destination bool + Source bool + type FirewallRuleSetRuleFragment struct + MatchFrag bool + MatchNonFrag bool + type FirewallRuleSetRuleGeoIP struct + CountryCode []string + InverseMatch bool + type FirewallRuleSetRuleICMP struct + Code *uint8 + Type *uint8 + TypeName *string + type FirewallRuleSetRuleIPSec struct + MatchIPSec *bool + MatchNone *bool + type FirewallRuleSetRuleInterface struct + InterfaceGroup *string + InterfaceName *string + type FirewallRuleSetRuleLimit struct + Burst *uint32 + Rate *string + type FirewallRuleSetRuleRecent struct + Count *uint8 + Time *string + type FirewallRuleSetRuleState struct + Established *EnableDisable + Invalid *EnableDisable + New *EnableDisable + Related *EnableDisable + type FirewallRuleSetRuleTCP struct + Flags FirewallRuleSetRuleTCPFlags + MSS *ValueOrRange[uint16] + type FirewallRuleSetRuleTCPFlags struct + Ack bool + Cwr bool + Ecn bool + Fin bool + Not *FirewallRuleSetRuleTCPFlags + Psh bool + Rst bool + Syn bool + Urg bool + type FirewallRuleSetRuleTTL struct + Eq *uint8 + Gt *uint8 + Lt *uint8 + type FirewallRuleSetRuleTime struct + StartDate *string + StartTime *string + StopDate *string + StopTime *string + Weekday *ValueOrRange[string] + type FirewallStatePolicies struct + Established FirewallStatePolicy + Invalid FirewallStatePolicy + Related FirewallStatePolicy + type FirewallStatePolicy struct + Action *string + Log *EnableDisable + LogLevel *string + type FirewallZone struct + DefaultAction *string + Description *string + EnableDefaultLog bool + From map[string]FirewallZoneFrom + Interfaces []string + IntraZoneFiltering FirewallZoneIntraZoneFiltering + LocalZone bool + type FirewallZoneFrom struct + Firewall FirewallAppliedRuleSets + type FirewallZoneIntraZoneFiltering struct + Action *string + Firewall FirewallAppliedRuleSets + type IPAddr struct + func (IPAddr) JSONSchema() *jsonschema.Schema + type IPPrefix struct + func (IPPrefix) JSONSchema() *jsonschema.Schema + type Marshaler interface + MarshalVyOS func() (any, error) + type ValueOrRange struct + End T + Start T + func (ValueOrRange[T]) JSONSchema() *jsonschema.Schema + func (v *ValueOrRange[T]) UnmarshalYAML(node *yaml.Node) error + func (v ValueOrRange[T]) MarshalText() ([]byte, error) + func (v ValueOrRange[T]) String() string v0.1.3 Feb 20, 2023 v0.1.2 Feb 20, 2023 v0.1.1 Feb 20, 2023 v0.1.0 Feb 20, 2023