Recent Posts
Today
Total
04-29 12:48
관리 메뉴

Secure-EDU

[YouTube|보안] nShield | Anti-DDoS Solution For IoT Devices | Kali Linux 2017.1 본문

보안|해킹 영상 자료/보안

[YouTube|보안] nShield | Anti-DDoS Solution For IoT Devices | Kali Linux 2017.1

Secure-EDU 2017. 6. 29. 18:08

[YouTube|보안] nShield | Anti-DDoS Solution For IoT Devices | Kali Linux 2017.1


nShield 을 이용하여 Simple Anti-DDoS Solution 설치 영상 입니다. 해당 소프트웨어는 충분한 테스트 후에 적용 하시기 바랍니다.

테스트 없이 적용 하였을때 웹 페이지가 정상적으로 뜨지 않는 현상이 발생 될 수 있습니다.


주의 : 테스트 이외의 목적으로 발생 되는 문제점에 대해서는 프로그램을 사용하는 사용자가 책임을 지셔야 한다는 것을 알려 드립니다.

Disclaimer: I am not responsible for any damage done using this tool. This tool should only be used for educational purposes and for penetration testing.


An Easy and Simple Anti-DDoS solution for VPS,Dedicated Servers and IoT devices based on iptables

** Requirements

  • Linux System with python, iptables
  • Nginx (Will be installed automatically by install.sh)

** Quickstart

Running as a standalone software (No install.sh required) via DryRun option (-dry) to only check connections agains ip/netsets and do not touch iptables firewall.

python nshield-main.py -dry


For complete install: 

cd /home/ && git clone https://github.com/fnzv/nShield.git && bash nShield/install.sh


** Usage

The above quickstart/installation script will install python if not present and download all the repo with the example config files, after that will be executed a bash script to setup some settings and a cron that will run every 30 minutes to check connections against common ipsets. You can find example config files under examples folder.

HTTPS Manually verification is executed with this command under the repository directory:

python nshield-main.py -ssl

The python script after reading the config will prompt you to insert an email address (For Let's Encrypt) and change your domain DNS to the nShield server for SSL DNS Challenge confirmation. Example:

I Will generate SSL certs for sami.pw with Let's Encrypt DNS challenge
Insert your email address? (Used for cert Expiration and Let's Encrypt TOS agreement
samiii@protonmail.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Renewing an existing certificate
Performing the following challenges:
dns-01 challenge for sami.pw

-------------------------------------------------------------------------------
Please deploy a DNS TXT record under the name
_acme-challenge.sami.pw with the following value:

wFyeYk4yl-BERO6pKnMUA5EqwawUri5XnlD2-xjOAUk

Once this is deployed,
-------------------------------------------------------------------------------
Press Enter to Continue
Waiting for verification...
Cleaning up challenges

Now your domain is verified and a SSL cert is issued to Nginx configuration and you can change your A record to this server.

** How it works

Basically this python script is set by default to run every 30 minutes and check the config file to execute these operations:

  • Get latest Bot,Spammers,Bad IP/Net reputation lists and blocks if those Bad guys are attacking your server (Thank you FireHol http://iplists.firehol.org/ )
  • Enables basic Anti-DDoS methods to deny unwanted/malicious traffic
  • Rate limits when under attack
  • Allows HTTP(S) Proxying to protect your site with an external proxy/server (You need to manually run SSL Verification first time)



Github Site : https://github.com/fnzv/nShield

Comments