Keresés

Hirdetés

Új hozzászólás Aktív témák

  • eninek

    tag

    válasz vargalex #26447 üzenetére

    itt a /etc/firewall.user tartalma:

    # This file is interpreted as shell script.
    # Put your custom iptables rules here, they will
    # be executed with each firewall (re-)start.

    BRUTEFORCE_PROTECTION_START=3
    BRUTEFORCE_DROPPORT=55555
    PROTO=tcp
    ROUTERIP=$(uci get network.lan.ipaddr)

    ########################################
    #SSH Brute Force protection on port 2222
    PROTECTEDPORT=2222
    SERVICEPORT=22
    SERVICE=SSH

    echo Enabling Brute Force protection for $SERVICE on port $SERVICEPORT
    iptables --table nat -I zone_wan_prerouting -p $PROTO --dport $PROTECTEDPORT -m
    iptables --table nat -I zone_wan_prerouting -p $PROTO --dport $PROTECTEDPORT -m
    iptables --table nat -I zone_wan_prerouting -p $PROTO --dport $PROTECTEDPORT -m
    ########################################

    ########################################
    #FTP Brute Force protection on port 2221

Új hozzászólás Aktív témák