Documentation
¶
Index ¶
- Constants
- Variables
- func CreateConfigFromBase64(str string) (err error)
- func HealthHandler(w http.ResponseWriter, req *http.Request)
- func IndexHandler(w http.ResponseWriter, req *http.Request)
- func Init()
- func InitConfig()
- func InitExecPath()
- func NebulaConfigCreate(configdata string) (string, error)
- func Run()
- func SvcConnectionStart()
- func SvcConnectionStop()
- func WSTunnelRun() error
- type ChannelWriter
- type ManagementRequest
- type ManagementResponse
- type ManagementResponseConfig
- type ManagementResponseConfigData
- type ManagementResponseConfigLocalLighthouse
- type ManagementResponseDNS
- type ManagementResponseListener
- type NebulaClientYamlConfig
- type NebulaLocalYamlConfig
- type NebulaYamlConfig
- type NebulaYamlConfigFW
- type NebulaYamlConfigUnsafeRoutes
- type OAuthLighthouseLoginRequest
- type OAuthLoginRequest
- type OAuthLoginResponse
- type SvcNetworkCard
- type WSSession
Constants ¶
View Source
const MYCONFIG_FILENAME = "myconfig.yaml"
Variables ¶
View Source
var APPVERSION = "0.0.0"
Functions ¶
func CreateConfigFromBase64 ¶
func HealthHandler ¶
func HealthHandler(w http.ResponseWriter, req *http.Request)
func IndexHandler ¶
func IndexHandler(w http.ResponseWriter, req *http.Request)
func InitConfig ¶
func InitConfig()
func InitExecPath ¶
func InitExecPath()
func NebulaConfigCreate ¶
func SvcConnectionStart ¶
func SvcConnectionStart()
func SvcConnectionStop ¶
func SvcConnectionStop()
func WSTunnelRun ¶
func WSTunnelRun() error
Types ¶
type ChannelWriter ¶
type ChannelWriter struct {
// contains filtered or unexported fields
}
type ManagementRequest ¶
type ManagementResponse ¶
type ManagementResponse struct {
Status string `json:"status"`
ConfigData *ManagementResponseConfig `json:"config_data"`
Dns *ManagementResponseDNS `json:"dns"`
}
type ManagementResponseConfig ¶
type ManagementResponseConfig struct {
AccessID int `json:"accessid"`
Name string `json:"name"`
ConfigData ManagementResponseConfigData `json:"config"`
UnderlayConfigData ManagementResponseConfigData `json:"underlayconfig"`
LocalLighthouse ManagementResponseConfigLocalLighthouse `json:"locallighthouse"`
NebulaPunchBack bool `json:"nebulapunchback"`
NebulaRestrictiveNetwork bool `json:"nebularestrictivenetwork"`
WebSocketUrl string `json:"websocketurl"`
WebSocketIPs []string `json:"websocketips"`
WebSocketUsernamePassword string `json:"websocketusernamepassword"`
ApplianceListeners []ManagementResponseListener `json:"listeners"`
}
type ManagementResponseDNS ¶
type NebulaClientYamlConfig ¶
type NebulaClientYamlConfig struct {
AccessId int `yaml:"accessid", envconfig:"ACCESSID"`
PublicIP string `yaml:"publicip", envconfig:"PUBLICIP"`
Uri string `yaml:"uri", envconfig:"URI"`
Secret string `yaml:"secret", envconfig:"SECRET"`
Debug bool `yaml:"debug", envconfig:"DEBUG"`
SendInterval int `yaml:"sendinterval", envconfig:"SENDINTERVAL"`
WebSocketPort int `yaml:"websocketport", envconfig:"WEBSOCKETPORT"`
UdpPort int `yaml:"udpport", envconfig:"UDPPORT"`
DnsUpstreamServer string `yaml:"dnsupstreamserver", envconfig:"DNSUPSTREAMSERVER"`
DnsUpstreamProtocol string `yaml:"dnsupstreamprotocol", envconfig:"DNSUPSTREAMPROTOCOL"`
DnsLocalListener string `yaml:"dnslocallistener", envconfig:"DNSLOCALLISTENER"`
DnsLocalProtocol string `yaml:"dnslocalprotocol", envconfig:"DNSLOCALPROTOCOL"`
WssDnsName string `yaml:"wssdnsname", envconfig:"WSSDNSNAME"`
}
type NebulaLocalYamlConfig ¶
type NebulaLocalYamlConfig struct {
ConfigHash string `json:"config_hash"`
ConfigData *ManagementResponseConfig `json:"config_data"`
Loaded bool `json:"-"`
}
type NebulaYamlConfig ¶
type NebulaYamlConfig struct {
Pki struct {
Ca string `yaml:"ca"`
Cert string `yaml:"cert"`
Key string `yaml:"key"`
Blocklist []string `yaml:"blocklist"`
} `yaml:"pki"`
StaticHostMap map[string][]string `yaml:"static_host_map"`
Lighthouse struct {
AmLighthouse bool `yaml:"am_lighthouse"`
Interval int `yaml:"interval"`
Hosts []string `yaml:"hosts"`
} `yaml:"lighthouse"`
Listen struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
} `yaml:"listen"`
Punchy struct {
Punch bool `yaml:"punch"`
Respond bool `yaml:"respond"`
} `yaml:"punchy"`
Relay struct {
Relays []string `yaml:"relays"`
AmRelay bool `yaml:"am_relay"`
UseRelays bool `yaml:"use_relays"`
} `yaml:"relay"`
Tun struct {
Disabled bool `yaml:"disabled"`
Dev string `yaml:"dev"`
DropLocalBroadcast bool `yaml:"drop_local_broadcast"`
DropMulticast bool `yaml:"drop_multicast"`
TxQueue int `yaml:"tx_queue"`
Mtu int `yaml:"mtu"`
Routes interface{} `yaml:"routes"`
UnsafeRoutes []NebulaYamlConfigUnsafeRoutes `yaml:"unsafe_routes"`
} `yaml:"tun"`
Logging struct {
Level string `yaml:"level"`
Format string `yaml:"format"`
} `yaml:"logging"`
Firewall struct {
Conntrack struct {
TCPTimeout string `yaml:"tcp_timeout"`
UDPTimeout string `yaml:"udp_timeout"`
DefaultTimeout string `yaml:"default_timeout"`
MaxConnections int `yaml:"max_connections"`
} `yaml:"conntrack"`
Outbound []NebulaYamlConfigFW `yaml:"outbound"`
Inbound []NebulaYamlConfigFW `yaml:"inbound"`
} `yaml:"firewall"`
}
type NebulaYamlConfigFW ¶
type OAuthLoginRequest ¶
type OAuthLoginResponse ¶
type SvcNetworkCard ¶
type SvcNetworkCard struct {
AccessID int
ConfigHash string
IPAddress string
// contains filtered or unexported fields
}
func (*SvcNetworkCard) Stop ¶
func (r *SvcNetworkCard) Stop()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.