Re: Blocking incoming IP address immediately

From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 11/30/04


Date: 30 Nov 2004 01:56:00 GMT


"Jeff Franks" <jfranks1970@charter.net> writes:

]> What command exactly are you typing?
]>
]Lots of different ones :) I'm trying everything from the simple to the
]complicated (in my mind).

]Basically "iptables -s 123.45.67.89 -i INPUT -j DROP" (or REJECT, i've done
]both).

]> Are you using --syn at all? (Don't, as you want to be rejecting all
]> packets
]> from them.)

]I played with --syn and with the --state, but I really didn't know what I
]was doing, so I gave up on those :)

]> You would only expect it to disconnect if it sent a REJECT back to the
]> source that prompted a complete disconnection. Such a reject should really
]> be `--reject-with tcp-reset', too.

]AH! now there is something IU haven't tried. I'll give that a shot.

]>> Even if I restart the iptables service, it continues to let him stay in.
]>> Once I restart the entire computer (which kills all connections) it will
]>> block them.
]>
]> How about if you
]> nohup /etc/init.d/network restart
]> ? Actually, doing an ifconfig eth0 down ; ifconfig eth0 up might fix it
]> (but not from a remote shell lest you want to lose access altogether ;)
]>

]Well, there is a problem with downing the entire interface. This is a game
]server with 30+ users on it most all the time. I need to be able to block a
]single user on the fly without effecting the "good guys".

It is an iptables issue. IPtables could be brought down and up, rather than
the interface (which would not do much).



Relevant Pages

  • Re: Problem about ppp -nat
    ... My Internet interface is rl0, ... I don't have NIC card for public. ... Restart some services ... My FBSD host can NOT even dial out to ISP. ...
    (freebsd-questions)
  • Re: passive ftp problem
    ... echo " External Interface: $EXTIF" ... # If your Linux distribution came with a copy of iptables, ... Outgoing traffic from various internfaces. ...
    (comp.os.linux.security)
  • Re: Share internet connection/make a small server
    ... iptables: ... Shutting down interface eth0: ... Shutting down interface eth1: ...
    (Fedora)
  • Re: Allowing DNS with iptables
    ... >> #Setting the EXTERNAL and INTERNAL interfaces for the network ... >> # The location of various iptables and other shell programs ... This enables dynamic-address hacking ... >> # remote interface, claiming to be local machines, IP spoofing, get lost ...
    (comp.os.linux.security)
  • Re: Allowing DNS with iptables
    ... >>#Setting the EXTERNAL and INTERNAL interfaces for the network ... >># The location of various iptables and other shell programs ... This enables dynamic-address hacking ... >># remote interface, claiming to be local machines, IP spoofing, get lost ...
    (comp.os.linux.security)