Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Exec in network

[![Build Status](https://travis-ci.org/PouuleT/exec-in-net.svg?branch=master)](https://travis-ci.org/PouuleT/exec-in-net)
[![Go Report Card](https://goreportcard.com/badge/github.com/PouuleT/exec-in-net)](https://goreportcard.com/report/github.com/PouuleT/exec-in-net)

> Execute any commands within a network namespace with its own IP and route

## Usage

```
-command string
command to be executed (default "ip route")
-gw string
gateway of the network
-interface string
interface used to get out of the network (default "eth0")
-ip string
IP network from where the command will be executed (default "192.168.1.11/24")
-log-level string
min level of logs to print (default "info")
-ns-path string
path of the temporary namespace to be created (default "/var/run/netns/w000t$PID")

```