Virtual switch : how to block internet access ?

QNAP NAS solution for server virtualization and clustering/HA/FT
Post Reply
Tryphon
Getting the hang of things
Posts: 57
Joined: Sat Jul 24, 2010 3:02 am

Virtual switch : how to block internet access ?

Post by Tryphon »

Hello,

I use a virtual machine (VM) under Virtualization Station 3. No way to define shared folders like in Virtualization Station 2 ?
Ok, I try to use virtual switch. Fine it's working ... but it's working too much! Whatever I do, I cannot block internet access to my VM : even if I block the MAC address of the network adapter used for the virtual switch in my router settings !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :shock:

What about the security ? I want to give local network access to my VM, and only this.

Your ideas are welcome.

Thank you.

QTS 4.3.3 (TS-653)
User avatar
Moogle Stiltzkin
Guru
Posts: 11445
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

Re: Virtual switch : how to block internet access ?

Post by Moogle Stiltzkin »

i would like to know too please :shock:

*free bump
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)


Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
Tryphon
Getting the hang of things
Posts: 57
Joined: Sat Jul 24, 2010 3:02 am

Re: Virtual switch : how to block internet access ?

Post by Tryphon »

As usually, you make me work Philippe :lol:

Well, about my first try with Virtual Switch, I did not activate the NAT function (third step of the Virtual Switch service Set up). And my VM access to the internet.

I tried to activate the NAT just to see : no difference. I did not map anything by myself ...

Moreover, I cannot see the bridge mode option in the Virtual Switch settings built under QTS 4.3.3 (https://www.qnap.com/en/how-to/tutorial ... ual-switch, 2.e. §).

What I did in the meantime better : banning the virtual MAC address in my router and this blocks the VM access to the internet.

Like Jean-Jacques Goldman said in a song : "c'était mieux avant" when we could simply define shared folders without the need to activate a virtual network adapter for the VM :wink:

But I really prefer to set this inside the NAS and not in my router and especially not in the VM hosting a Windows OS.

Thank you.
Post Reply

Return to “Server Virtualization & Clustering”