VBox 4.0 Can't use same port for TCP & UDP forwarding

This is for discussing general topics about how to use VirtualBox.
Post Reply
appyface
Posts: 79
Joined: 13. Sep 2009, 21:31
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: XP W7 Linux

VBox 4.0 Can't use same port for TCP & UDP forwarding

Post by appyface »

Using 4.0.0.r69151 (Win7 Pro 64-bit host/XP Pro SP3 32-bit guest).

I can no longer use same port for both TCP and UDP in 4.0?

These are my rule commands, they worked right up to last 3.x version (used to be done with 'setextradata' in early 3.x verison, then later on changed to 'modifyvm'):

Code: Select all

VBoxManage.exe modifyvm "my_vm" --natpf1 "tcp_pf",tcp,,32512,,32512
VBoxManage.exe modifyvm "my_vm" --natpf1 "ucp_pf",udp,,32512,,32512
Now with 4.0 I can only set both rules if each uses a different port. I checked the Help for 4.0 but did not find info stating this is a restriction now.

How can I use the same port number for both TCP and UDP traffic in 4.0 version? Help is appreciated, thank you :-)

Kind regards,
--appyface

EDIT: Bugtracker ticket #8094 opened for this issue.
Last edited by appyface on 16. Jan 2011, 17:21, edited 2 times in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox 4.0 Can't use same port for TCP & UDP forwarding

Post by Perryg »

Did you try setting them in the GUI (main VBox program) and network settings for the guest (under advanced)?
Or if in CLI read this http://www.virtualbox.org/manual/ch06.html#natforward
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VBox 4.0 Can't use same port for TCP & UDP forwarding

Post by Sasquatch »

I just tested it myself through the GUI, the second rule is NOT applied. It just vanished from the rule list. This looks like a bug, report it in the Bugtracker (separate account needed), so the devs know about it and can fix it.
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.
appyface
Posts: 79
Joined: 13. Sep 2009, 21:31
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: XP W7 Linux

Re: VBox 4.0 Can't use same port for TCP & UDP forwarding

Post by appyface »

Will do. Thank you Sasquatch.

Kind regards,
--appyface

EDIT: Bugtracker ticket #8094 opened for this issue.
Post Reply