Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   10. Backup & Restore (http://quantrinet.com/forum/forumdisplay.php?f=352)
-   -   Backup and Restore Edge Transport Server Role (http://quantrinet.com/forum/showthread.php?t=3642)

hoctinhoc 23-09-2009 08:59 AM

Backup and Restore Edge Transport Server Role
 
Backup and Restore Edge Transport Server Role


Backup And Restore Edge Transport Server Role


A.GIỚI THIỆU:

Edge Transport server role là một thành phần quan trọng trong exchange 2007. Nó đóng vai trò như là gateway cho tất cả các mail gữi ra hay vào công ty. Edge Transport còn là bộ lọc spam mail và virus trước khi chuyển mail vào cho Hub Transport. Vì những lý do trên, nên việc duy trì tính ổn định và liên tục của edge transport là rất quan trọng, nên việc backup edge transport là việc làm không thể thiếu của người quản trị mail server. Bài lab này giới thiệu đến các bạn cách backup và restore EdgeTransport server, khi có sự cố có thể nhanh chóng đưa Edge Transport trở lại làm việc, không làm ảnh hưởng đến hệ thống mail công ty.

B.MÔ HÌNH:

Mô hình lab gồm hai máy:

* Máy Exchange1.nhatnghe.biz : là Domain và DNS, đóng vài trò là Hub Transport, mail box và client access.
* Máy Edge.nhatnghe.biz : là máy stand-alone đóng vai trò Edge transport. Bạn có thể xem cách cài edge tranport server trong bài viết này

Các bước thực hiện:

1. Thiết lập một số anti-spam trước khi backup
2. Backup edge transport
3. Restore edge transport
4. Kiểm tra

C.THỰC HIỆN:

I.Thiết lập Một số Anti-Spam trên Edge Transport Server trước khi backup

1. Attachment Filter Agent (lọc file đính kèm)
Vào Exchange management shell, gõ lệnh Get-TransportAgent kiểm tra xem Attachment Agent được kích hoạt chưa

http://loc.nhatnghe.vn/edge/image001.jpg

Nếu Attachment Agent chưa được kích hoạt sử dụng lệnh Enable-TransportAgent - Identity “attachment Filter Agent” để kích họat
Nếu muốn filter các message chứa file kèm theo có phần mở rộng là .TXT thì gõ lệnh Add-AttachmentFilterEntry –Name *.txt –Type Filename. Tương tự cho file *.doc

http://loc.nhatnghe.vn/edge/image002.jpg

Tạo thông điệp phản hồi cho người gửi bằng lệnh:

http://loc.nhatnghe.vn/edge/image003.jpg

2. Ip Block List

http://loc.nhatnghe.vn/edge/image004.jpg

3. Ip Block List Provider

http://loc.nhatnghe.vn/edge/image005.jpg

4. Content Filter

Filter những mail có từ Sex, ngoại trừ các mail có từ love

http://loc.nhatnghe.vn/edge/image006.jpg


II.Backup Edge Transport

1. Tại Exchange management Shell, chuyển vào folder c:\Program Files\Microsoft\Exchange server\scripts rồi gõ lệnh: ExportEdgeConfig.ps1 –CloneConfigData:”c:\backup.xml”[IMG]

http://loc.nhatnghe.vn/edge/image007.jpg

2.Giả lập Edge transport bị lỗi

a.Trên Edge Transport server xóa tất cả các cấu hình Anti-spam.
b.Tại edge transport server vào management shell gõ lệnh Remove-AttachmentFilterEntry –Identify filename:*.txt và lệnh Remove-AttachmentFilterEntry –Identify filename:*.doc. Để xóa filter các file có phần mỡ rộng là *.txt và *.doc.

http://loc.nhatnghe.vn/edge/image008.jpg

Dùng lệnh Get-AttachmentFilterEntry để xem lại

http://loc.nhatnghe.vn/edge/image009.jpg

c.Trên máy Exchange1 vào Organization Configuration\Hub Transport chọn tab Edge Subscriptions remove Edge

http://loc.nhatnghe.vn/edge/image010.jpg

III.Restore Edge Transport

1.Tạo file Answer file từ file c:\backup.xml đã tạo trong phần backup:
Tại Edge transport server,vào Exchange management Shell, chuyển vào folder c:\Program Files\Microsoft\Exchange server\scripts gõ lệnh ImportEdgeConfig.ps1 –CloneConfigData:”c:\backup.xml” –IsImport $false –CloneConfigAnswer “c:\Answer.xml”

http://loc.nhatnghe.vn/edge/image011.jpg

Mở file Answer để xem

http://loc.nhatnghe.vn/edge/image012.jpg

2.Khôi phục lại cầu hình cho Edge Transport:

- Tại management shell gõ lệnh ImportEdgeConfig.ps1 –CloneConfigData:”c:\backup.xml” –IsImport $True –CloneConfigAnswer “c:\Answer.xml”, enter ấn A (all) để phục hồi cấu hình Cho Edge Tranport.

3.Kiểm tra:
Kiểm tra các lại các thiết lập Anti-Spam (Ip block list, Ip block list Provider, content filter) đã có lại các giá trị ban đầu.
Dùng lệnh Get-AttachmentFilterListConfig để xem lại thông điệp

http://loc.nhatnghe.vn/edge/image013.jpg

Dùng lệnh Get-AttachmentFilterEntry để xem lại các file kèm theo, thấy vẫn còn filter các file *.txt và *.doc

http://loc.nhatnghe.vn/edge/image014.jpg

4.Tạo lại file đồng bộ giữa Edge Transport và Exchange1:
Tại Edge Transport server vào management shell gõ lệnh New-EdgeSubscription –file “c:\edge.xml”. để tạo file edge.xml

http://loc.nhatnghe.vn/edge/image015.jpg


5.Copy file Edge.xml từ máy Edge transport server sang máy exchange1.

6.Tại máy exchange1 vào Organization Configuration\Hub Transport chọn tab Edge Subscriptions chọn New Edge Subscription

http://loc.nhatnghe.vn/edge/image016.jpg

Ấn Browse chọn file Edge.xml mới copy từ edge transport sang. ấn new

http://loc.nhatnghe.vn/edge/image017.jpg


http://loc.nhatnghe.vn/edge/image018.jpg

Tại máy Exchange1 vào management shell gõ lệnh Start-EdgeSynchronization để đồng bộ exchange1 và Edge Transport server

http://loc.nhatnghe.vn/edge/image019.jpg

Hoàn tất việc restore Edge transport server
__________________

Chung Tấn Lộc (Nhất Nghệ)

:battay:

http://quantrinet.com/ads/quantrinet1.png


Bây giờ là 06:05 AM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.