Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.networking > #4871
| From | Allodoxaphobia <trepidation@example.net> |
|---|---|
| Newsgroups | comp.os.linux.networking |
| Subject | Re: Blocking IP addresses with iptables |
| Date | 2021-04-02 12:58 +0000 |
| Message-ID | <slrns6e57b.8qn.trepidation@vps.jonz.net> (permalink) |
| References | <s4574u$1blp$1@gioia.aioe.org> <s457g1$1qt1$1@gioia.aioe.org> |
On Thu, 1 Apr 2021 19:38:41 +0000 (UTC), John Smith wrote:
> On Thu, 01 Apr 2021 19:32:46 +0000, John Smith wrote:
>
>> I have the following iptables rule:
>>
>> iptables -A INPUT -p tcp -s 11.12.22/19 --dport 1234 -i eth0 -j
>> DROP
>>
>> With this rule, what IP addresses will be blocked when trying to
>> establish a TCP connection on port 1234?
>
> I am aware of the --src-range option to iptables - no need to
> bring it up.
Don't use iptables here, I use pf.
(I wonder if 11.12.22/19 should be 11.12.22.0/19)
But, 11.12.0.0/19 == 11.12.0.0 -> 11.12.31.255
https://www.ipaddressguide.com/cidr
Jonesy
--
Marvin L Jones | Marvin | W3DHJ.net | linux
38.238N 104.547W | @ jonz.net | Jonesy | FreeBSD
* Killfiling google & XXXXbanter.com: jonz.net/ng.htm
Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Blocking IP addresses with iptables John Smith <12345@whatismyemailaddress.xyz> - 2021-04-01 19:32 +0000
Re: Blocking IP addresses with iptables John Smith <12345@whatismyemailaddress.xyz> - 2021-04-01 19:38 +0000
Re: Blocking IP addresses with iptables Allodoxaphobia <trepidation@example.net> - 2021-04-02 12:58 +0000
Re: Blocking IP addresses with iptables "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2021-04-02 01:38 -0400
Re: Blocking IP addresses with iptables "Carlos E.R." <robin_listas@es.invalid> - 2021-04-02 14:49 +0200
Re: Blocking IP addresses with iptables "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2021-04-02 13:14 -0400
Re: Blocking IP addresses with iptables "Carlos E.R." <robin_listas@es.invalid> - 2021-04-02 22:42 +0200
Re: Blocking IP addresses with iptables "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2021-04-03 02:16 -0400
Re: Blocking IP addresses with iptables "Carlos E.R." <robin_listas@es.invalid> - 2021-04-03 22:39 +0200
Re: Blocking IP addresses with iptables "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2021-04-03 18:02 -0400
Re: Blocking IP addresses with iptables Marc Haber <mh+usenetspam1118@zugschl.us> - 2021-04-02 21:47 +0200
Re: Blocking IP addresses with iptables Jorgen Grahn <grahn+nntp@snipabacken.se> - 2021-04-05 14:36 +0000
Re: Blocking IP addresses with iptables Marc Haber <mh+usenetspam1118@zugschl.us> - 2021-04-05 20:02 +0200
csiph-web