Here I use transparent proxy forwarders, and them use also other ports for DNS, SOCKS5 proxies and HTTP ones.
The scheme could be:
netnswrap --address 127.0.0.1,0.0.0.0,10.0.0.1 --port 1111,1080,3128 --protocol 1111=tcp,1080=tcp,3128=tcp --target-ns /var/run/netns/somenetns -- <command>
Or maybe the options could be reformulates, a better idea:
netnswrap --address 127.0.0.1:1111=tcp,0.0.0.0:1111=tcp,10.0.0.01=tcp --target-ns /var/run/netns/somenetns -- <command>
Thanks, and honestly, this project is the best one in Gitbub so far!
Here I use transparent proxy forwarders, and them use also other ports for DNS, SOCKS5 proxies and HTTP ones.
The scheme could be:
netnswrap --address 127.0.0.1,0.0.0.0,10.0.0.1 --port 1111,1080,3128 --protocol 1111=tcp,1080=tcp,3128=tcp --target-ns /var/run/netns/somenetns -- <command>Or maybe the options could be reformulates, a better idea:
netnswrap --address 127.0.0.1:1111=tcp,0.0.0.0:1111=tcp,10.0.0.01=tcp --target-ns /var/run/netns/somenetns -- <command>Thanks, and honestly, this project is the best one in Gitbub so far!