[Solved]Can't get my VPN to work on a specific port...

Discussions related to using VirtualBox on Linux hosts.
Post Reply
tigercorp
Posts: 7
Joined: 12. Sep 2008, 02:27

[Solved]Can't get my VPN to work on a specific port...

Post by tigercorp »

Hi,

I've got Virtualbox 1.6.4 running on Hardy Heron.

An XP guest has the Cisco VPN client 5.0... installed and will connect out of the box using UDP.

*** I need it to work on TCP port 10000 ***


The XP guest can access the internet fine using NAT and I would prefer to NAT rather than bridge.

The Hardy host can telnet to the vpn server on port 10000.
There's no firewall set up on the host and its switched off on the guest.

I've set up port forwarding for TCP 10000.
Running "VBoxManage getextradata XP-Work enumerate" returns

Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/vpn_10k/HostPort, Value: 10000
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/vpn_10k/GuestPort, Value: 10000
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/vpn_10k/Protocol, Value: TCP


Anyone got any trouble shooting ideas?
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

Post by Sasquatch »

VPN traffic should work with NAT. I don't know if the Cisco VPN Client actually works right with NAT. You can try searching here on the forums, as other users have VPN with NAT without issues.
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.
tigercorp
Posts: 7
Joined: 12. Sep 2008, 02:27

Post by tigercorp »

It does actually work with NAT -> it works when UDP is the protocol.

Because of that I'm thinking my question is more a port forwarding one. Does my port forwarding setup look right? Is there any trouble shooting steps I can do to check that port forwarding is working?

I've searched the forums but can't find anyone with a similar problem. I'm thinking I might try bidging/Host Interface Networking if I don't get any joy from this thread...
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

Post by Sasquatch »

Your port forwarding looks just fine. You can test this if you enable a service like RDP or a webserver (default install of XP also has telnet which you can set up, though might not be available on Home, just like RDP) on that port and try to connect from the outside to it using the Hosts IP address (you can use localhost if you try it from the host itself).
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.
tigercorp
Posts: 7
Joined: 12. Sep 2008, 02:27

Post by tigercorp »

Thanks for the suggestion.

I can telnet from the guest to the vpn server on port 10000 so it seems the port forward does work.

The bare hardware is set up with dual boot Ubuntu and XP so I've tried using the same vdi with the XP host. Set up port forward, telnet from guest works ok but still not the vpn. Again, vpn over UDP works fine.

BTW, the vpn works fine on port 10000 from the XP host.
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

Post by Sasquatch »

What if you remove the port forwarding rule? As you state, using UDP works and the forwarding is set for TCP.
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.
tigercorp
Posts: 7
Joined: 12. Sep 2008, 02:27

Post by tigercorp »

With no port forwarding I can still telnet from the guest to the vpn server on 10000.
Vpn still doesn't work.
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

Post by Sasquatch »

And if you use a port lower than 10000? IIRC, there was an issue with port forwarding and high port numbers.
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.
tigercorp
Posts: 7
Joined: 12. Sep 2008, 02:27

Post by tigercorp »

The VPN server only accepts connections on TCP 10k, 443, 80 and 22 which don't work from the guest.


I've finally gotten round to trying Host Interface Network with Bridging and that works fine for all ports, so I guess I'm going to just go with that and not use NAT.

Thanks for the help Sasquatch, can you please mark this as solved?
Post Reply