아파치 IP 로 접속시 차단 방법



웹주소를 IP로 홈페이지에 접근시 차단해주는 방법이다.


<VirtualHost *:80>

    ServerName 192.168.1.100

    <Location />

        Order deny,allow

        Deny from all

    </Location>

</VirtualHost>


192.168.1.100 이 부분에 자신의 서버IP를 적어주면 된다.

아파치 재시작


IP 로 홈페이지를 열어보면 아래와 같은 메시지를 볼 수 있을 것이다.


Forbidden

You don't have permission to access / on this server.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

리눅스 아파치 VirtualHost 설정 방법



/etc/httpd/conf/httpd.conf 파일에


Include conf/example.conf 을 추가해서 아래의 파일을 /etc/httpd/conf/example.conf 파일로 저장을 하거나


/etc/httpd/conf.d/example.conf 파일로 저장을 하면 된다.


가상호스트를 여러개를 만들어야 하는 경우라면 두번째 방법이 편하다.


그리고 80 포트 외에 다른 포트를 사용하고 싶다면


Listen 8080

NameVirtualHost *:80

NameVirtualHost *:8080

<VirtualHost *:80 *:8080>


이렇게 적어주면 된다.


NameVirtualHost *:80


<VirtualHost *:80>

    ServerName www.example.com

    DocumentRoot /home/example/www

    SetEnvIfNoCase Request_URI "\.(png|gif|jpg|js|css|ico)$" NO_LOG

    SetEnvIf Remote_Addr "^::1$" NO_LOG

    ErrorLog logs/www.example.com-error_log

    LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vcommon

    CustomLog logs/www.example.com-access_log vcommon env=!NO_LOG

    <IfModule mod_ruid2.c>

        RDocumentChRoot / /home/example/www

        RMode          config

        RUidGid        example example

    </IfModule>

</VirtualHost>


mod_ruid2 부분은 사용자계정의 권한을 갖게 해주는 모듈이다.


설치 방법은 https://ivps.tistory.com/72 여기를 참고하자.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

CentOS 7.x 아파치 mod_ruid2 설치 및 설정방법



CentOS 7.x 버전에서는 이전 방식과 달리 mod_ruid2 를 yum 으로 install 할 수가 있다.


mod_ruid2 모듈 설치 (권한 설정 모듈)


# yum -y install mod_ruid2



RDocumentChRoot 부분 설정이 DocumentRoot 와 달라서 조금 헤메었다.


NameVirtualHost *:80


<VirtualHost *:80>

    ServerName www.example.com

    #DocumentRoot /home/example/www

    <IfModule mod_ruid2.c>

        RDocumentChRoot / /home/example/www

        RMode          config

        RUidGid        example example

    </IfModule>

</VirtualHost>


아파치 재시작하고 확인을 해보자.


파일이나 디렉토리를 생성해보거나 echo exec('whoami'); 를 호출해서 찍어보면 된다.



조금 더 자세한 설정 방법은 /etc/httpd/conf.d/mod_ruid2.conf 파일을 참고하면 된다.



블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

아파치 .htaccess Rewrite URL 리디렉트 처리



특정 파일 또는 이미지 호출시 다른 URL 로 리디렉션 하고 싶을때 Rewrite 모듈을 활용하면 된다.

아니면 특정IP 차단 등에 응용이 가능하다.


.htaccess 파일에 아래코드 추가


RewriteEngine On

RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]

RewriteCond %{REMOTE_ADDR} ^192.168.100.123$

RewriteCond %{SERVER_PORT} !^8080$

RewriteCond %{REQUEST_URI} ^/directory/(.+).(jpg|gif|png)$ [NC]

RewriteCond %{HTTP_USER_AGENT} (Android) [NC]

RewriteRule ^(.*)/directory/(.+)$ http://www.example.com:8080/directory/$2 [R=301,L]


RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]

VirtualHost 운영중이라면 여러개의 호스트주소에서 www.example.com 인 경우 ( [NC] 는 대소문자 구별을 안함)


RewriteCond %{REMOTE_ADDR} ^192.168.100.123$

특정 클라이언트 IP 만 조건 처리 가능


RewriteCond %{SERVER_PORT} !^8080$

특정 포트 ! 은 반대의 의미 ( ^8080$ : 8080 포트인 경우, !^8080$ : 8080 포트가 아닐 경우 )


RewriteCond %{REQUEST_URI} ^/directory/(.+).(jpg|gif|png)$ [NC]

특정 디렉토리 아래의 확장자 jpg, gif, png 인 경우


RewriteCond %{HTTP_USER_AGENT} (Android) [NC]

유저에이전트가 Android 인 경우


RewriteRule ^(.*)/directory/(.+)$ http://www.example.com:8080/directory/$2 [R=301,L]

www.example.com:8080 으로 리디렉션 처리
도메인주소를 제외한 뒤쪽 주소가 동일하다면 http://www.example.com:8080%{REQUEST_URI} 이렇게도 처리가 가능하다.

위의 예제를 참고해서 원하는 리디렉트 처리가 가능하다.


.htaccess 에서 RewriteEngine 이 안 된다면 https://ivps.tistory.com/97 여기를 참고하자.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

리눅스 네트워크 트래픽 모니터링 vnstat 설치



콘솔에서 명령어로 트래픽을 확인해 볼 수 있는 데몬이다.


웹브라우저에서 모니터링은 vnstat_php_frontend 도 설치하여야 한다. ( Webalizer 보다 트래픽 분석이 좋음 )



CentOS 7.x 에서 테스트 되었다.


vnstat 설치


yum -y install vnstat


vnstat 시작 및 부팅데몬 등록


[root@conoha ~]# systemctl start vnstat

[root@conoha ~]# systemctl enable vnstat

Created symlink from /etc/systemd/system/multi-user.target.wants/vnstat.service to /usr/lib/systemd/system/vnstat.service.



Top 10 보기

[root@conoha ~]# vnstat -t


 eth0  /  top 10


    #      day          rx      |     tx      |    total    |   avg. rate

   -----------------------------+-------------+-------------+---------------

    1   01/13/14       2.38 GiB |   86.84 GiB |   89.21 GiB |    8.66 Mbit/s

    2   01/06/14       2.43 GiB |   83.68 GiB |   86.11 GiB |    8.36 Mbit/s

    3   01/20/14       2.01 GiB |   83.78 GiB |   85.79 GiB |    8.33 Mbit/s

    4   11/18/13       2.42 GiB |   82.10 GiB |   84.53 GiB |    8.21 Mbit/s

    5   12/16/13       2.11 GiB |   79.59 GiB |   81.70 GiB |    7.93 Mbit/s

    6   02/03/14       1.96 GiB |   79.50 GiB |   81.45 GiB |    7.91 Mbit/s

    7   03/17/14       1.91 GiB |   79.43 GiB |   81.34 GiB |    7.90 Mbit/s

    8   11/11/13       2.81 GiB |   77.92 GiB |   80.72 GiB |    7.84 Mbit/s

    9   03/23/15       1.84 GiB |   78.39 GiB |   80.24 GiB |    7.79 Mbit/s

   10   01/08/14       2.04 GiB |   78.16 GiB |   80.20 GiB |    7.79 Mbit/s

   -----------------------------+-------------+-------------+---------------


월별 보기

[root@conoha ~]# vnstat -m


 eth0  /  monthly


       month        rx      |     tx      |    total    |   avg. rate

    ------------------------+-------------+-------------+---------------

      Jun '15     35.01 GiB |    1.13 TiB |    1.16 TiB |    3.85 Mbit/s

      Jul '15     30.77 GiB |    1.04 TiB |    1.07 TiB |    3.42 Mbit/s

      Aug '15     35.19 GiB |  980.86 GiB |    0.99 TiB |    3.18 Mbit/s

      Sep '15     32.17 GiB |  868.54 GiB |  900.71 GiB |    2.92 Mbit/s

      Oct '15     35.44 GiB |  916.26 GiB |  951.70 GiB |    2.98 Mbit/s

      Nov '15     28.02 GiB |  749.36 GiB |  777.38 GiB |    2.52 Mbit/s

      Dec '15     25.14 GiB |  635.72 GiB |  660.86 GiB |    2.07 Mbit/s

      Jan '16     23.27 GiB |  603.81 GiB |  627.08 GiB |    1.96 Mbit/s

      Feb '16     20.01 GiB |  534.52 GiB |  554.52 GiB |    1.86 Mbit/s

      Mar '16     27.19 GiB |  584.04 GiB |  611.23 GiB |    1.91 Mbit/s

      Apr '16     24.49 GiB |  526.96 GiB |  551.45 GiB |    1.78 Mbit/s

      May '16     16.67 GiB |  378.93 GiB |  395.60 GiB |    1.55 Mbit/s

    ------------------------+-------------+-------------+---------------

    estimated     20.91 GiB |  475.28 GiB |  496.19 GiB |


주별 보기

[root@conoha ~]# vnstat -w


 eth0  /  weekly


                      rx      |     tx      |    total    |   avg. rate

   ---------------------------+-------------+-------------+---------------

    last 7 days      4.74 GiB |  105.96 GiB |  110.70 GiB |    1.60 Mbit/s

      last week      4.71 GiB |  104.95 GiB |  109.66 GiB |    1.52 Mbit/s

   current week      2.19 GiB |   47.10 GiB |   49.29 GiB |    1.76 Mbit/s

   ---------------------------+-------------+-------------+---------------

      estimated      5.67 GiB |  121.72 GiB |  127.39 GiB |


일별 보기

[root@conoha ~]# vnstat -d


 eth0  /  daily


         day         rx      |     tx      |    total    |   avg. rate

     ------------------------+-------------+-------------+---------------

      04/26/16    862.14 MiB |   17.65 GiB |   18.49 GiB |    1.80 Mbit/s

      04/27/16    789.06 MiB |   17.62 GiB |   18.39 GiB |    1.79 Mbit/s

      04/28/16    970.95 MiB |   19.62 GiB |   20.57 GiB |    2.00 Mbit/s

      04/29/16      1.15 GiB |   19.08 GiB |   20.23 GiB |    1.96 Mbit/s

      04/30/16    665.59 MiB |   15.47 GiB |   16.12 GiB |    1.57 Mbit/s

      05/01/16    470.69 MiB |   14.09 GiB |   14.55 GiB |    1.41 Mbit/s

      05/02/16    728.59 MiB |   15.05 GiB |   15.76 GiB |    1.53 Mbit/s

      05/03/16    793.13 MiB |   15.93 GiB |   16.71 GiB |    1.62 Mbit/s

      05/04/16    823.53 MiB |   17.46 GiB |   18.26 GiB |    1.77 Mbit/s

      05/05/16    402.19 MiB |   12.88 GiB |   13.27 GiB |    1.29 Mbit/s

      05/06/16    580.29 MiB |   14.52 GiB |   15.09 GiB |    1.47 Mbit/s

      05/07/16    395.45 MiB |   12.91 GiB |   13.30 GiB |    1.29 Mbit/s

      05/08/16    386.30 MiB |   12.62 GiB |   13.00 GiB |    1.26 Mbit/s

      05/09/16    926.07 MiB |   17.93 GiB |   18.84 GiB |    1.83 Mbit/s

      05/10/16    864.42 MiB |   18.21 GiB |   19.05 GiB |    1.85 Mbit/s

      05/11/16    976.42 MiB |   16.52 GiB |   17.47 GiB |    1.70 Mbit/s

      05/12/16    876.79 MiB |   16.29 GiB |   17.14 GiB |    1.66 Mbit/s

      05/13/16    911.00 MiB |   16.86 GiB |   17.75 GiB |    1.72 Mbit/s

      05/14/16    397.09 MiB |   12.20 GiB |   12.58 GiB |    1.22 Mbit/s

      05/15/16    467.59 MiB |   13.42 GiB |   13.88 GiB |    1.35 Mbit/s

      05/16/16    766.32 MiB |   16.33 GiB |   17.07 GiB |    1.66 Mbit/s

      05/17/16    804.50 MiB |   14.71 GiB |   15.49 GiB |    1.50 Mbit/s

      05/18/16    644.90 MiB |   15.05 GiB |   15.68 GiB |    1.52 Mbit/s

      05/19/16    998.73 MiB |   15.49 GiB |   16.47 GiB |    1.60 Mbit/s

      05/20/16    737.70 MiB |   15.53 GiB |   16.25 GiB |    1.58 Mbit/s

      05/21/16    438.38 MiB |   14.30 GiB |   14.73 GiB |    1.43 Mbit/s

      05/22/16    435.13 MiB |   13.55 GiB |   13.97 GiB |    1.36 Mbit/s

      05/23/16    849.21 MiB |   16.11 GiB |   16.94 GiB |    1.64 Mbit/s

      05/24/16    892.03 MiB |   18.80 GiB |   19.67 GiB |    1.91 Mbit/s

      05/25/16    503.95 MiB |   12.19 GiB |   12.68 GiB |    1.72 Mbit/s

     ------------------------+-------------+-------------+---------------

     estimated       703 MiB |   17.03 GiB |   17.72 GiB |


시간별 보기

[root@conoha ~]# vnstat -h

 eth0                                                                     17:10

  ^                              t

  |                              t

  |                              t

  |                              t

  |                              t

  |                              t

  |            t                 t                             t

  |            t  t  t           t                          t  t  t

  |   t     t  t  t  t  t  t     t              t  t  t  t  t  t  t

  |   t  t  t  t  t  t  t  t  t  t  t  t  t  t  t  t  t  t  t  t  t  t  t

 -+--------------------------------------------------------------------------->

  |  18 19 20 21 22 23 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17


 h  rx (KiB)   tx (KiB)      h  rx (KiB)   tx (KiB)      h  rx (KiB)   tx (KiB)

18      30149     737631    02      16910     495675    10      28690     735393

19      19602     490800    03      55951    2665686    11      23858     621353

20      18931     630324    04      12392     449728    12      33190     856515

21      33945    1118384    05      12928     358430    13      52776    1130989

22      34773    1064222    06      14546     403971    14      84248     864656

23      94213     995095    07      17050     481698    15      27708     516365

00      28808     744898    08      25482     589208    16      28374     450383

01      19283     614499    09      29579     704719    17       4268      92914


실시간 보기

[root@conoha ~]# vnstat -l

Monitoring eth0...    (press CTRL-C to stop)


   rx:       72 kbit/s    99 p/s          tx:      920 kbit/s   105 p/s^C



 eth0  /  traffic statistics


                           rx         |       tx

--------------------------------------+------------------

  bytes                      305 KiB  |        6.36 MiB

--------------------------------------+------------------

          max             344 kbit/s  |     5.76 Mbit/s

      average           87.14 kbit/s  |     1.86 Mbit/s

          min              28 kbit/s  |      768 kbit/s

--------------------------------------+------------------

  packets                       3695  |            5259

--------------------------------------+------------------

          max                445 p/s  |         659 p/s

      average                131 p/s  |         187 p/s

          min                 53 p/s  |          78 p/s

--------------------------------------+------------------

  time                    28 seconds


실시간 보기는 계속 체크하다가 Ctrl + C 를 누르면 그동안의 트래픽을 보여준다.



이번에는 웹에서 확인이 가능한 vnstat_php_frontend 를 설치해보자.


설치는 wget 으로 받아서 압축풀고 아파치 폴더에 넣어주면 된다.

wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.5.1.tar.gz

tar zxvf vnstat_php_frontend-1.5.1.tar.gz

mv vnstat_php_frontend-1.5.1 /var/www/html/vnstat

chown -R apache.apache /var/www/html/vnstat


그리고 /var/www/html/vnstat/config.php 환경설정 파일을 아래 처럼 수정해주자.

   //$language = 'nl';

    $language = 'en';

    //$iface_list = array('eth0', 'sixxs');

    $iface_list = array('eth0');

    //$graph_format='svg';

    $graph_format='png';


아파치 재시작

# systemctl restart httpd.service


이제 웹브라우저로 확인을 하면 된다. ( 도메인주소 뒤에 /vnstat 을 붙이면 되나 자신의 아파치 설정에 따르면 된다. )

(홈페이지 루트가 /var/www/html 이 아니라면 아파치 설정에 Alias /vnstat /var/www/html/vnstat 을 추가해주면 된다.)


vnstat PHP frontendvnstat PHP frontend


트래픽 모니터링에서는 Webalizer 보다 나은 것 같다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

아파치 디렉토리 리스트 안나오게 하기



httpd 를 설치하고 도메인주소 뒤에 디렉토리를 적고 브라우저에서 열면 디렉토리의 파일들이 보인다.


이건 아파치 옵션의 Indexes 때문에 그렇다.


/etc/httpd/conf/httpd.conf 파일에서 Options Indexes 부분을 찾아서 Indexes를 제거 해주면 된다.


아니면


vi /etc/httpd/conf.d/options.conf 파일을 하나 새로 만들어서 아래 내용을 넣어줘도 된다.


<Directory "/var/www/html">

        Options -Indexes

</Directory>


물론 디렉토리는 자신의 환경에 맞게 해줘야 한다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

리눅스 쉘스크립트 비교연산자



비교연산자에 대해서 알아보자.


숫자 및 문자열 비교 그리고 파일 및 디렉토리 속성 및 존재여부를 비교할 수 있다.


그리고 if 조건문, case 분기문, for 및 while 반복문에 대해서도 알아보자.


▶ 비교연산자


숫자 비교

-eq

같다

if [ $VAR1 -eq $VAR2 ]

-ne

다르다

if [ $VAR1 -ne $VAR2 ]

-gt

크다(초과)

if [ $VAR1 -gt $VAR2 ]

-ge

같거나크다(이상)

if [ $VAR1 -ge $VAR2 ]

-lt

작다(미만)

if [ $VAR1 -lt $VAR2 ]

-le

같거나작다(이하)

if [ $VAR1 -le $VAR2 ]


문자열 비교

-n

문자열이 null 이 아니면 true

if [ -n "$STRING" ]

-z

문자열이 길이가 0 이면 true

if [ -z "$STRING" ]

=, ==

문자열이 같으면 true

if [ "$STRING1" == "$STRING2" ]

!=

문자열이 다르면 true

if [ "$STRING1" != "$STRING2" ]


기타

-r

파일 속성이 읽기 가능한지 true

if [ -r "$FILEPATH" ]

-w

파일 속성이 쓰기 가능한지 true

if [ -w "$FILEPATH" ]

-x

파일 속성이 실행 가능한지 true

if [ -x "$FILEPATH" ]

-s

파일 사이즈가 0 이상이면 true

if [ -s "$FILEPATH" ]

-d

해당 디렉토리가 존재하면 true

if [ -d "$FILEPATH" ]

-f

해당 파일이 존재하면 true

if [ -f "$FILEPATH" ]

-h

해당 파일이 링크파일이면 true

if [ -h "$FILEPATH" ]

!

조건이 반대이면 true

if [ ! -r "$FILEPATH" ]


AND 및 OR

-a

AND 조건

if [ -r "$FILEPATH" -a -w "$FILEPATH" ]

-o

OR 조건

if [ -r "$FILEPATH" -o -w "$FILEPATH" ]



다음에는 조건문에 대해서 알아보자.


▶ if 조건문


#!/bin/sh


VAR=3


if [ $VAR -eq 1 ] ; then

        echo 1

elif [ $VAR -eq 2 ] ; then

        echo 2

elif [ $VAR -eq 3 ] ; then

        echo 3

else

        echo -1

fi



▶ case 분기문


#!/bin/sh


VAR=3


case $VAR in

        1)

                echo 1;;

        2)

                echo 2;;

        3)

                echo 3;;

        *)

                echo -1;;

esac


STR="blue"


case "$STR" in

        "red")

                echo "Red";;

        "green")

                echo "Green";;

        "blue")

                echo "Blue";;

        *)

                echo "Default";;

esac



▶ for 반복문


#!/bin/sh


for VAR in {1,2,3,4,5}

do

        echo $VAR

done


for USER in `ls /home`

do

        echo $USER

done



▶ while 반복문


#!/bin/sh


VAR=10


while [ $VAR -gt 0 ]

do

        echo $VAR

        VAR=`expr "$VAR" "-" "1"`

done


expr은 계산시 꼭 필요하다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

리눅스 swift 로 Object Storage 에 백업하기 스크립트



아래는 코노하의 오브젝트 스토리지에 7일분을 백업하는 쉘스크립트 예제이다.


#!/bin/sh


export OS_AUTH_URL=https://identity.tyo1.conoha.io/v2.0

export OS_TENANT_ID=테넌트아이디

export OS_USERNAME=유저명

export OS_PASSWORD=비밀번호


BACKUP_CONTAINER="container"

LOG_PATH="/root/swift_backup.log"

TODAY=`date +%Y%m%d`

DELETE_DATE=`date +%Y%m%d --date='7 days ago'`

BACKUP_DIR="/backup"


for USER_NAME in $(ls $BACKUP_DIR)

do

if [ -d "$BACKUP_DIR/$USER_NAME" ] ; then

for DELETE_FILE in `swift list ${BACKUP_CONTAINER} | grep "${BACKUP_DIR}/${USER_NAME}/${DELETE_DATE}/"`

do

swift delete ${BACKUP_CONTAINER} ${DELETE_FILE} >> $LOG_PATH

done

swift upload ${BACKUP_CONTAINER} ${BACKUP_DIR}/${USER_NAME}/${TODAY} >> $LOG_PATH

rm -rf $BACKUP_DIR/$USER_NAME/${DELETE_DATE}

fi

done


변수만 자신의 환경에 맞게 수정하고 cron 에 등록시켜서 사용하면 된다.


유저 데이터 및 DB 백업 스크립트는 http://itrooms.tistory.com/86 여기를 참고하자.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

ConoHa / DigitalOcean / Linode / Vultr 다운로드 속도 비교



코노하 VPS 서버 위치 : 도쿄, 싱가포르, 미국


디지털오션 VPS 서버 위치 : 싱가포르, 뉴욕, 암스테르담, 샌프란시스코, 런던, 프랑크푸르트, 토론토


리노드 VPS 서버 위치 : 싱가포르, 프랑크푸르트, 런던, 뉴어크, 프리몬트, 애틀란타, 댈러스


Vultr VPS 서버 위치 : 도쿄, 프랑크푸르트, 로스앤젤레스, 시드니, 뉴저지, 암스테르담, 파리, 시카고, 마이애미, 시애틀, 실리콘밸리, 애틀란타



다음카카오 ftp 에 있는 CentOS 7.2 Minimal 이미지를 다운로드(인바운드) 하는 속도 테스트이다.


절대속도가 아닌 상대적인 속도이니 오해 없기를 바란다.



VPS

위치

속도

PING

코노하

도쿄

97.60 Mbps

65 ms

코노하

싱가포르

72.48 Mbps

75 ms

코노하

미국

72.72 Mbps

187 ms

리노드

싱가포르

108.80 Mbps

89 ms

리노드

프랑크푸르트

76.72 Mbps

278 ms

리노드

런던

58.08 Mbps

293 ms

리노드

뉴어크

105.60 Mbps

239 ms

리노드

프리몬트

116.80 Mbps

168 ms

리노드

애틀란타

84.00 Mbps

229 ms

리노드

댈러스

56.88 Mbps

208 ms

Vultr

도쿄

520.80 Mbps

40 ms

Vultr

프랑크푸르트

75.04 Mbps

337 ms

Vultr

로스앤젤레스

65.92 Mbps

186 ms

Vultr

시드니

32.64 Mbps

152 ms

Vultr

뉴저지

94.40 Mbps

236 ms

Vultr

암스테르담

58.24 Mbps

378 ms

Vultr

파리

66.72 Mbps

333 ms

Vultr

시카고

108.80 Mbps

244 ms

Vultr

마이애미

46.96 Mbps

229 ms

Vultr

시애틀

152.00 Mbps

144 ms

Vultr

실리콘밸리

153.60 Mbps

183 ms

Vultr

애틀란타

100.80 Mbps

262 ms

디지털오션

싱가포르

344.00 Mbps

107 ms

디지털오션

뉴욕

84.80 Mbps

223 ms

디지털오션

암스테르담

107.20 Mbps

344 ms

디지털오션

샌프란시스코

247.20 Mbps

160 ms

디지털오션

런던

118.40 Mbps

300 ms

디지털오션

프랑크푸르트

85.60 Mbps

279 ms

디지털오션

토론토

74.96 Mbps

261 ms



▶ 코노하 (도쿄) 12.2MB/s => 97.6Mbps (PING Average 65ms)

[root@conoha ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-19 18:28:59 (12.2 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]



▶ 디지털오션 (싱가포르) 43.0MB/s => 344.0Mbps (PING Average 107ms)

[root@ocean ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-30 20:50:04 (43.0 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]



▶ 리노드 (싱가포르) 13.6MB/s => 108.8Mbps (PING Average 89ms)

[root@linode ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-19 09:28:17 (13.6 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]



▶ Vultr (도쿄) 65.1MB/s => 520.8Mbps  (PING Average 40ms)

[root@vultr ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-19 18:28:45 (65.1 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]



가까운 지역만 놓고 봤을때 Vultr 의 압승이다~


아무튼 4군데 모두 빠르긴 하다~



다른 지역에도 서버를 개설하여 추가 테스트 하였다.



▶ Vultr (프랑크푸르트) 9.38MB/s => 75.04Mbps (PING Average 337ms)

[root@vultr-ff ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-19 12:44:24 (9.38 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso??saved [632291328/632291328]


독일의 프랑크푸르트는 속도가 느리게 나왔다.



▶ Vultr (로스앤젤레스) 8.24MB/s => 65.92Mbps (PING Average 186ms)

[root@vultr-la ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-19 12:58:13 (8.24 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


로스앤젤레스는 프랑크푸르트 보다 속도가 조금 더 느리게 나왔다.



▶ Vultr (시드니) 4.08MB/s => 32.64Mbps (PING Average 152ms)

[root@vultr-sd ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 00:21:45 (4.08 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


시드니는 속도가 많이 느리게 나왔다.



▶ Vultr (뉴저지) 11.8MB/s => 94.4Mbps (PING Average 236ms)

[root@vultr-nj ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 00:32:57 (11.8 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


뉴저지는 100Mbps 근처의 속도가 나왔다.



▶ Vultr (암스테르담) 7.28MB/s => 58.24Mbps (PING Average 378ms)

[root@vultr-am ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 04:10:48 (7.28 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


네덜란드 암스테르담은 네트워크 속도는 둘째치고 응답시간인 PING 속도가 너무 느린 것 같다.



▶ Vultr (파리) 8.34MB/s => 66.72Mbps (PING Average 333ms)

[root@vultr-fp ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 04:20:16 (8.34 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


프랑스 파리도 암스테르담 보다는 빠르지만 PING 속도가 너무 느린 것 같다.



▶ Vultr (시카고) 13.6MB/s => 108.8Mbps (PING Average 244ms)

[root@vultr-il ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 05:01:10 (13.6 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


시카고는 일리노이주에 속한 도시이며 미국에서 세번째로 큰 도시이다.



▶ Vultr (마이애미) 5.87MB/s => 46.96Mbps (PING Average 229ms)

[root@vultr-fl ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 05:13:53 (5.87 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso.1’ saved [632291328/632291328]


플로리다주에 위치한 휴양 도시이다. 다운로드 속도가 테스트한 도시 중에 두번째로 느리다.



▶ Vultr (시애틀) 19.0MB/s => 152.0Mbps (PING Average 144ms)

[root@vultr-wa ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 05:18:10 (19.0 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


워싱턴주에 위치한 대도시이다. PING 속도는 미국에서 제일 빠른 것 같다.



▶ Vultr (실리콘밸리) 19.2MB/s => 153.6Mbps (PING Average 183ms)

[root@vultr-sv ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 05:25:11 (19.2 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


캘리포니아주에 위치한 도시이다. 다운로드 속도는 미국에서 제일 빠른 것 같다.



▶ Vultr (애틀란타) 12.6MB/s => 100.8Mbps (PING Average 262ms)

[root@vultr-ca ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 05:32:44 (12.6 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


캘리포니아주에 위치한 도시이다. 매진이였었는데 운 좋게 개설해서 테스트 하였다.



▶ 리노드 (프랑크푸르트) 9.59MB/s => 76.72Mbps (PING Average 278ms)

[root@linode-ff ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-19 13:05:37 (9.59 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


리노드 프랑크푸르트는 싱가포르 보다 느리게 나왔다.



▶ 리노드 (런던) 7.26MB/s => 58.08Mbps (PING Average 293ms)

[root@li1093-87 ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 00:55:15 (7.26 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


리노드 런던은 프랑크푸르트 보다 느리게 나왔다.



▶ 리노드 (뉴어크) 13.2MB/s => 105.6Mbps (PING Average 239ms)

[root@linode-nj ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 01:50:43 (13.2 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


뉴어크는 뉴저지주에서 가장 큰 도시라고 한다.



▶ 리노드 (프리몬트) 14.6MB/s => 116.8Mbps (PING Average 168ms)

[root@linode-ca ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 04:34:23 (14.6 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


프리몬트는 캘리포니아주에 위치한 도시이다.



▶ 리노드 (애틀란타) 10.5MB/s => 84.0Mbps (PING Average 229ms)

[root@linode-ga ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 04:41:08 (10.5 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


애틀란타는 조지아주에 위치한 도시이다.



▶ 리노드 (댈러스) 7.11MB/s => 56.88Mbps (PING Average 208ms)

[root@li669-48 ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 04:47:42 (7.11 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


댈러스는 텍사스주에 위치한 도시이다.



▶ 코노하 (싱가포르) 9.06MB/s => 72.48Mbps (PING Average 75ms)

[root@163-44-152-251 ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-20 09:30:03 (9.06 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


코노하 도쿄 보다 조금 느린 정도다.



▶ 코노하 (미국) 9.09MB/s => 72.72Mbps (PING Average 187ms)

[root@conoha-us ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-19 19:01:48 (9.09 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]


코노하 미국 서버는 싱가포르 보다 조금 빠른 정도다. ping 속도만 딸리는 듯 하다.



▶ 디지털오션 (뉴욕) 10.6MB/s => 84.8Mbps (PING Average 223ms)

[root@ocean-ny ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-30 21:04:05 (10.6 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]



▶ 디지털오션 (암스테르담) 13.4MB/s => 107.2Mbps (PING Average 344ms)

[root@ocean-am ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-30 21:08:53 (13.4 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]



▶ 디지털오션 (샌프란시스코) 30.9MB/s => 247.2Mbps (PING Average 160ms)

[root@ocean-sf ~]#  wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-30 21:18:02 (30.9 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]



▶ 디지털오션 (런던) 14.8MB/s => 118.4Mbps (PING Average 300ms)

[root@ocean-uk ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-30 21:24:00 (14.8 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]



▶ 디지털오션 (프랑크푸르트) 10.7MB/s => 85.6Mbps (PING Average 279ms)

[root@ocean-ff ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-30 21:28:28 (10.7 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso’ saved [632291328/632291328]



▶ 디지털오션 (토론토) 9.37MB/s => 74.96Mbps (PING Average 261ms)

[root@ocean-to ~]# wget http://ftp.daumkakao.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2016-05-30 21:36:39 (9.37 MB/s) - ‘CentOS-7-x86_64-Minimal-1511.iso.2’ saved [632291328/632291328]



그리고 이건 https://itrooms.blogspot.com/2016/05/vultr-vps-download-speed-test.html 조금 다른 방식으로 테스트한 게시글이다.


'VPS' 카테고리의 다른 글

Vultr vs ConoHa Linode DigitalOcean 다운로드 속도 비교  (6) 2016.05.30
DigitalOcean VPS 개통 후기  (2) 2016.05.30
Linode VPS 개통 후기  (2) 2016.05.19
Linode VPS 가입 후기  (2) 2016.05.19
Vultr VPS 컨트롤 패널 둘러보기  (0) 2016.05.19
블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

Linode VPS 개통 후기

VPS 2016. 5. 19. 18:15

Linode VPS 개통 후기



제일 저렴한 1개월 10달러 요금 상품을 개통하였습니다.


( 지금은 5달러 상품이 생겼습니다. 1Core / 20GB / 1TB Traffic )


1CPU / 24GB SSD / 1GB RAM / 2TB Bandwidth 월 $10 ( 지금은 30GB 로 상향 )


Linode.com 1024 VPS PLANLinode.com 1024 VPS PLAN


우리나라에서 제일 가까운 싱가포르에 개통합니다.


Linode.com VPS DashboardLinode.com VPS Dashboard


아직 개설되지 않은 상태입니다.


Dashboard를 눌러 다음 단계로 넘어갑니다.



Linode.com VPS Dashboard Deploy an ImageLinode.com VPS Dashboard Deploy an Image


다른 VPS 업체 보다 과정이 좀 기네요~ ㅎ


Deploy an Image 를 눌러서 다음으로 넘어갑니다.



Linode.com VPS DeployLinode.com VPS Deploy


OS 종류를 선택하고 저는 CentOS 7을 선택하고 Deploy 버튼을 눌렀습니다.


Root Password 는 디폴트로 Linode 가입시 입력한 비밀번호입니다.


다른 비밀번호로 바꾸셔도 됩니다.



Linode.com VPS Dashboard BootLinode.com VPS Dashboard Boot


이미지가 생성된 화면입니다.


Boot 버튼을 눌러서 부팅을 시켜야 합니다~ ㅋ



Linode.com VPS Dashboard RunningLinode.com VPS Dashboard Running


과정이 참 기네요~


여기까지가 완료입니다.


이제 ssh 로 로그인 해서 관리하시면 됩니다.


Putty 로 로그인해서 간단 테스트를 하도록 하겠습니다.


우선 PING 속도는 코노하 도쿄 보다 좀 느린 89ms 가 나왔습니다.


(Linode 프랑크푸르트 PING Average 278ms)

(Linode 런던 PING Average 293ms)

(뉴어크 PING Average 239ms)

(프리몬트 PING Average 168ms)

(애틀란타 PING Average 229ms)

(댈러스 PING Average 208ms)


[root@linode ~]# df -h

Filesystem      Size  Used Avail Use% Mounted on

/dev/root        24G  705M   23G   3% /

devtmpfs        494M     0  494M   0% /dev

tmpfs           496M     0  496M   0% /dev/shm

tmpfs           496M  7.6M  489M   2% /run

tmpfs           496M     0  496M   0% /sys/fs/cgroup


[root@linode ~]# cat /etc/centos-release

CentOS Linux release 7.0.1406 (Core)


[root@linode ~]# cat /proc/cpuinfo | grep "model name"

model name      : Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz


[root@linode ~]# free -m

             total       used       free     shared    buffers     cached

Mem:           991        268        722          7          7        150

-/+ buffers/cache:        111        880

Swap:          255          0        255


[root@linode ~]# dd if=/dev/zero of=/1GB.tmp bs=100M count=10

10+0 records in

10+0 records out

1048576000 bytes (1.0 GB) copied, 4.7361 s, 221 MB/s


[root@linode ~]# hdparm -Tt /dev/sda


/dev/sda:

 Timing cached reads:   17332 MB in  2.00 seconds = 8679.46 MB/sec

 Timing buffered disk reads: 6170 MB in  3.00 seconds = 2056.44 MB/sec


[root@linode-ff ~]# dd if=/dev/zero of=/1GB.tmp bs=100M count=10

10+0 records in

10+0 records out

1048576000 bytes (1.0 GB) copied, 1.3003 s, 806 MB/s


[root@linode-uk ~]# dd if=/dev/zero of=/1GB.tmp bs=100M count=10

10+0 records in

10+0 records out

1048576000 bytes (1.0 GB) copied, 1.13824 s, 921 MB/s


하드 용량은 딱 24GB 로 나오네요.


OS 는 CentOS 7.0 1406


CPU 는 Xeon E5-2680 v3 @ 2.50GHz


램은 1GB


하드 순차쓰기 속도는 221 MB/s (프랑크푸르트 806 MB/s, 런던 921 MB/s)


hdparm 유틸에서 buffer disk read 측정 속도는  2056.44 MB/s


어마무시한 속도로 측정되는군요~


VPS 에서 측정된 결과는 100% 믿을 수 없는 현실입니다.



그리고 사용현황 그래프도 있습니다.


linode.com Usage Graphslinode.com Usage Graphs


이건 Vultr 랑 비슷하군요~


Linode VPS 가입 후기 보러가기 https://ivps.tistory.com/64


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,