Closed o-alex closed 6 years ago
Hi there,
Thanks for reporting this bug. I'm sure this was a real issue when originally reported (our fault for not looking sooner!) but there have been multiple Vagrant releases since the original report. I'm going to close this issue now and request you reopen the issue if you're still experiencing this problem. I'm sorry this wasn't looked at earlier :frowning_face:
Cheers!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Vagrant version
Vagrant 1.8.5
Host operating system
CentOS Linux 7
Guest operating system
Ubuntu 14.04.5 LTS
Vagrantfile
Expected behavior
Ports 40100,40200,40300 have udp traffic forwarded to same port from guest to host. Outgoing traffic(originating from guest) on guest port 40100 is expected to be forwarded to host port 40100 and then further to the destination. Also any incoming traffic coming to host port 40100 is expected to be forwarded to guest port 40100.
Actual behavior
If first traffic through forwarded udp port is outgoing, the mapping is not created correctly and a random host port is assigned. Example: outgoing traffic through guest port 40100 is forwarded through random host port to the destination. If first traffic through forwarded udp port is incoming, the mapping works correctly Example: if no traffic is going outside on lets say 40200 and the first traffic through the port is incoming traffic (outside to host to guest on port 40200) the mapping works correctly even for future outgoing traffic.
vagrant port -debug shows:
Steps to reproduce
The testing is done with simple netcat and wireshark
wireshark on remote machine shows incoming package on random port instead of 40100
Incoming traffic works as expected and after this, the outgoing traffic also works as expected:
On remote machine: nc -lu
On vagrant guest
nc -u -p 40200
Wireshark shows traffic correctly coming from host port 40200