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
allowed: 5 (debug), 4 (info), 3 (warning), 2 (error), 1 (fatal) (default 4)
-logfile string
Location to write output to
Location to write output to (optional)
-newip string
IP after change
Force IP after change (optional)
-newmac string
MAC after change
Force MAC after change (optional)
-oldip string
IP before change
Force IP before change (optional)
-oldmac string
MAC before change
Force MAC before change (optional)
-passthrough
Whether to pass every traffic through
-pidfile string
Location to write the pid to
Location to write the pid to (optional)
-smain string
Main switch sock path, - for stdin/out (default "/run/vde/sw_main.sock")
-sproxy string

@ -53,15 +53,15 @@ var UId string
func main() {
// Get command line arguments
logLvl := flag.Int("log", 4, "allowed: 5 (debug), 4 (info), 3 (warning), 2 (error), 1 (fatal)")
oldIP := flag.String("oldip", "", "IP before change")
newIP := flag.String("newip", "", "IP after change")
oldMAC := flag.String("oldmac", "", "MAC before change")
newMAC := flag.String("newmac", "", "MAC after change")
oldIP := flag.String("oldip", "", "Force IP before change (optional)")
newIP := flag.String("newip", "", "Force IP after change (optional)")
oldMAC := flag.String("oldmac", "", "Force MAC before change (optional)")
newMAC := flag.String("newmac", "", "Force MAC after change (optional)")
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")
sockProxy := flag.String("sproxy", "/run/vde/sw_proxy1.sock", "Proxy switch sock path")
pidFile := flag.String("pidfile", "", "Location to write the pid to")
logFile := flag.String("logfile", "", "Location to write output to")
pidFile := flag.String("pidfile", "", "Location to write the pid to (optional)")
logFile := flag.String("logfile", "", "Location to write output to (optional)")
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")
flag.Parse()