Preventing IPs from reaching server

  • Thread starter Thread starter pmclinn
  • Start date Start date
P

pmclinn

I'm looking for some sample code that would show me how to prevent 2-3
ips from connecting to my server. Basically a very dumb firewall.

So the process would work like this...

upon request, on any port, the application would grab the users ip. If
it is one of the three blocked ips it would drop connection.

Any direction on this task would be appreciated.

-Peter
 
I want to add predetermined programmatic triggers, that will add people
to the deny list. And I do not feel like buying a good cisco router to
do it. Unless you know of another firewall, cheap, that I can ssh2
into and upload a new access list?

Looking at my current router logs there would be over a 1000 ip blocked
within the first day....

So far the code I have found just redirects users by ip on port 80.
 
This might do the trick for you , I think you can upload lists into it
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top