mosers
/
eaas-vde-proxy
Archiviert
1
0
Fork 0

Help message clarified

main
Simon Moser vor 3 Jahren
Ursprung 095a08932a
Commit 972be2b000
Signiert von: mosers
GPG-Schlüssel-ID: 96B3365A234B500C

@ -38,19 +38,19 @@ Usage of ./proxy:
-log int -log int
allowed: 5 (debug), 4 (info), 3 (warning), 2 (error), 1 (fatal) (default 4) allowed: 5 (debug), 4 (info), 3 (warning), 2 (error), 1 (fatal) (default 4)
-logfile string -logfile string
Location to write output to Location to write output to (optional)
-newip string -newip string
IP after change Force IP after change (optional)
-newmac string -newmac string
MAC after change Force MAC after change (optional)
-oldip string -oldip string
IP before change Force IP before change (optional)
-oldmac string -oldmac string
MAC before change Force MAC before change (optional)
-passthrough -passthrough
Whether to pass every traffic through Whether to pass every traffic through
-pidfile string -pidfile string
Location to write the pid to Location to write the pid to (optional)
-smain string -smain string
Main switch sock path, - for stdin/out (default "/run/vde/sw_main.sock") Main switch sock path, - for stdin/out (default "/run/vde/sw_main.sock")
-sproxy string -sproxy string

@ -53,15 +53,15 @@ var UId string
func main() { func main() {
// Get command line arguments // Get command line arguments
logLvl := flag.Int("log", 4, "allowed: 5 (debug), 4 (info), 3 (warning), 2 (error), 1 (fatal)") logLvl := flag.Int("log", 4, "allowed: 5 (debug), 4 (info), 3 (warning), 2 (error), 1 (fatal)")
oldIP := flag.String("oldip", "", "IP before change") oldIP := flag.String("oldip", "", "Force IP before change (optional)")
newIP := flag.String("newip", "", "IP after change") newIP := flag.String("newip", "", "Force IP after change (optional)")
oldMAC := flag.String("oldmac", "", "MAC before change") oldMAC := flag.String("oldmac", "", "Force MAC before change (optional)")
newMAC := flag.String("newmac", "", "MAC after change") newMAC := flag.String("newmac", "", "Force MAC after change (optional)")
passthrough := flag.Bool("passthrough", false, "Whether to pass every traffic through") passthrough := flag.Bool("passthrough", false, "Whether to pass every traffic through")
sockMain := flag.String("smain", "/run/vde/sw_main.sock", "Main switch sock path, - for stdin/out") sockMain := flag.String("smain", "/run/vde/sw_main.sock", "Main switch sock path, - for stdin/out")
sockProxy := flag.String("sproxy", "/run/vde/sw_proxy1.sock", "Proxy switch sock path") sockProxy := flag.String("sproxy", "/run/vde/sw_proxy1.sock", "Proxy switch sock path")
pidFile := flag.String("pidfile", "", "Location to write the pid to") pidFile := flag.String("pidfile", "", "Location to write the pid to (optional)")
logFile := flag.String("logfile", "", "Location to write output to") logFile := flag.String("logfile", "", "Location to write output to (optional)")
wireshark := flag.Bool("wireshark", false, "Whether to write all traffic to /tmp") wireshark := flag.Bool("wireshark", false, "Whether to write all traffic to /tmp")
hostname := flag.String("hostname", "", "Set a windows hostname to filter for in binary payloads") hostname := flag.String("hostname", "", "Set a windows hostname to filter for in binary payloads")
flag.Parse() flag.Parse()