Thursday, August 11, 2011
Cisco DHCP Snooping
Friday, August 5, 2011
Remote change power settings
you can use it if need change power settings for remote computer
get info about remote power pc settings:
PsExec.exe \\rcomputer powercfg -query
disable sleep timeout:
PsExec.exe \\rcomputer powercfg -change -standby-timeout-ac 0
other interesting options:
powercfg -change -monitor-timeout-ac 0
powercfg -change -monitor-timeout-dc 0
powercfg -change -disk-timeout-ac 0
powercfg -change -disk-timeout-dc 0
powercfg -change -standby-timeout-ac 0
powercfg -change -standby-timeout-dc 0
powercfg -change -hibernate-timeout-ac 0
powercfg -change -hibernate-timeout-dc 0
Remote enable Remote Desktop
This example show how you can use PsExec for enable Remote Desktop remotely
Enable RDP:
PsExec.exe \\remotepc reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0
Enable RDP through firewall:
PsExec.exe \\remotepc netsh firewall set service remoteadmin enable
PsExec.exe \\remotepc netsh firewall set service remotedesktop enable
Tuesday, July 12, 2011
Cisco IOS clock settings
set correct time zone:
clock timezone PCTime -8
set summer time old ios:
clock summer-time PCTime date Mar 13 2011 2:00 Nov 6 2011 2:00
New IOS have other nice settings, it's need setup just one time:
clock summer-time CDT recurring
set ntp server:
ntp server XXX.XXX.XXX.XXX
set clock:
clock set 10:30:00 Jul 12 2011
show clock:
show clock
Monday, July 11, 2011
VPN syslog error
If vpn is up but you have errors log
%CRYPTO-4-PKT_REPLAY_ERR: decrypt: replay check failed
for fix it add to router
crypto ipsec security-association replay window-size 1024
Friday, July 8, 2011
Change your Windows MTU
Flexible NetFlow for IOS
If you use vpn links standart netflow don't work with vpn links. You need use flexible netflow.
It works well with vpn links. Update your IOS if your router don't support it.
Example:
flow exporter NETFLOW1-EXPORTER
description NetFlow Analyzer
destination 172.16.0.1
source Loopback0
output-features
transport udp 9996
export-protocol netflow-v9
!
!
flow exporter NETFLOW2-EXPORTER
description Scrutinizer
destination 172.16.0.2
source Loopback0
output-features
transport udp 9996
export-protocol netflow-v9
!
!
flow monitor NETFLOW1
record netflow-original
exporter NETFLOW2-EXPORTER
exporter NETFLOW1-EXPORTER
cache timeout active 1
!
!
interface Tunnel12
ip flow monitor NETFLOW1 input
ip flow monitor NETFLOW1 output
!
!
interface FastEthernet1
ip flow monitor NETFLOW1 input
ip flow monitor NETFLOW1 output