Reverse NAT conections...

Discussions related to using VirtualBox on Windows hosts.
Post Reply
FuriousAngel
Posts: 5
Joined: 24. Jan 2008, 12:03

Reverse NAT conections...

Post 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?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Reverse NAT conections...

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
FuriousAngel
Posts: 5
Joined: 24. Jan 2008, 12:03

Re: Reverse NAT conections...

Post 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?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Reverse NAT conections...

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
FuriousAngel
Posts: 5
Joined: 24. Jan 2008, 12:03

Re: Reverse NAT conections...

Post by FuriousAngel »

same result.

No response.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Reverse NAT conections...

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
FuriousAngel
Posts: 5
Joined: 24. Jan 2008, 12:03

Re: Reverse NAT conections...

Post by FuriousAngel »

sorry for late response, but yes I can connect on guest.
Post Reply