欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

    LinuxVPS安全設(shè)置之三:使用DDOSdeflate抵御少量DDOS攻擊

    2022-10-08    分類: 網(wǎng)站建設(shè)

    互聯(lián)網(wǎng)是豐富多彩的,基本上能夠找到我們需要的資源,也正因?yàn)槿绱撕芏嗯笥讯技尤氲秸鹃L(zhǎng)的行列中來(lái)。在眾多站長(zhǎng)之間也會(huì)存在明爭(zhēng)暗斗的事情。尤其是我們個(gè)人站長(zhǎng),由于技術(shù)和財(cái)力有限,好不容易使用上主機(jī)、VPS后被攻擊沒(méi)有能力防御,導(dǎo)致我們的主機(jī)或者VPS商給我們的賬戶暫停,IP掛起等。尤其是我們?cè)谑褂玫腣PS主機(jī)中,因?yàn)槭前凑樟髁肯M(fèi)的,在耗盡我們的流量,遭遇大量的DDOS攻擊之后,也束手無(wú)策,包括老左也看到之前也遭遇到DDOS攻擊。

    在遇到這些問(wèn)題的時(shí)候,我們是否能在VPS設(shè)置中進(jìn)行處理呢?哪怕是一點(diǎn)點(diǎn)的防御??吹紻DOS deflate腳本是可以協(xié)助VPS阻止攻擊進(jìn)程的,如果遇到來(lái)自某個(gè)IP的持續(xù)攻擊,可以給該IP自動(dòng)的設(shè)置成IP黑名單。只能說(shuō)可以給我們的VPS一點(diǎn)點(diǎn)防御。

    第一步,安裝。

    ?
    1
    2
    3
    wget http://myvps-scripts.googlecode.com/files/deflate.sh
    chmod +x deflate.sh
    ./deflate.sh

    第二步,配置/usr/local/ddos/ddos.conf文件。

    ?
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    ##### Paths of the script and other files
    PROGDIR="/usr/local/ddos"
    PROG="/usr/local/ddos/ddos.sh"
    IGNORE_IP_LIST="/usr/local/ddos/ignore.ip.list"
    CRON="/etc/cron.d/ddos.cron"
    APF="/etc/apf/apf"
    IPT="/sbin/iptables"
     
    ##### frequency in minutes for running the script
    ##### Caution: Every time this setting is changed, run the script with --cron
    #####     option so that the new frequency takes effect
    FREQ=1
    ##### How many connections define a bad IP Indicate that below.
    NO_OF_CONNECTIONS=150
    ##### APF_BAN=1 (Make sure your APF version is atleast 0.96)
    ##### APF_BAN=0 (Uses iptables for banning ips instead of APF)
    APF_BAN=0
    ##### KILL=0 (Bad IPs are'nt banned, good for interactive execution of script)
    ##### KILL=1 (Recommended setting)
    KILL=1
    ##### An email is sent to the following address when an IP is banned.
    ##### Blank would suppress sending of mails
    EMAIL_TO="root"
    ##### Number of seconds the banned ip should remain in blacklist.
    BAN_PERIOD=600

    標(biāo)示說(shuō)明:

    NO_OF_CONNECTIONS=150#大連接數(shù),超過(guò)會(huì)被屏蔽,默認(rèn)即可
    APF_BAN #默認(rèn)是1,建議使用0,標(biāo)示iptables限制
    EMAIL_TO="" 填寫郵箱賬號(hào),到時(shí)候有信息會(huì)發(fā)送到我們郵箱中
    BAN_PERIOD=600 代表限制該IP 600秒

    文章題目:LinuxVPS安全設(shè)置之三:使用DDOSdeflate抵御少量DDOS攻擊
    網(wǎng)址分享:http://chinadenli.net/news11/203461.html

    成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)建站做網(wǎng)站、手機(jī)網(wǎng)站建設(shè)、標(biāo)簽優(yōu)化、自適應(yīng)網(wǎng)站、網(wǎng)站排名

    廣告

    聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

    成都app開(kāi)發(fā)公司