This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
docu:csheet:sysadm:venv:docker:netns_exec [2020/10/13 15:26] – 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 | ||
</ | </ |