UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Ip netns exec blue ifconfig shows this now (slightly edited out) eth0.100 Link encap:Ethernet Ip netns exec blue ip link set eth0.100 up I bring up loopback, which is actually not in the guide I mentioned but I believe is required: Notice that it is now rather than I'm not sure if this is relevant. Ip netns exec blue ip -d link 1: lo: mtu 65536 qdisc noop state DOWN mode DEFAULT group default I note that ip -d link from the blue namespace has the following output Ip link add link eth0 name eth0.100 type vlan id 100Īt this point "ip -d link", shows the following (with MAC edited out) 2: eth0: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000ģ52: mtu 1500 qdisc noqueue state UP mode DEFAULT group default I will do it right now and show the exact commands I'm typing: I followed the guide at the following link: This is just some background as to why veth pairs and such will not work for me, and in general what I'm trying to do, my question is more specific However, the solution I use also should work when I'm not in a virtual machine, and when Tor is in the parent namespace (as opposed to the host of the VM with the parent namespace). So ultimately, I need to get a connection to the SocksPort on 192.168.56.1:9051, from a namespace, through eth0 (192.168.56.101) in the parent namespace. Because of this, I can't simply use a veth pair and bind Tor to the veth on the parent namespace, because Tor is not even in the virtual machine. My application needs to work when it is already isolated with virtual machines and host only routing, with Tor on the host bound to say vboxnet1 (192.168.56.1:9051), eth0 inside of the VM is (192.168.56.101), then I have a network namespace. I plan to route my application over Tor, which is a Socks5 proxy that exposes a SocksPort on a network interface. So I'm writing a program that isolates itself with namespaces, but I'm stuck on getting networking to work as I want it to.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |