Page 1 of 1
NAT: Failed to redirect TCP Windows 10
Posted: 20. Sep 2016, 23:10
by Hotdog12
Hi,
Unable to do portforwarding with NAT can anyone help, here is a copy of the log:
Code: Select all
00:00:01.261106 SUP: Loaded VMMR0.r0 (C:\Program Files\Oracle\VirtualBox\VMMR0.r0) at 0xfffff800dd470000 - ModuleInit at fffff800dd4935d0 and ModuleTerm at fffff800dd493ac0 using the native ring-0 loader
00:00:01.388089 Driver <string> = "NAT" (cb=4)
00:00:01.508092 SUP: Loaded VBoxDDR0.r0 (C:\Program Files\Oracle\VirtualBox\VBoxDDR0.r0) at 0xfffff800dd590000 - ModuleInit at 0000000000000000 and ModuleTerm at 0000000000000000 using the native ring-0 loader
00:00:01.535390 NAT: Guest address guess set to 10.0.2.15 by initialization
00:00:01.538079 NAT: DNS#0: 188.120.239.115
00:00:01.538087 NAT: DNS#1: 8.8.8.8
00:00:01.561154 NAT: Failed to redirect TCP 127.0.0.1:2222 -> 0.0.0.0:22 (Unknown error)
00:00:07.757271 NAT: IPv6 not supported
00:00:07.780687 NAT: DHCP offered IP address 10.0.2.15
00:00:07.781020 NAT: DHCP offered IP address 10.0.2.15
00:00:10.469534 NAT: Link up
Kind regards
hotdog12
Re: NAT: Failed to redirect TCP Windows 10
Posted: 21. Sep 2016, 11:57
by Spirit-RC
This error:
Failed to redirect TCP 127.0.0.1:2222 -> 0.0.0.0:22
looks very suspicious to me. Tell me you are not actually trying to redirect to 0.0.0.0:22, please.
Because if you do, then it means that you misunderstand the concept of port forwarding.
You may only set up port forwarding knowing the exact destination beforehand.
Think about it, how the system is supposed to guess which host you want to connect to when you reach your localhost at port 2222 ?
It just has no means of doing so. So forwarding to 0.0.0.0:22 is plain incorrect.
If you don't in your configuration try to redirect to 0.0.0.0:22, then it must be some bug.
Re: NAT: Failed to redirect TCP Windows 10
Posted: 21. Sep 2016, 12:15
by Hotdog12
Nope, this is purely virtual box setting up a box. I have not preset any port forwarding with those details.
Any other suggestiins?
Re: NAT: Failed to redirect TCP Windows 10
Posted: 21. Sep 2016, 13:35
by socratis
I'd like to see the "recipe" of the VM, the ".vbox" file:
- Right-click on the VM in the VirtualBox Manager. Select "Show in Explorer".
- ZIP the selected ".vbox" file and attach it in your response.
Re: NAT: Failed to redirect TCP Windows 10
Posted: 21. Sep 2016, 13:40
by Hotdog12
Not a problem I'll sort that this evening.
Re: NAT: Failed to redirect TCP Windows 10
Posted: 21. Sep 2016, 23:19
by Hotdog12
Here we go as promised, any info that can help is greatly appreciated
Re: NAT: Failed to redirect TCP Windows 10
Posted: 22. Sep 2016, 10:23
by socratis
Hmm... I can't see anything wrong with the rule itself. There is a difference in the recipe (.vbox) between your VM and a test VM that I made. Yours are:
while mine are:
Funny thing is I don't know how to change this additional setting from the GUI. For the CLI I assume that you used "VBoxManage modifyvm <VM> --natdnsproxy1 on".
Here are the relevant parts from the logs. Yours:
and mine
You see that both in the configuration and in the logs, the differences are in the DNS. You obviously changed something in the DNS configuration for the VM. I'm not sure if and how it affects it. It shouldn't, but that as far as my limited experience can go.
Finally, I see a couple of unusual settings in the .vbox:
Did you create the VM in VirtualBox? Or did you use a 3rd party tool (Vagrant, Docker, etc)?
Re: NAT: Failed to redirect TCP Windows 10
Posted: 22. Sep 2016, 10:28
by Hotdog12
Under extra I have used vagrant, hence the sync folder. However this issue is preventing the syncing happening.
Any tips I can do to resolve this?
Re: NAT: Failed to redirect TCP Windows 10
Posted: 22. Sep 2016, 10:30
by Hotdog12
Also thanks for the help, this is helping me narrow this down a lot further.
Re: NAT: Failed to redirect TCP Windows 10
Posted: 22. Sep 2016, 10:36
by socratis
Hotdog12 wrote:Any tips I can do to resolve this?
Yes, build a VM from scratch from within VirtualBox alone. Vagrant is a program that relies on VirtualBox but modifies its configuration files in unknown ways to us. It is not supported on these VirtualBox user forums, they have their own
vagrant support channels. If you are having this problem with a standalone version of VirtualBox, then we can continue this discussion.
Re: NAT: Failed to redirect TCP Windows 10
Posted: 22. Sep 2016, 10:38
by Hotdog12
Okay so to understand vagrant sets the xml up (.vbox file) and virtual box just simply runs that configuration?
Re: NAT: Failed to redirect TCP Windows 10
Posted: 22. Sep 2016, 10:41
by socratis
I have no clue. I have never used Vagrant.
Re: NAT: Failed to redirect TCP Windows 10
Posted: 22. Sep 2016, 10:46
by Hotdog12
Okay no problem. The info you have isolated should allow me to investigate this further. I'll add any new information I find out just so it's documented