slide reverse proxy

Upload: khanh-hung-nguyen

Post on 05-Apr-2018

226 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Slide Reverse Proxy

    1/16

    BO COTHC TP CHUYN NGNH

    ti: Nghincu gii php m rng ca kin trcclient-server:Kintrc proxyngc

    Gio vinhng dn: TS. HQucTrungSinh vinthc hin:

    NguynKhnhHng 20081279 TTM-K53

    7/10/2012 Kin trc proxy ngc 1

  • 7/31/2019 Slide Reverse Proxy

    2/16

    Nidung

    I. Gii thiuchung v kintrc client-server II.Kintrc reverse proxy (proxyngc)

    1. Gii thiuchung 2. Reverse proxybo v 3. Reverse proxy tchhp

    III.Cuhnh th nghim IV.Kt lun

    7/10/2012 Kin trc proxy ngc 2

  • 7/31/2019 Slide Reverse Proxy

    3/16

    I.Gii thiuchungv kintrc client-server L m hnh ni ting trong mng my tnh, c p dng

    rng ri trong mi trang web. Client: gi yu cu, nhn kt qu v hin th cho ngi

    s dng. Server: lng nghe, nhn yu cu, x l v tr li

    7/10/2012 Kin trc proxy ngc 3

  • 7/31/2019 Slide Reverse Proxy

    4/16

    I.Gii thiuchungv kintrc client-server Nhc im:

    Do phitrao i d liu gia 2 my 2 khuvc khc nhau nn d dng xy ra hin tng thng tintruyn trn mng b l. Do vy khngm bo tnh an ton vbo mtthng tin.

    Ddng li dngcc l hng bo mt ca server. Gp vn nghn c chai khitruyn d liu gia client v server. Vn cn bng titrong m hnhnhiuserver. Hng a chURL khi server thayi. ..

    gii quyt vn ny S dng reverse proxy .

    7/10/2012 Kin trc proxy ngc 4

  • 7/31/2019 Slide Reverse Proxy

    5/16

    II.Kintrc reverse proxy (proxyngc)

    1. Gii thiuchung L thit b ng gia mtserver v tt c cc client m serverphc

    v; m bo an ton cho server. Khc vi forward proxyng gia 1 client v tt c server m

    client truycp n; m bo an ton cho client. Tireverse proxys kimsot, lc b cc request khnghp lv

    lun chuyncc request hp l ti ch cuicng l cc server. Reverse proxy cth n v che du s tn ti ca server Khi clientt Internet truycp v web server, reverse proxyng vai

    tr l web server. Clientch giao tip trc tip vi proxy server.Reverse proxys chuyn yu cu t client ti web server v p litheo chiu ngc li.

    C 2 m hnh reverse proxy: Reverse proxybo v.

    Reverse proxy tchhp.

    7/10/2012 Kin trc proxy ngc 5

  • 7/31/2019 Slide Reverse Proxy

    6/16

    II.Kintrc reverse proxy (proxyngc) 2. Reverse proxy bo v

    7/10/2012 Kin trc proxy ngc 6

  • 7/31/2019 Slide Reverse Proxy

    7/16

    II.Kintrc reverse proxy (proxyngc) 2. Reverse proxybo v

    Dng lc tt c cc yu cu, ch nhng yu cu v hi c gi tiserver

    C th s dngdanh sch lc en v lc trng lcyu cu + DSen: ch lc nhng yu cu c hitrong danh schca n + DS trng: ch cho php nhng yu cu trong danh sch.

    7/10/2012 Kin trc proxy ngc 7

  • 7/31/2019 Slide Reverse Proxy

    8/16

    II.Kintrc reverse proxy (proxyngc) 2. Reverse proxybo v

    Nguyn tc hot ng Qu trnhkimtra mtyu cu hp l

    7/10/2012 Kin trc proxy ngc 8

  • 7/31/2019 Slide Reverse Proxy

    9/16

    II.Kintrc reverse proxy (proxyngc) 2. Reverse proxybo v

    Nguyn tc hot ng Qu trnhngn chn mtyu cu khnghp lv c hi

    7/10/2012 Kin trc proxy ngc 9

  • 7/31/2019 Slide Reverse Proxy

    10/16

    II.Kintrc reverse proxy (proxyngc) 2. Reverse proxybo v

    Li ch khi s dng reverse proxy bo v K tnkhng thkhai thctrc tip l hng ca backend server Cn tr s ly lan worm trn Internetbng cch chn yu cu gi i t

    server. Lccc yu cu gipngn cn vic li dng l hng ca web server Nguy c gp phi khi s dng reverse proxy bo v

    Danh sch en ch khc phc c nhng li c bit n. Danh sch trngkhnghiu qukhi backend server thayi. Lmtng trkhitruyntin. Nureverse proxylith s khng th truycp c vo web site. Tnchi phphn cng, phn mmv cu hnh.

    7/10/2012 Kin trc proxy ngc 10

  • 7/31/2019 Slide Reverse Proxy

    11/16

    II.Kintrc reverse proxy (proxyngc) 3. Reverse proxy tchhp

    7/10/2012 Kin trc proxy ngc 11

  • 7/31/2019 Slide Reverse Proxy

    12/16

    II.Kintrc reverse proxy (proxyngc) 3. Reverse proxy tchhp

    Cho php phi hp tt c cc web server nh nhng backendserver vi mt a ch chung ca reverse proxy.

    Li ch khi s dng reverse proxy tch hp Ngi dng trn Internetch bit n 1 tn v 1 a ch IP ca reverseproxy. Cu trcmng ca nhng backend serverc n. Gi c cc trang nh du v linktURL. Gip cnbng ti.

    Tit kimchi ph chochng ch SSL v ch c mt a ch IP hay mt host c kt ni ti Internet.

    7/10/2012 Kin trc proxy ngc 12

  • 7/31/2019 Slide Reverse Proxy

    13/16

    II.Kintrc reverse proxy (proxyngc) 3. Reverse proxy tchhp

    Nguy c gp phi khi s dng reverse proxy tch hp tr, tn thtkhitruyncho backend server,tng thm im li. S kt ni ng thi b hn ch (C th s dng nhiureverse proxy)

    Cuhnh phc tp

    C th kt hp c reverse proxy bo v v reverseproxy tchhp tng hiu qu s dng.

    7/10/2012 Kin trc proxy ngc 13

  • 7/31/2019 Slide Reverse Proxy

    14/16

    III. Cit th nghim Myo Vitual Box citWindows Server 2008 MythtWindows 7ng vai tr l client Cuhnh Windows Server 2008

    Ci tADDS, DNS server, IIS IIS c ci t role ASP.NET Module URL Rewrite Module Application Request Routing version 2.5ti a ch:

    http://www.microsoft.com/web/gallery/install.aspx?appi

    d=ARRv2_5. Ci t2 website: http://webserver1.hungnk.com:8881 http://webserver2.hungnk.com:8882

    7/10/2012 Kin trc proxy ngc 14

    http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://webserver1.hungnk.com:8881/http://webserver2.hungnk.com:8882/http://webserver2.hungnk.com:8882/http://webserver2.hungnk.com:8882/http://webserver2.hungnk.com:8882/http://webserver2.hungnk.com:8882/http://webserver2.hungnk.com:8882/http://webserver2.hungnk.com:8882/http://webserver2.hungnk.com:8882/http://webserver2.hungnk.com:8882/http://webserver2.hungnk.com:8882/http://webserver2.hungnk.com:8882/http://webserver2.hungnk.com:8882/http://webserver1.hungnk.com:8881/http://webserver1.hungnk.com:8881/http://webserver1.hungnk.com:8881/http://webserver1.hungnk.com:8881/http://webserver1.hungnk.com:8881/http://webserver1.hungnk.com:8881/http://webserver1.hungnk.com:8881/http://webserver1.hungnk.com:8881/http://webserver1.hungnk.com:8881/http://webserver1.hungnk.com:8881/http://webserver1.hungnk.com:8881/http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5http://www.microsoft.com/web/gallery/install.aspx?appid=ARRv2_5
  • 7/31/2019 Slide Reverse Proxy

    15/16

    IV.Kt lun Vic trin khai m hnh reverse proxy gip m bo an

    ton cho server, gip che du s tn ti ca server trnInternet, gip cn bng ti cho h thng my ch.

    Reverse proxy gip hn ch vic li dng nhng l hngtrn h thng my ch.

    M hnh ny gii quyt c nhng i hi cp thitv an ton thng tin v truyn ti d liu trn Internet.

    7/10/2012 Kin trc proxy ngc 15

  • 7/31/2019 Slide Reverse Proxy

    16/16

    THANK YOU !

    7/10/2012 Kin trc proxy ngc 16