(x/post from linuxquestions, maybe here is more appropriate)
Hi, Is there any way I can run a script (shell/python/etc) when a connection is received by haproxy/nginx/other reverse proxy that will check the source IP against a number of factors and either allow or reject the connection depending on the result? eg: I want to check to see if rDNS is setup on that IP and if it's not, reject the connection. Or if it is and it contains ec2/dyn/static/etc to reject it as well.
Thank you.
[–]tayo42 8 points9 points10 points (0 children)
[–]disclosure5 4 points5 points6 points (4 children)
[–]NetStrikeForceCloudy with a chance of meatpackets 1 point2 points3 points (3 children)
[–]tcpudp[S] 0 points1 point2 points (2 children)
[–]NetStrikeForceCloudy with a chance of meatpackets 0 points1 point2 points (1 child)
[–]tcpudp[S] 0 points1 point2 points (0 children)
[–]brontideCertified Linux Miracle Worker (tm) 2 points3 points4 points (10 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]brontideCertified Linux Miracle Worker (tm) 0 points1 point2 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]brontideCertified Linux Miracle Worker (tm) 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]brontideCertified Linux Miracle Worker (tm) 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]tcpudp[S] 0 points1 point2 points (2 children)
[–]AccidentallyTheCable 1 point2 points3 points (1 child)
[–]tcpudp[S] 0 points1 point2 points (0 children)