5
2
I have a Linux box with two different NICs that are connected to two different networks, but they share the same IP range (10.0.0.x). My first idea was to use virtualization for that (i.e., Xen), but it seems to me overkill since I want to use the same programs without conflicts due routing.
I was wandering if there is a way to confine a NIC to something like a shell session, so all programs launched from there use only that NIC, like launching a bash session that only sees eth1 but not eth0.
edit: I guess I'm looking something similar to FreeBSD jails but for Linux
I have the same problem from http://superuser.com/questions/263360/openvpn-client-as-socks-5-server/369416 Which openvpn client software could conveniently create a "Host-only Networking just like vmware" so that i can use it as a socks5 proxy? For example: my pc is 192.168.0.2 and 192.168.10.1 without openvpn client connected, and the openvpn client in this pc may get 192.168.0.2 ip from the remote openvpn server,so i want to make the virtual network of openvpn client is host-only network(eg. don't influence the local network), and it has a NAT ip 192.168.10.2 for host(my pc) to access it
– diyism – 2011-12-23T04:09:24.743Maybe more simple question is: How to create host only networking without virtual machine? – diyism – 2011-12-23T05:48:49.670
We do something similar here. But we use the routing tables. And it isn't very elegant. – surfasb – 2011-12-23T06:40:37.200