Documentation ¶
Index ¶
- Variables
- func CheckIfSudo()
- func ChecknCreateHostFile()
- func Detect() (localIp string, destIp string)
- func GenerateNewMachineID() string
- func IptablesInit()
- func IptablesRemove()
- func ProcessHostFile() ([]string, []string, string, string)
- func ReadMachineID() string
- func SetNewConfig()
- func ViewCurrentConfig()
- type HostFileConfig
- type Traffic
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HEC_url string
)
Functions ¶
func CheckIfSudo ¶
func CheckIfSudo()
checkIfSudo checks if the program is executed with superuser privileges. It warns the user to run the program as sudo if not already.
func ChecknCreateHostFile ¶
func ChecknCreateHostFile()
Checks for host.file and creates it if not found
func GenerateNewMachineID ¶
func GenerateNewMachineID() string
GenerateNewMachineID generates a new machine ID in the format of 32 hexadecimal characters.
func IptablesRemove ¶
func IptablesRemove()
func ReadMachineID ¶
func ReadMachineID() string
ReadMachineID reads the machine ID from /etc/machine-id.
func SetNewConfig ¶
func SetNewConfig()
func ViewCurrentConfig ¶
func ViewCurrentConfig()
Types ¶
type HostFileConfig ¶
Click to show internal directories.
Click to hide internal directories.