What's new

Help with blocking incoming IPs

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

SDatl404

New Around Here
I'm being pounded by a server and I need to block the IP.

I created the firewall-start file and put everything in but the IP is still getting routed to my server. What's going on?

iptables -I INPUT -s 37.187.195.49 -j DROP

Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP all -- 37.187.195.49 0.0.0.0/0
DROP all -- 0.0.0.0/0 0.0.0.0/0 state INVALID
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state NEW
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:1723
ACCEPT 47 -- 0.0.0.0/0 0.0.0.0/0
DROP all -- 0.0.0.0/0 0.0.0.0/0

I would prefer not to hassle with dd-wrt
 
Last edited:
I'm being pounded by a server and I need to block the IP.

I created the firewall-start file and put everything in but the IP is still getting routed to my server. What's going on?

iptables -I INPUT -s 37.187.195.49 -j DROP

Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP all -- 37.187.195.49 0.0.0.0/0
DROP all -- 0.0.0.0/0 0.0.0.0/0 state INVALID
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state NEW
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:1723
ACCEPT 47 -- 0.0.0.0/0 0.0.0.0/0
DROP all -- 0.0.0.0/0 0.0.0.0/0

I would prefer not to hassle with dd-wrt

The INPUT chain is only for connections terminated on the router. If it's a port forwarded to one of your internal machines, the rule must be put in the FORWARD chain.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top