How to open range of ports on Windows XP / 2003 Firewall

30/12/2009

Manually opening range of port can be very painful if you must open a big range of ports. It can be easily done with the following script from command prompt:

FOR /L %I IN (5000,1,5010) DO netsh firewall add portopening TCP %I “Passive FTP”%I

This will open ports from 5000 to 5010.

FOR /L %I IN (5000,1,5010) DO netsh firewall delete portopening TCP %I

Thiss will close ports from 5000 to 5010.

Vmware ESX NFS datastore on Windows Server 2008

23/12/2009

So if this is the need for slow file transfers, you can do it that way:

1. Install Services for Network File System (NFS)
Server Manager – Add Roles – File Services – Services for Network File System

2. Edit Local policy(or GPO) to Everyone permissions apply to anonymous users
Administrative tools – Local Security Policy – Local Policies – Security Options – Network Access: Let Everyone permissions apply to anonymous users – Enabled
GPO – Computer Configuration – Policies – Windows Settings – Security Settings – Local Policies – Security Options – Network Access – Network Access: Let Everyone permissions apply to anonymous users – Enabled

3. set NFS to TCP only
Administrative tools – Services for Network File System (NFS) – Server for NFS Properties – Transport protocol to TCP only (default is TCP+UDP)
Reboot server!

4. Create Share and set IP access
Open Folder Properties – NFS Sharing – Manage NFS Sharing – select Share this folder – select Allow anonymous access – set Anonymous UID and Anonymous GID to 0 – Permissions – Add VMKernel IP to Add names, leave read-write, select Allow root access – ok – ok – ok – ok

5. Set datastore on esx server
Go to service console and type: esxcfg-nas -a -o (Windows 2008 IP) -s /(sharename) (datastore_name)

… and now can cpoy ISO images and backup files betwen esx and windows. For virtual machine running you beter to buy dedicated NAS or SAN system.

My first

09/12/2009

First time write this. I was strict against that type of losing time, but… Now I find this useful for paste somewhere some tricks that I learn on work.