File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ # Exec in network
2+
3+ [ ![ Build Status] ( https://travis-ci.org/PouuleT/exec-in-net.svg?branch=master )] ( https://travis-ci.org/PouuleT/exec-in-net )
4+ [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/PouuleT/exec-in-net )] ( https://goreportcard.com/report/github.com/PouuleT/exec-in-net )
5+
6+ > Execute any commands within a network namespace with its own IP and route
7+
8+ ## Usage
9+
10+ ```
11+ -command string
12+ command to be executed (default "ip route")
13+ -gw string
14+ gateway of the network
15+ -interface string
16+ interface used to get out of the network (default "eth0")
17+ -ip string
18+ IP network from where the command will be executed (default "192.168.1.11/24")
19+ -log-level string
20+ min level of logs to print (default "info")
21+ -ns-path string
22+ path of the temporary namespace to be created (default "/var/run/netns/w000t$PID")
23+
24+ ```
You can’t perform that action at this time.
0 commit comments