Page 1 of 1

Reverse NAT conections...

Posted: 13. Oct 2009, 15:41
by FuriousAngel
Ok, first off, thanks VirtualBox team for making an awesome product. 5 stars.
But there are some simple things that can be added to configuations and/or preferences.
One is the reverse connections to a nat network on a guest sistem.
Seriously why the hell do we have to do it via dos command, I have an extense knowleade of network I did it like it says on the manual but it does not work. Even though I understand the commands placed in cmd I have no Ideia whats wrong. firewalls are off, ip is the same as network mask... I'm lost and given um on making a simple server for tests.

Yes I know there is the brigde network connection or a direct network connection, but I was interesseted in doing it via NAT.

Can somebody help me out?

here is what I did. the objective it to make a smtp getway

Host: windows xp
Guest: windows xp

"cmd" vboxdir
VBoxManage setextradata "maildespammer" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/smtp/Protocol" TCP
VBoxManage setextradata "maildespammer" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/smtp/GuestPort" 25
VBoxManage setextradata "maildespammer" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/smtp/HostPort" 25

no errors

read alittle more and had to change guest IP's working with 192.168.204.x guest: x.x.x.15 gateway: x.x.x.2

no connetion. am I missing something?

Re: Reverse NAT conections...

Posted: 13. Oct 2009, 16:03
by Sasquatch
Guest IP needs to be DHCP. You get 10.0.2.15. You need to know about known ports too, and when you can use them. All ports below 1024 are so called 'known ports' and you need administrative privileges to be able to use them. So unless you are logged on with administrative privileges, what you are doing will never work.
Now, assuming you are running things as admin, you can easily check the NAT forwarding if you telnet to localhost and port 25 from the Host with the Guest running, you should get a connection. If you don't, then either the forwarding is not working, or the Guest isn't running anything on port 25.

Re: Reverse NAT conections...

Posted: 14. Oct 2009, 10:49
by FuriousAngel
Im logged in as admin or in this case my account has admin priv.
I have used telnet but I get a black screen, no response.

I am suposed to telnet what ip? the networks ip or guest ip?

Re: Reverse NAT conections...

Posted: 14. Oct 2009, 10:54
by Sasquatch
If you get a black screen and nothing more, type ehlo or helo, you should get a response from that, after which you can close the command prompt. With a response, it means that the forwarding works properly. With NAT forwarding, you connect to the Host system, because that forwards the data to the VM, just like you forward ports on your home router and connect to the external IP of the router to get to your system inside your LAN.

Re: Reverse NAT conections...

Posted: 20. Oct 2009, 16:29
by FuriousAngel
same result.

No response.

Re: Reverse NAT conections...

Posted: 20. Oct 2009, 16:33
by Sasquatch
Can you do the same on the Guest itself? First connect to localhost, then 10.0.2.15 and then to the Host IP.

Re: Reverse NAT conections...

Posted: 29. Oct 2009, 19:04
by FuriousAngel
sorry for late response, but yes I can connect on guest.