ipsectunnel

package
v0.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2019 License: ISC Imports: 4 Imported by: 2

Documentation

Overview

Package ipsectunnel is the client.Network.IpsecTunnel namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	TypeAutoKey                = "auto-key"
	TypeManualKey              = "manual-key"
	TypeGlobalProtectSatellite = "global-protect-satellite"
)
View Source
const (
	MkEspEncryptionDes    = "des"
	MkEspEncryption3des   = "3des"
	MkEspEncryptionAes128 = "aes-128-cbc"
	MkEspEncryptionAes192 = "aes-192-cbc"
	MkEspEncryptionAes256 = "aes-256-cbc"
	MkEspEncryptionNull   = "null"
)
View Source
const (
	MkProtocolEsp = "esp"
	MkProtocolAh  = "ah"
)
View Source
const (
	MkAuthTypeMd5    = "md5"
	MkAuthTypeSha1   = "sha1"
	MkAuthTypeSha256 = "sha256"
	MkAuthTypeSha384 = "sha384"
	MkAuthTypeSha512 = "sha512"
	MkAuthTypeNone   = "none"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name                       string
	TunnelInterface            string
	AntiReplay                 bool
	EnableIpv6                 bool
	Type                       string
	AkIkeGateway               string
	AkIpsecCryptoProfile       string
	MkLocalSpi                 string
	MkInterface                string
	MkRemoteSpi                string
	MkRemoteAddress            string
	MkLocalAddressIp           string
	MkLocalAddressFloatingIp   string
	MkProtocol                 string
	MkAuthType                 string
	MkAuthKey                  string
	MkEspEncryptionType        string
	MkEspEncryptionKey         string
	GpsInterface               string
	GpsPortalAddress           string
	GpsPreferIpv6              bool
	GpsInterfaceIpIpv4         string
	GpsInterfaceIpIpv6         string
	GpsInterfaceFloatingIpIpv4 string
	GpsInterfaceFloatingIpIpv6 string
	GpsPublishConnectedRoutes  bool
	GpsPublishRoutes           []string
	GpsLocalCertificate        string
	GpsCertificateProfile      string
	CopyTos                    bool
	CopyFlowLabel              bool
	EnableTunnelMonitor        bool
	TunnelMonitorDestinationIp string
	TunnelMonitorSourceIp      string
	TunnelMonitorProxyId       string
	TunnelMonitorProfile       string
	Disabled                   bool
	// contains filtered or unexported fields
}

Entry is a normalized, version independent representation of an IKE gateway.

func (*Entry) Copy

func (o *Entry) Copy(s Entry)

Copy copies the information from source Entry `s` to this object. As the Name field relates to the XPATH of this object, this field is not copied.

func (*Entry) NormalizeEncryption

func (o *Entry) NormalizeEncryption()

NormalizeEncryption normalizes the fields in o.MkEspEncryption.

func (*Entry) SpecifyEncryption

func (o *Entry) SpecifyEncryption(v int)

SpecifyEncryption takes normalized encryption values and changes them to the version specific values PAN-OS will be expecting.

Param v should be 1 if you're running against PAN-OS 6.1, 2 if you're running against 7.0 or later.

type FwIpsecTunnel

type FwIpsecTunnel struct {
	// contains filtered or unexported fields
}

FwIpsecTunnel is a namespace struct, included as part of pango.Client.

func (*FwIpsecTunnel) Delete

func (c *FwIpsecTunnel) Delete(e ...interface{}) error

Delete removes the given IPSec tunnels from the firewall.

Profiles can be either a string or an Entry object.

func (*FwIpsecTunnel) Edit

func (c *FwIpsecTunnel) Edit(e Entry) error

Edit performs EDIT to create / update an IPSec tunnel.

func (*FwIpsecTunnel) Get

func (c *FwIpsecTunnel) Get(name string) (Entry, error)

Get performs GET to retrieve information for the given IPSec crypto profile.

func (*FwIpsecTunnel) GetList

func (c *FwIpsecTunnel) GetList() ([]string, error)

GetList performs GET to retrieve a list of IPSec tunnels.

func (*FwIpsecTunnel) Initialize

func (c *FwIpsecTunnel) Initialize(con util.XapiClient)

Initialize is invoked when Initialize on the pango.Client is called.

func (*FwIpsecTunnel) Set

func (c *FwIpsecTunnel) Set(e ...Entry) error

Set performs SET to create / update one or more IPSec tunnels.

func (*FwIpsecTunnel) Show

func (c *FwIpsecTunnel) Show(name string) (Entry, error)

Get performs SHOW to retrieve information for the given IPSec crypto profile.

func (*FwIpsecTunnel) ShowList

func (c *FwIpsecTunnel) ShowList() ([]string, error)

ShowList performs SHOW to retrieve a list of IPSec tunnels.

type PanoIpsecTunnel

type PanoIpsecTunnel struct {
	// contains filtered or unexported fields
}

PanoIpsecTunnel is a namespace struct, included as part of pango.Client.

func (*PanoIpsecTunnel) Delete

func (c *PanoIpsecTunnel) Delete(tmpl, ts string, e ...interface{}) error

Delete removes the given IPSec tunnels from the firewall.

Profiles can be either a string or an Entry object.

func (*PanoIpsecTunnel) Edit

func (c *PanoIpsecTunnel) Edit(tmpl, ts string, e Entry) error

Edit performs EDIT to create / update an IPSec tunnel.

func (*PanoIpsecTunnel) Get

func (c *PanoIpsecTunnel) Get(tmpl, ts, name string) (Entry, error)

Get performs GET to retrieve information for the given IPSec crypto profile.

func (*PanoIpsecTunnel) GetList

func (c *PanoIpsecTunnel) GetList(tmpl, ts string) ([]string, error)

GetList performs GET to retrieve a list of IPSec tunnels.

func (*PanoIpsecTunnel) Initialize

func (c *PanoIpsecTunnel) Initialize(con util.XapiClient)

Initialize is invoked when Initialize on the pango.Client is called.

func (*PanoIpsecTunnel) Set

func (c *PanoIpsecTunnel) Set(tmpl, ts string, e ...Entry) error

Set performs SET to create / update one or more IPSec tunnels.

func (*PanoIpsecTunnel) Show

func (c *PanoIpsecTunnel) Show(tmpl, ts, name string) (Entry, error)

Get performs SHOW to retrieve information for the given IPSec crypto profile.

func (*PanoIpsecTunnel) ShowList

func (c *PanoIpsecTunnel) ShowList(tmpl, ts string) ([]string, error)

ShowList performs SHOW to retrieve a list of IPSec tunnels.

Directories

Path Synopsis
proxyid
ipv4
Package ipv4 is the client.Network.IpsecTunnelProxyId namespace.
Package ipv4 is the client.Network.IpsecTunnelProxyId namespace.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL