Multiple subnets with proxy
Posted: 8. May 2015, 17:25
Ok, here is the scenario:
I have three machines A, B and a proxy. All 3 are ubuntu.
There are two networks. 192.168.1.0 and 192.168.2.0, both of which were created as host only networks.. A sits on the .1 network. B sits on the .2 network, and the proxy has NIC cards for both of them. P can ping both A and B. A and B can both ping P. Neither A, nor B can ping one another.
The ultimate goal is to be able to nmap B using A through the proxy.
I plan to do this through proxychains, and ssh.
So, I ssh from A to P:
ssh -D 1080 root@192.168.1.101
and make sure that proxychains is configured correctly. At the end of the proxychains.conf file I have the line:
socks4 127.0.0.1 1080.
No luck. Is there anything I need to set up in the ubuntu proxy machine in order to make this work?
I have three machines A, B and a proxy. All 3 are ubuntu.
There are two networks. 192.168.1.0 and 192.168.2.0, both of which were created as host only networks.. A sits on the .1 network. B sits on the .2 network, and the proxy has NIC cards for both of them. P can ping both A and B. A and B can both ping P. Neither A, nor B can ping one another.
The ultimate goal is to be able to nmap B using A through the proxy.
I plan to do this through proxychains, and ssh.
So, I ssh from A to P:
ssh -D 1080 root@192.168.1.101
and make sure that proxychains is configured correctly. At the end of the proxychains.conf file I have the line:
socks4 127.0.0.1 1080.
No luck. Is there anything I need to set up in the ubuntu proxy machine in order to make this work?