Page 1 of 1

NAT network and port forwarding

Posted: 2. Nov 2015, 15:07
by Pf34jj
Hi,

I've been reading and searching to find whether what I want is possible but I can't really find an answer.

Can I configure a NAT network to forward guest traffic to a SOCKS proxy running on the host?

Long story. I've setup an SSH with dynamic tunnel on port 8080. In a browser on the host I can configure a SOCKS proxy on 127.0.0.1 port 8080 and it works fine.

In Virtualbox I configure a NAT network with subnet range 192.169.1.0 and forward TCP/UDP 53 for DNS, 80 and 443 for internet traffic to 127.0.0.1 port 8080.

It's not working as I expected. I'm not even getting an ip address in 192-range. Am I doing something wrong or it this simply not possible?

The reason I want to do this is because my host is behind a proxy that I can't use from within the virtual machine. I was hoping this would be a way around it.

Thanks.