This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docu:csheet:sysadm:venv:docker:netns_exec [2020/10/13 15:23] – created admin | docu: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 | ||
</ | </ | ||
Line 23: | Line 24: | ||
</ | </ | ||
- | Technically, | + | Technically, |
- | + | ||
- | \\ | + | |
- | More information on: https:// | + |