🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
11 messages
11 total messages Started by anon Fri, 14 May 2021 13:51
Major sync attack currently in progress
#314551
Author: anon
Date: Fri, 14 May 2021 13:51
13 lines
808 bytes
134.0.0.0/8
23.0.0.0/8
78.0.0.0/8
217.0.0.0/8
37.0.0.0/8
104.0.0.0/8
144.0.0.0/8
136.0.0.0/8
95.0.0.0/8
178.0.0.0/8
45.0.0.0/8
165.0.0.0/8
206.0.0.0/8
Re: Major sync attack currently in progress
#314562
Author: SEC3
Date: Sun, 16 May 2021 17:20
27 lines
1411 bytes
On 2021-05-14 9:51 a.m., anon wrote:
> 134.0.0.0/8
> 23.0.0.0/8
> 78.0.0.0/8
> 217.0.0.0/8
> 37.0.0.0/8
> 104.0.0.0/8
> 144.0.0.0/8
> 136.0.0.0/8
> 95.0.0.0/8
> 178.0.0.0/8
> 45.0.0.0/8
> 165.0.0.0/8
> 206.0.0.0/8
> 

I'm confused about the /8 part.

I read that this is called the CIDR notation. But it isn't always /8.
Sometimes it's /24 or /30.

How would I determine what the correct CIDR notation is for SEC3's IP 
address: 45.138.97.132 ?


--
SEC3
Re: Major sync attack currently in progress
#314564
Author: Grant Taylor
Date: Sun, 16 May 2021 21:15
37 lines
2319 bytes
On 5/16/21 11:20 AM, SEC3 wrote:
> I'm confused about the /8 part.

I suspect that it's arbitrary.

> I read that this is called the CIDR notation. But it isn't always /8.
> Sometimes it's /24 or /30.

It can be anywhere between 0 and 32 for IPv4.  Similarly it can be 
anywhere between 0 and 128 for IPv6.

The "Classless" part of it's name means that it's no longer on the 8-bit 
(~class) boundaries of old; 8, 16, 24.

> How would I determine what the correct CIDR notation is for SEC3's IP 
> address: 45.138.97.132 ?

That is really contextually dependent.

/An/ IP, as in a /singular/ IP is going to be a /32 or a /128.

It can be difficult if not impossible to determine the subnet mask is 
(which is what CIDR notation encodes) for an arbitrary IP on the 
Internet.  Arguably, you shouldn't /need/, much less /want/ to care what 
a remote IP's subnet mask is.

I suspect the contextual collision is that someone may want to block a 
/network/, which does include a subnet mask component as part of the 
definition of the /network/.  --  So, someone might want to block a 
class A sized network (/8) while allowing a specific IP (/32) therein 
through.



-- 
Grant. . . .
unix || die
Re: Major sync attack currently in progress
#314566
Author: SEC3
Date: Sun, 16 May 2021 21:57
54 lines
2967 bytes
On 2021-05-16 5:15 p.m., Grant Taylor wrote:
> On 5/16/21 11:20 AM, SEC3 wrote:
>> I'm confused about the /8 part.
> 
> I suspect that it's arbitrary.
> 
>> I read that this is called the CIDR notation. But it isn't always /8.
>> Sometimes it's /24 or /30.
> 
> It can be anywhere between 0 and 32 for IPv4.  Similarly it can be 
> anywhere between 0 and 128 for IPv6.
> 
> The "Classless" part of it's name means that it's no longer on the 8-bit 
> (~class) boundaries of old; 8, 16, 24.
> 
>> How would I determine what the correct CIDR notation is for SEC3's IP 
>> address: 45.138.97.132 ?
> 
> That is really contextually dependent.
> 
> /An/ IP, as in a /singular/ IP is going to be a /32 or a /128.
> 
> It can be difficult if not impossible to determine the subnet mask is 
> (which is what CIDR notation encodes) for an arbitrary IP on the 
> Internet.  Arguably, you shouldn't /need/, much less /want/ to care what 
> a remote IP's subnet mask is.

Thanks for clearing this up for me.
> 
> I suspect the contextual collision is that someone may want to block a 
> /network/, which does include a subnet mask component as part of the 
> definition of the /network/.  --  So, someone might want to block a 
> class A sized network (/8) while allowing a specific IP (/32) therein 
> through.

My interest in this stems from seeing online other operator's Postfix 
configurations. Specifically their settings for "mynetworks" in their 
/etc/postfix/main.cf file.

See for example this 2015 (!) newsgroup post where a pinger operator (it 
appearsto be Inwtx) shares his Postfix configuration:

<https://groups.google.com/g/alt.privacy.anon-server/c/kGaB7I9o8fM/m/v4bp9HHNBwAJ>

His mynetworks setting is reported as:

mynetworks = 127.0.0.0/8 128.199.47.171/32

So if I were to use similar settings at SEC3.net I would want to know my 
IP address's CIDR notation which seems to be obligatory in this 
circumstance.

--
SEC3
Re: Major sync attack currently in progress
#314568
Author: inwtx
Date: Sun, 16 May 2021 22:23
16 lines
2103 bytes
> 
> His mynetworks setting is reported as:
> 
> mynetworks = 127.0.0.0/8 128.199.47.171/32
> 
> So if I were to use similar settings at SEC3.net I would want to know my IP address's CIDR notation which seems to be obligatory in this circumstance.
> 
  That was a long time ago.  As I remember, I had my IP address in there as just 128.199.47.171 at first, but for some reason I had to add the /32 to make the instruction work.  Zax had suggested postfix be setup that way.  However, since then there was a write up that using an IP address in the postfix main.cf like that was somehow found to be dangerous.  I posted the article on apas and asked if the additional 128.199.47.171/32 should be omitted.  Elvis came back and said most definitely.

  I only have mynetworks = 127.0.0.0/8 there now.

  If you look in your iptables backup file (iptables-save > /etc/iptables.up.rules) (mine s called /etc/iptables.up.rules), you will see that iptables actually saves any addresses you have hard coded in you iptables will have the /32 at the end.  This is automatically appended by the iptables-save instruction.  Here are a few of my hard coded remailer IPs:

-A INPUT -s 5.45.99.221/32 -p tcp -m comment --comment devurandom -j ACCEPT
-A INPUT -s 5.181.51.40/32 -p tcp -m comment --comment krautrelay -j ACCEPT
-A INPUT -s 23.235.43.133/32 -p tcp -m comment --comment github -j ACCEPT
Re: Major sync attack currently in progress
#314571
Author: Grant Taylor
Date: Mon, 17 May 2021 05:48
82 lines
4779 bytes
On 5/16/21 3:57 PM, SEC3 wrote:
> Thanks for clearing this up for me.

You're welcome.

> My interest in this stems from seeing online other operator's Postfix 
> configurations. Specifically their settings for "mynetworks" in their 
> /etc/postfix/main.cf file.

Okay.  Thank you for providing more context to refine the question. 
(See below.)

> See for example this 2015 (!) newsgroup post where a pinger operator 
> (it appearsto be Inwtx) shares his Postfix configuration:
> 
> <https://groups.google.com/g/alt.privacy.anon-server/c/kGaB7I9o8fM/m/v4bp9HHNBwAJ>
> 
> His mynetworks setting is reported as:
> 
> mynetworks = 127.0.0.0/8 128.199.47.171/32
> 
> So if I were to use similar settings at SEC3.net I would want to 
> know my IP address's CIDR notation which seems to be obligatory in 
> this circumstance.

Yes, the "mynetworks" list and it's use of CIDR is somewhat different 
from the "How would I determine what the correct CIDR notation is for 
<someone else>'s IP address" that I took your question to be and what I 
responded to.  --  Sorry if I misunderstood your question.

I would expect anyone that is running their own server to either know 
what their configured netmask is, or where to look to find it 
("ifconfig" or "ip addr show").

"mynetworks" means a bit more than what CIDR / netmask is 
$RandomPersonAcrossTheInternet using.

First, let's back up and restate what a netmask is and what it actually 
effectively does.  Eliding the binary math -- there are a LOT of pages 
that talk about it -- the purpose of a netmask, and thus CIDR, is to 
specify how big a given network is.  As in how many IP addresses are 
part of a given network.

I've likened this to the size of a room.  The bigger the room (the 
shorter the netmask is) is the more people (IPs) that are inside the 
room.  This is important because you / your computer know that you can 
talk to people in the room without needing to go out through a door 
(gateway / router) to get to them.  --  Eliding yelling and noise 
distortion.

So, I believe I could make an argument that "mynetworks" could be called 
"myrooms" in my analogy.  And as such, it's a list of one or more rooms 
(networks) that belong to me, hence the possessive "my...".  Thus 
myrooms is a list of rooms which includes the CIDR notation of how big 
the room(s) is (are).  My home ""room is a /24, thus can hold 256 
(simple powers of two and ignoring network and broadcast) people (IPs). 
My neighbor, whom I trust, also has a ""room that is a /24, thus can 
hold 256 different people.  But, collectively, both my home and my 
neighbor's home, and all the people (IPs) therein are allowed to use the 
swimming pool (SMTP server) outback.

So, to come back to how do I know that I enter 192.0.2.0/24 for my home 
and 198.51.100.0/24 for my neighbor's home?  Well, I configured the 
network for my home and can look at the settings that I used.  I can 
also chat with my neighbor to find the settings that he used.  Thus I 
know that I used a /24 and that my neighbor also used a /24.

Hence why myrooms ~> mynetworks is a list of our trusted networks; 
192.0.2.0/24, and 198.51.100.0/24.  Also, we throw 127.0.0.0/8 in there 
for good measure, for various reasons.

Aside:  Think of 127.0.0.1 and / or 127.0.0.0/8 as me, myself, and I. 
All three of which implicitly trust each other.  --  Maybe they 
shouldn't, but that's a different discussion.

Does that help explain where the information comes from and why it's used?



-- 
Grant. . . .
unix || die
Re: Major sync attack currently in progress
#314572
Author: Grant Taylor
Date: Mon, 17 May 2021 06:00
63 lines
4008 bytes
On 5/16/21 4:23 PM, inwtx wrote:
> That was a long time ago.  As I remember, I had my IP address in 
> there as just 128.199.47.171 at first, but for some reason I had to 
> add the /32 to make the instruction work.

128.199.47.171 is an IP address.  /IP/ /addresses/ are not the same 
thing as a /network/.

128.199.47.171/32 is a /network/.  It just happens to be a /network/ of 
exactly /one/ IP address.

Seeing as how the context is "my/networks/", with the operative word 
being "networks", I would expect that you need to enter /networks/, not 
/IP/ /addresses/.  Hence the need for the /32 on the end.

> Zax had suggested postfix be setup that way.  However, since then 
> there was a write up that using an IP address in the postfix main.cf 
> like that was somehow found to be dangerous.  I posted the article on 
> apas and asked if the additional 128.199.47.171/32 should be omitted. 
> Elvis came back and said most definitely.

I don't know enough about Postfix to know how or why including your 
public IP address in mynetworks could be dangerous or should be omitted. 
  Maybe it's an aspect of Postfix that I'm not aware of.

 From my limited understanding of Postfix, mynetworks is used as a list 
of networks that are trusted to do different things which would 
otherwise not be permitted, e.g. relaying through the server.

So, with that in mind, I don't see what the effective difference is in 
adding a server's public IP (as a /32 network) to the mynetworks list.

I don't know how often something running on a server will connect from 
it's public IP to it's public IP.  Which is where the public IP might be 
/needed/.  Conversely, I'd think that things running on a server would 
connect from it's loopback IP to it's loopback IP.  Thus being covered 
by 127.0.0.1/32 and / or 127.0.0.0/8.

>    I only have mynetworks = 127.0.0.0/8 there now.

Aside:  I'm not a fan of 127.0.0.0/8 over 127.0.0.1/32.  I so seldom see 
additional IPs in the 127.0.0.0/8 network actually bound to the loopback 
interface.

> If you look in your iptables backup file (iptables-save > 
> /etc/iptables.up.rules) (mine s called /etc/iptables.up.rules), 
> you will see that iptables actually saves any addresses you have 
> hard coded in you iptables will have the /32 at the end.  This is 
> automatically appended by the iptables-save instruction.

I believe it's more than /just/ the iptables-save command.  iptables in 
kernel actually uses /networks/, not IPs.  They are in kernel memory 
with the netmask too.  iptables-save dutifully reports what's in the 
kernel's iptables structure.  Similarly, the iptables-restore command 
dutifully uses the network form when loading rules back into the kernel. 
  And the iptables command does similar, both entering and reporting. 
Likewise for ip6tables, all be it more bits.



-- 
Grant. . . .
unix || die
Re: Major sync attack currently in progress
#314573
Author: SEC3
Date: Mon, 17 May 2021 14:09
91 lines
5208 bytes
On 2021-05-17 1:48 a.m., Grant Taylor wrote:
> On 5/16/21 3:57 PM, SEC3 wrote:
>> Thanks for clearing this up for me.
> 
> You're welcome.
> 
>> My interest in this stems from seeing online other operator's Postfix 
>> configurations. Specifically their settings for "mynetworks" in their 
>> /etc/postfix/main.cf file.
> 
> Okay.  Thank you for providing more context to refine the question. (See 
> below.)
> 
>> See for example this 2015 (!) newsgroup post where a pinger operator 
>> (it appearsto be Inwtx) shares his Postfix configuration:
>>
>> <https://groups.google.com/g/alt.privacy.anon-server/c/kGaB7I9o8fM/m/v4bp9HHNBwAJ> 
>>
>>
>> His mynetworks setting is reported as:
>>
>> mynetworks = 127.0.0.0/8 128.199.47.171/32
>>
>> So if I were to use similar settings at SEC3.net I would want to know 
>> my IP address's CIDR notation which seems to be obligatory in this 
>> circumstance.
> 
> Yes, the "mynetworks" list and it's use of CIDR is somewhat different 
> from the "How would I determine what the correct CIDR notation is for 
> <someone else>'s IP address" that I took your question to be and what I 
> responded to.  --  Sorry if I misunderstood your question.
> 
> I would expect anyone that is running their own server to either know 
> what their configured netmask is, or where to look to find it 
> ("ifconfig" or "ip addr show").

ip addr show.
I didn't think to try that. It reveals, among other things:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP group default qlen 1000
     link/ether 00:16:3e:e5:88:33 brd ff:ff:ff:ff:ff:ff
     inet 45.138.97.132/24 brd 45.138.97.255 scope global eth0

So there is my answer. /24

> 
> "mynetworks" means a bit more than what CIDR / netmask is 
> $RandomPersonAcrossTheInternet using.
> 
> First, let's back up and restate what a netmask is and what it actually 
> effectively does.  Eliding the binary math -- there are a LOT of pages 
> that talk about it -- the purpose of a netmask, and thus CIDR, is to 
> specify how big a given network is.  As in how many IP addresses are 
> part of a given network.
> 
> I've likened this to the size of a room.  The bigger the room (the 
> shorter the netmask is) is the more people (IPs) that are inside the 
> room.  This is important because you / your computer know that you can 
> talk to people in the room without needing to go out through a door 
> (gateway / router) to get to them.  --  Eliding yelling and noise 
> distortion.
> 
> So, I believe I could make an argument that "mynetworks" could be called 
> "myrooms" in my analogy.  And as such, it's a list of one or more rooms 
> (networks) that belong to me, hence the possessive "my...".  Thus 
> myrooms is a list of rooms which includes the CIDR notation of how big 
> the room(s) is (are).  My home ""room is a /24, thus can hold 256 
> (simple powers of two and ignoring network and broadcast) people (IPs). 
> My neighbor, whom I trust, also has a ""room that is a /24, thus can 
> hold 256 different people.  But, collectively, both my home and my 
> neighbor's home, and all the people (IPs) therein are allowed to use the 
> swimming pool (SMTP server) outback.
> 
> So, to come back to how do I know that I enter 192.0.2.0/24 for my home 
> and 198.51.100.0/24 for my neighbor's home?  Well, I configured the 
> network for my home and can look at the settings that I used.  I can 
> also chat with my neighbor to find the settings that he used.  Thus I 
> know that I used a /24 and that my neighbor also used a /24.
> 
> Hence why myrooms ~> mynetworks is a list of our trusted networks; 
> 192.0.2.0/24, and 198.51.100.0/24.  Also, we throw 127.0.0.0/8 in there 
> for good measure, for various reasons.
> 
> Aside:  Think of 127.0.0.1 and / or 127.0.0.0/8 as me, myself, and I. 
> All three of which implicitly trust each other.  --  Maybe they 
> shouldn't, but that's a different discussion.
> 
> Does that help explain where the information comes from and why it's used?

Very informative. thanks again.
Re: Major sync attack currently in progress
#314574
Author: Grant Taylor
Date: Mon, 17 May 2021 15:20
40 lines
2355 bytes
On 5/17/21 8:09 AM, SEC3 wrote:
> ip addr show.
> I didn't think to try that. It reveals, among other things:

;-)

> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
> state UP group default qlen 1000
>     link/ether 00:16:3e:e5:88:33 brd ff:ff:ff:ff:ff:ff
>     inet 45.138.97.132/24 brd 45.138.97.255 scope global eth0
> 
> So there is my answer. /24

Yep.

ifconfig displays the same information in a slightly different format. 
"netmask 255.255.255.0" means "/24".

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet 45.138.97.132  netmask 255.255.255.0  broadcast 45.138.97.255
    ...

Synthetically fabricated based on local ifconfig output and modified 
with the IP from the thread.

Hence the "you can look it up" for your own systems (if you don't 
already know it) sentiment of a previous comment.

I learned long ago to not memorize things that are easy to look up and 
may likely be somewhat specific to each system.

> Very informative. thanks again.

You're welcome.



-- 
Grant. . . .
unix || die
Re: Major sync attack currently in progress
#314579
Author: inwtx
Date: Mon, 17 May 2021 20:41
22 lines
1352 bytes
> 
> On 5/17/21 8:09 AM, SEC3 wrote:
> 
>> ip addr show.
>> I didn't think to try that. It reveals, among other things:
> 
> 
> 
> 
>> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
>>     link/ether 00:16:3e:e5:88:33 brd ff:ff:ff:ff:ff:ff
>>     inet 45.138.97.132/24 brd 45.138.97.255 scope global eth0
>>
>> So there is my answer. /24
> 
> Yep.
> 
> ifconfig displays the same information in a slightly different format. "netmask 255.255.255.0" means "/24".
> 
netmask 255.255.255.0" means "/24"
netmask 255.255.0.0" means "/16"
netmask 255.0.0.0" means "/8"
Re: Major sync attack currently in progress
#314583
Author: Grant Taylor
Date: Mon, 17 May 2021 22:38
49 lines
2656 bytes
On 5/17/21 2:41 PM, inwtx wrote:
> netmask 255.255.255.0" means "/24"
> netmask 255.255.0.0" means "/16"
> netmask 255.0.0.0" means "/8"

If you're fully enumerating....

% for ((n=0; n<33; n++)); do printf "netmask \"%s\" means \"/%d\"\n" 
$(sipcalc 192.0.2.0/$n | awk '($1 == "Network" && $2 == "mask" && $3 == 
"-"){print $4}') $n; done
netmask "0.0.0.0" means "/0"
netmask "128.0.0.0" means "/1"
netmask "192.0.0.0" means "/2"
netmask "224.0.0.0" means "/3"
netmask "240.0.0.0" means "/4"
netmask "248.0.0.0" means "/5"
netmask "252.0.0.0" means "/6"
netmask "254.0.0.0" means "/7"
netmask "255.0.0.0" means "/8"
netmask "255.128.0.0" means "/9"
netmask "255.192.0.0" means "/10"
netmask "255.224.0.0" means "/11"
netmask "255.240.0.0" means "/12"
netmask "255.248.0.0" means "/13"
netmask "255.252.0.0" means "/14"
netmask "255.254.0.0" means "/15"
netmask "255.255.0.0" means "/16"
netmask "255.255.128.0" means "/17"
netmask "255.255.192.0" means "/18"
netmask "255.255.224.0" means "/19"
netmask "255.255.240.0" means "/20"
netmask "255.255.248.0" means "/21"
netmask "255.255.252.0" means "/22"
netmask "255.255.254.0" means "/23"
netmask "255.255.255.0" means "/24"
netmask "255.255.255.128" means "/25"
netmask "255.255.255.192" means "/26"
netmask "255.255.255.224" means "/27"
netmask "255.255.255.240" means "/28"
netmask "255.255.255.248" means "/29"
netmask "255.255.255.252" means "/30"
netmask "255.255.255.254" means "/31"
netmask "255.255.255.255" means "/32"



-- 
Grant. . . .
unix || die
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads