Skip to content

Commit 5d606ce

Browse files
authored
Add readme (#3)
1 parent ce51646 commit 5d606ce

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
```

0 commit comments

Comments
 (0)