Giter Site home page Giter Site logo

failed2ban-for-vos-3000's Introduction

Failed2Ban-for-VOS-3000

Avoided SIP attackers for VOS 3000 SoftSwitch

Alt text

#Licensing Information: READ LICENSE

#Project source can be downloaded from ##https://github.com/chanon-m/Failed2Ban-for-VOS-3000.git

#Author & Contributor

Chanon Mingsuwan

Reported bugs can be sent to [email protected]

#How to run file

  • Download files to your server

# git clone https://github.com/chanon-m/Failed2Ban-for-VOS-3000.git

  • Copy Failed2Ban3000.pl to your VOS3000 SoftSwitch in /etc

# cp ./Failed2Ban-for-VOS-3000/Failed2Ban3000.pl /etc

  • Make a file executable

# chmod 755 /etc/Failed2Ban3000.pl

  • Copy whitelist file to /etc

# cp -r ./Failed2Ban-for-VOS-3000/etc/failed2ban3000 /etc

  • Format for the whitelist

####whitelist.ini

ip1
ip2

  • Create a crontab job on your server

If you want Failed2Ban3000.pl to run every 5 minutes, you should code the time as:


# crontab -e

*/5 * * * *      /etc/Failed2Ban3000.pl >> /var/log/failed2ban3000.log&

##TIP - Set QOS in CentOS

  • Add new rules in iptables (Please make sure your switchhub doesn't remove dscp value)

#Setting DSCP
# tos_sip=cs3, tos_audio=ef, tos_video=af41
*mangle
-A OUTPUT -p udp -m udp --sport 5060 -j DSCP --set-dscp-class cs3
-A OUTPUT -p udp -m udp --dport 5060 -j DSCP --set-dscp-class cs3
-A OUTPUT -p udp -m udp --sport 10000:30000 -j DSCP --set-dscp-class ef
COMMIT

  • Restart and monitor

# service iptables restart
# iptables -t mangle -nvL

failed2ban-for-vos-3000's People

Contributors

chanon-m avatar

Watchers

James Cloos avatar jiafeng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.