Wednesday, May 23, 2012

Cisco ASA IPSec VPN Client Access Configuration


ip local pool VPN-POOL 10.0.0.193-10.0.0.206


access-list VPN_splitTunnelACL standard permit 10.0.0.0 255.255.255.0
access-list inside_nat0_outbound extended permit ip 10.0.0.0 255.255.255.0 10.0.0.192 255.255.255.240




nat (inside) 0 access-list inside_nat0_outbound


crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set transform-set ESP-3DES-SHA
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set security-association lifetime seconds 28800




crypto map outside_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
crypto map outside_map interface outside
crypto isakmp identity hostname
crypto isakmp enable outside
crypto isakmp policy 10
 authentication pre-share
 encryption 3des
 hash sha
 group 2
 lifetime 86400




group-policy VPNGROUP internal
group-policy VPNGROUP attributes
 dns-server value 8.8.8.8 4.2.2.2
 vpn-tunnel-protocol IPSec
 split-tunnel-policy tunnelspecified
 split-tunnel-network-list value VPN_splitTunnelACL


tunnel-group VPNGROUP type remote-access
tunnel-group VPNGROUP general-attributes
 address-pool VPN-POOL
 default-group-policy VPNGROUP
tunnel-group VPNGROUP ipsec-attributes
 pre-shared-key 12345678







Thursday, September 29, 2011

Hyper-V VSS Writers Missing

http://social.technet.microsoft.com/forums/en-US/winserverhyperv/thread/3369d2e0-c5ef-47ed-aa75-862e17fd4e53


This is a known issue when orphaned configuration files or broken symbolic links exist.

To get around this you can try deleting the broken symbolic links:

Locate to the path "C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\" (you need to enable the Show hidden files and folders). Compare each symbolic link (these .xml files are actually symbolic links) with your existing virtual machine, find out which .xml file is orphaned and then delete it. After this, restart the VMMS service.



Monday, August 8, 2011

Delete folder with long path

http://www.windowsitpro.com/article/jsifaq/jsi-tip-9651-how-can-i-delete-a-folder-that-returns-path-too-long-


When you attempt to delete a folder and receive PATH TOO LONG, you would normally Use the 8.3 short name, unless it has been disabled. Type dir /x . If the 8.3 path is too long, start renaming parent folders until the path is short enough.

I have scripted DelFolder.bat to delete a folder, even if the path is too long.

The syntax for using DelFolder.bat is:

DelFolder FolderPath

Where FolderPath is the path to the folder you wish to delete.

NOTE: DelFolder.bat uses RoboCopy.exe, which must be located in a folder that is in your PATH.

DelFolder.bat contains:


@echo off if {%1}=={}

@echo Syntax: DelFolder FolderPath&goto :EOF
if not exist %1 @echo Syntax: DelFolder FolderPath - %1 NOT found.&goto :EOF
setlocal
set folder=%1
set MT="%TEMP%\DelFolder_%RANDOM%"
MD %MT%
RoboCopy %MT% %folder% /MIR
RD /S /Q %MT%
RD /S /Q %folder%
endlocal