User Tools

Site Tools


docu:csheet:sysadm:venv:docker:netns_exec

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
docu:csheet:sysadm:venv:docker:netns_exec [2020/10/13 15:23] – created admindocu:csheet:sysadm:venv:docker:netns_exec [2020/10/13 15:27] (current) admin
Line 15: Line 15:
 nsenter -t PID -n telnet 2.3.4.5 80 nsenter -t PID -n telnet 2.3.4.5 80
 nsenter -t PID -n iptables -A OUTPUT -d 1.2.3.4 -p udp --dport 53 -j ACCEPT  nsenter -t PID -n iptables -A OUTPUT -d 1.2.3.4 -p udp --dport 53 -j ACCEPT 
 +nsenter -t PID -n netstat -lptuan
 # or whatever network-related command you want to exec # or whatever network-related command you want to exec
 </code> </code>
Line 23: Line 24:
 </code> </code>
  
-Technically, network namespaces are a technology on *nix operating systems that allows to create separated or/and isolated network stacks on the hosts +Technically, **network namespaces** are a technology on *nix operating systems that allows to create separated or/and isolated network stacks on the hosts, which contains it's own **private set of IP addresses**, it's own **routing table**, socket listing, connection tracking table, **firewall**, and other network-related resources... [[https://en.wikipedia.org/wiki/Linux_namespaces#Network_(net)|source on WikiPedia]]
- +
-\\ +
-More information on: https://en.wikipedia.org/wiki/Linux_namespaces#Network_(net)+
docu/csheet/sysadm/venv/docker/netns_exec.1602602596.txt.gz · Last modified: 2020/10/13 15:23 by admin