Zombie Chicken Blog

The Official weblog of Zombie Chicken International

Kyle on the pfSense board created these instructions. Thanks Kyle.

Sonicwall first.

Click VPN

Name can be anything.

Network tab same window.

You will need to create a new network object, mine is called SLSC.Net. Make it a network object and put in your pFSense Local Subnet ie 10.10.10.0 255.255.255.0

Proposals tab same vpn window. Make everything exactly as you see here. Be sure to check Perfect Forward Secrecy and use GP2

Advanced tab same vpn window. Click ok when done with this step.

_________________________________________________

pFSense Setup side.

Create new vpn.

Phase 1 PF. Make sure you add the 28800 also.

Phase 2 PF. Be sure to uncheck everything not checked in the picture.

Click Preshared Keys and add a new one. YOURKEY is the same as the tunnels preshared key. IP is the IP of the PFSENSE you are currently on, same as wan address. ie 24.111.111.111 is public of the pF box then put that in there. This identifies to the sonicwall.

Lastly add firewall rules in PF to allow traffix via IPSEC.

There are 4 locations in the script that check for the version, not just one.

Do a global search/replace and change:

($vima_ver eq “4.1.0″) –> ($vima_ver eq “4.1.0″ || $vima_ver eq “5.0.0″)

# ln -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib64/mozilla/plugins/libflashplayer.so

Installing skype on Fedora 13 x86_64 is quite messy. I have to install all i686 dependencies packages in order to make skype run.

To put it simple, you can perform it in a single commandline to install skype onto your Fedora Linux Machine after STEP-1 by issuing below command:

yum list glibc.i686 alsa-lib.i686 libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686

Install any of the above listed as Available. You can do this before or after loading Skype.

Test Line

csvde -f outputfilename.csv -d “dc=domain,dc=com” -r “(&(mailnickname=*)(proxyAddresses=smtp:foo@domain.com))” -l name

This works with W2K8R2 and Exchange 2010 also.

Exchange Management shell:

Get-Recipient -Filter “EmailAddresses -eq ‘info@addedvaluetech.com’”

You can replace the -eq filter with -like and use wildcard email addresses.

Method 1

If you have a backup of the store that is inconsistent, you can restore from the backup file, and then mount the store.

Method 2

Repair the information store:

  1. At a command prompt, change to the drive:\Program Files\Exchsrvr\Bin folder, where drive is the letter of the drive on which Exchange is installed. Use one of the following commands:
    • If you are trying to restore the mailbox store, type eseutil /p “drive:\Program Files\Exchsrvr\MDBDATA\priv1.edb”, and then press ENTER.
    • If you are trying to restore the public folder store, type eseutil /p “drive:\Program Files\Exchsrvr\MDBDATA\pub1.edb”, and then press ENTER.
  2. At the command prompt, type eseutil /mh “drive:\Program Files\Exchsrvr\MDBDATA\priv1.edb” (or pub1.edb), and then press ENTER to verify the consistency information that is returned.
  3. At the command prompt, type eseutil /d “drive:\Program Files\Exchsrvr\MDBDATA\priv1.edb” (or pub1.edb), and then press ENTER to defragment and to compact the database.
  4. At the command prompt, type ISINTEG -S Server_Name -FIX -TEST ALLTESTS, and then press ENTER. Repeat this several times until it reports zero fixes and zero errors.
  5. Mount the store.
  6. Back up the store.

Link:  http://support.microsoft.com/kb/327156

Method 2: Use Adsutil.vbs
1.Back up your IIS Metabase. To do this, follow these steps: •Start IIS Manager.
•Right-click Default Web Site, point to All Tasks, and then click Save Configuration to a File.

2.Delete the virtual directories for Outlook Web Access. To do this, right-click Exadmin in the left pane of IIS Manager, and then click Delete. Click Yes when you are prompted with the question of whether you want to delete this item.

Repeat this step for the following virtual directories: ◦Exchange
◦ExchWeb
◦Microsoft-Server-ActiveSync
◦OMA
◦Public

3.Quit IIS Manager.
4.Click Start, click Run, type cmd, and then press ENTER.
5.Change to the following folder. In this example, Drive is the hard disk drive where Windows is installed:
Drive:\inetpub\adminscripts

6.Type adsutil, and then press ENTER.

Important By default, CScript is not the default scripting host for Windows Server 2003. To run the adsutil command, CScript must be configured as the default scripting host. To do this, click Yes if you are prompted to register CScript as you default host for VBscript, and then click OK.

Note If you receive a list of adsutil command options, CScript is already configured as the default scripting host for VBscript.
7. Type adsutil delete ds2mb, and then press ENTER.

Note To set the default scripting host to WScript, type WScript //H:WScript at the command prompt, press ENTER, and then click OK.
8.Click Start, point to All Programs, point to Administrative Tools, and then click Services.
9.To restart the Microsoft Exchange System Attendant service, follow these steps: • Click Start, click Run, type services.msc, and then click OK.
• Right-click Microsoft Exchange System Attendant, and then click Restart.
• When you are prompted to restart the dependant Exchange Server services, click Yes.

Note When you restart the Microsoft Exchange System Attendant service, the Microsoft Exchange Information Store service is also restarted. In this scenario, your Exchange Server users lose connectivity to their Exchange Server mailboxes.

The virtual directories are re-created. To verify that the virtual directories are re-created, start IIS Manager, and then view the Default Web site folder.

Important If the virtual directories are not re-created after 15 minutes, restart the computer.

10.Reset the access permissions to Anonymous. To do this, follow these steps:•Start IIS Manager, right-click ExchWeb, click Properties, and then click the Directory Security tab.
•Under Authentication and access control click Edit, and then verify that the Enable anonymous access check box is turned on.
•Click to select the Integrated Windows authentication check box, click OK, and then click Apply.
•If an Inheritance Overrides dialog box appears, click Select All, and then click OK.
•Under Authentication and access control, click Edit, and then click to clear the Integrated Windows authentication check box.
•Click OK two times, and then quit IIS Manager.

Use a Web browser to verify that you can connect to your Outlook Web Access server. If you are also running other mobility services, verify that you can connect to these services by using an appropriate client.

Source Link: http://support.microsoft.com/kb/883380

Use eseutil to fix dirty shutdown

  1. Change to the directory where the database and logs were restored to.

NOTE: The following examples assume the database and logs are in the E:\RestoredExchange\Test Database directory and the log file prefix is E02.

  1. Run Eseutil /ml “E:\RestoredExchange\Test Database\E02”
  2. Review the results of the command and if the log files are healthy run command below. If log files are not healthy run restore again.
  3. Run Eseutil /r E02 /l “E:\RestoredExchange\Test Database” /d “E:\RestoredExchange\Test Database”

To start configure, type in the console(in this example, my ESXi IP is  192.168.117.116, destination is 192.168.117.115:

vicfg-snmp.pl –server 192.168.117.116 -c public -t  192.168.117.115@162/public

insert the esxi username and password.

To enable it type:

vicfg-snmp.pl –server 192.168.117.116 -E

To show config:

vicfg-snmp.pl –server 192.168.117.116 -s

~ # vim-cmd vmsvc help
Commands available under vmsvc/:
acquiremksticket          get.configoption          power.off
connect                           get.datastores               power.on
convert.toTemplate      get.disabledmethods  power.reboot
convert.toVm                get.environment          power.reset
createdummyvm           get.filelayout               power.shutdown
destroy                            get.guest                       power.suspend
device.connection        get.guestheartbeatStatus  reload
device.connusbdev      get.managedentitystatus   setscreenres
device.disconnusbdev get.networks              snapshot.create
device.diskadd              get.runtime                   snapshot.dumpoption
device.diskaddexisting get.snapshotinfo        snapshot.get
device.diskremove         get.summary               snapshot.remove
device.getdevices         get.tasklist              snapshot.removeall
device.toolsSyncSet       getallvms                 snapshot.revert
device.vmiadd             gethostconstraints        snapshot.setoption
device.vmiremove          login                     tools.cancelinstall
devices.createnic         logout                    tools.install
get.capability            message                   tools.upgrade
get.config                power.getstate            unregister
get.config.cpuidmask      power.hibernate           upgrade