docu:csheet:sysadm:venv:docker:netns_exec
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
docu:csheet:sysadm:venv:docker:netns_exec [2020/10/13 15:25] – admin | docu:csheet:sysadm:venv:docker:netns_exec [2020/10/13 15:27] (current) – admin |
---|
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> |
</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, 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... Source: https://en.wikipedia.org/wiki/Linux_namespaces#Network_(net) | 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]] |
docu/csheet/sysadm/venv/docker/netns_exec.1602602742.txt.gz · Last modified: 2020/10/13 15:25 by admin