Port forwarding in Virtualization Station

tonylogic
Starting out
Posts: 10
Joined: Mon May 31, 2021 3:02 pm

Port forwarding in Virtualization Station

Post by tonylogic »

Hi, I'm new to qnap nas. I have a vm in my nas that needs Internet connection but I don't want it to use up one IP address. Is there any function like port forwarding that allows me to do such thing.
Image

As drawn in the image, the nas will get an IP address from my router and assign a local ip to the vm. And when I access 12.34.56.78:910, I want to access to the vm. Is there any ways to do it?
User avatar
dolbyman
Guru
Posts: 34903
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Port forwarding in Virtualization Station

Post by dolbyman »

the vm can either use NAT or bridge mode

if NAT, fordward to the ip of NAS to the port of the vm , if bridge forward to ip and port of the vm

the NAS would still run in a private class c segment ..so the ip for the nas was chosen unfortunate (even if fictional)
tonylogic
Starting out
Posts: 10
Joined: Mon May 31, 2021 3:02 pm

Re: Port forwarding in Virtualization Station

Post by tonylogic »

dolbyman wrote: Mon May 31, 2021 9:48 pm the vm can either use NAT or bridge mode

if NAT, fordward to the ip of NAS to the port of the vm , if bridge forward to ip and port of the vm

the NAS would still run in a private class c segment ..so the ip for the nas was chosen unfortunate (even if fictional)
Hi dolbyman, could you give me an insight where I can set the mode?
User avatar
dolbyman
Guru
Posts: 34903
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Port forwarding in Virtualization Station

Post by dolbyman »

via virtual switch

https://www.qnap.com/en/how-to/tutorial ... on-station

best thing would be to put the VM on a dedicated NIC isolated from the rest of your network, just in case it gets compromised, the hacker would not have access to the rest of your network
tonylogic
Starting out
Posts: 10
Joined: Mon May 31, 2021 3:02 pm

Re: Port forwarding in Virtualization Station

Post by tonylogic »

dolbyman wrote: Mon May 31, 2021 11:29 pm via virtual switch

https://www.qnap.com/en/how-to/tutorial ... on-station

best thing would be to put the VM on a dedicated NIC isolated from the rest of your network, just in case it gets compromised, the hacker would not have access to the rest of your network
Hi dolbeman, I can configure the ip address of the vm to a local network. However, I cannot find the place where I can configure the port forwarding function. Do I need to enable UPnP Port Forwarding page in myQNAPCloud?
User avatar
dolbyman
Guru
Posts: 34903
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Port forwarding in Virtualization Station

Post by dolbyman »

port forwarding is done in your router
wanip:port->lanip:port

always disable upnp in your router..or you might accidentally forward your nas to wan ...lots of people lost their files via ransomware recently..so be very aware of what you are doing
tonylogic
Starting out
Posts: 10
Joined: Mon May 31, 2021 3:02 pm

Re: Port forwarding in Virtualization Station

Post by tonylogic »

dolbyman wrote: Tue Jun 01, 2021 2:14 pm port forwarding is done in your router
wanip:port->lanip:port

always disable upnp in your router..or you might accidentally forward your nas to wan ...lots of people lost their files via ransomware recently..so be very aware of what you are doing
You mean there is no option in the QNAP NAS where I can edit the ports?
If I don't own the router I cannot use port forwarding?
User avatar
dolbyman
Guru
Posts: 34903
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Port forwarding in Virtualization Station

Post by dolbyman »

How is your NAT done if not by a router? ...

Can you outline your setup?
tonylogic
Starting out
Posts: 10
Joined: Mon May 31, 2021 3:02 pm

Re: Port forwarding in Virtualization Station

Post by tonylogic »

There is an option "Enable NAT" under the virtual switch setup and I checked the box. I thought that is how I enable NAT?
I was just hoping to find a function like the one I can choose from oracle virtual box.
Image
User avatar
dolbyman
Guru
Posts: 34903
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Port forwarding in Virtualization Station

Post by dolbyman »

I am talking bout your home network, not the NAS

If you want to reach your NAS from WAN, you need to forward ports via your router...
tonylogic
Starting out
Posts: 10
Joined: Mon May 31, 2021 3:02 pm

Re: Port forwarding in Virtualization Station

Post by tonylogic »

I don't quite understand, I can access the NAS by its ip(12.34.56.78)(I think it's lan). I don't want to connect the NAS to wan though. What I want to do is to use the ip and port of the nas(12.34.56.78:910) to reach the vm(192.168.1.1 in 1st post).
User avatar
dolbyman
Guru
Posts: 34903
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Port forwarding in Virtualization Station

Post by dolbyman »

for that, you need to forward a port from your router via port forwarding to a port/ip on your nas (as said before)

still unknown how your home is setup..what is your router model?
tonylogic
Starting out
Posts: 10
Joined: Mon May 31, 2021 3:02 pm

Re: Port forwarding in Virtualization Station

Post by tonylogic »

dolbyman wrote: Wed Jun 02, 2021 9:38 pm for that, you need to forward a port from your router via port forwarding to a port/ip on your nas (as said before)

still unknown how your home is setup..what is your router model?
It's not my home, it's my office and the router does not belong to us.
So there is no functions like the above photo from oracle virtualbox?
User avatar
dolbyman
Guru
Posts: 34903
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Port forwarding in Virtualization Station

Post by dolbyman »

not sure where virtualbox would come into play... thought we were talking about qnap vm station ..but as I said, without access to your NAT device..there is no port forwarding
tonylogic
Starting out
Posts: 10
Joined: Mon May 31, 2021 3:02 pm

Re: Port forwarding in Virtualization Station

Post by tonylogic »

Yes I am talking about Virtualization Station.
Currently there is a vm running on Windows Oracle Virtualbox in my office.

Use this image as an example. Image
I can now use 10.232.10.185:8085(here 10.232.10.185 is the ip of the Windows pc) to access the port 8084 of the vm(10.0.2.15).
The setting is at Virtualbox, I don't need to modify the router to do this.

If QNAP does not support this, I will just let go and obtain an ip from the router, for example, 10.232.10.186, and use 10.232.10.186:8084 to access the port in the vm.
Post Reply

Return to “Virtualization Station”