Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Banjax Installation on Centos #51

Open
Samirarahiqi opened this issue Feb 17, 2021 · 12 comments
Open

Banjax Installation on Centos #51

Samirarahiqi opened this issue Feb 17, 2021 · 12 comments

Comments

@Samirarahiqi
Copy link

Hi everybody,
I have a Apache Traffic Server . And now I want to use banjax on it. Now the ATS has been installed on my server (ATS v 8.0.8). I installed banjax based on guide in github. When I installed it from so file all the tests were passed and there is not any error. But there is not any banjax.so file . And when I installed it from source there is an error , how can I fix it ?
OS : Centos
ATS version : 8.0.8
Error :
[ 19%] Building CXX object CMakeFiles/banjax_static.dir/src/banjax.cpp.o
/opt/banjax/src/banjax.cpp:13:10: fatal error: ts/ts.h: No such file or directory
#include <ts/ts.h>
^~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/banjax_static.dir/src/banjax.cpp.o] Error 1
make[1]: *** [CMakeFiles/banjax_static.dir/all] Error 2
make: *** [all] Error 2
ts error

@joelanders
Copy link
Contributor

Hi! Thanks for the interest. You just have to install the ATS dev headers to fix your current problem, but I feel like I should warn you this plugin is going away soon (we're moving to an Nginx-based setup).

@Samirarahiqi
Copy link
Author

Hi! Thanks for the interest. You just have to install the ATS dev headers to fix your current problem, but I feel like I should warn you this plugin is going away soon (we're moving to an Nginx-based setup).

Hi. Thanks for your guide . But I have installed ATS dev headers on ATS. Did you mean as below ?! Can you explain it more ?
apt-get install build-essential git libzmq-dev unzip automake libtool pkg-config libssl-dev libboost-dev

@joelanders
Copy link
Contributor

I think you need to apt-get install trafficserver-dev since that's where "ts.h" comes from.

@Samirarahiqi
Copy link
Author

I think you need to apt-get install trafficserver-dev since that's where "ts.h" comes from.

So if I want to install it on Centos, should I do as: "yum install trafficserver-devel-7"?!

@joelanders
Copy link
Contributor

Well that sounds like it will provide the headers for ATS 7.x and you said earlier you're on 8.x.

@joelanders
Copy link
Contributor

Talking with a colleague just now, it sounds like we've never tried to use this plugin with ATS 8.x, so I really think this won't be worth your time :/.

@Samirarahiqi
Copy link
Author

Talking with a colleague just now, it sounds like we've never tried to use this plugin with ATS 8.x, so I really think this won't be worth your time :/.

Is there an alternative that can prevent DDOS attacks on ATS servers?

@joelanders
Copy link
Contributor

Have you seen fail2ban?

@Samirarahiqi
Copy link
Author

Have you seen fail2ban?

Yes. But I want to use a safer method.

@joelanders
Copy link
Contributor

Which features specifically are you looking for? Pretty much all Banjax does is:

  • You specify some regexes and rate limits. If some IP goes over the rate-limit, they get banned. But you'd have to set up this other Swabber tool of ours that does the iptables stuff.
  • You can turn on one of a few kinds of "challenges": a sha-inverse proof-of work thing (users will see a "please wait" page while their browser runs some javascript), a password challenge, or a captcha.

@joelanders
Copy link
Contributor

joelanders commented Feb 17, 2021

So if you want the first thing (the regex rate-limiting banning thing), I think that's pretty much what fail2ban does.

I'm not sure of an ATS plugin that does the second thing (the captchas + sha-inverse proof-of-work page).

@joelanders
Copy link
Contributor

https://github.com/crowdsecurity
^ I don't know anything about this project and have never used it, but it might be worth a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants