🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #314572

Re: Major sync attack currently in progress

#314572
From: 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
Technical Details
Message-ID: <s7t0ui$7de$1@tncsrv09.home.tnetconsulting.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <7zgoI.153711$RLG6.26519@fx19.ams1> <s7s61s$k8j$1@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <s7t0ui$7de$1@tncsrv09.home.tnetconsulting.net>
Subject: Re: Major sync attack currently in progress
Date: Mon, 17 May 2021 00:00:52 -0600
From: Grant Taylor <gtaylor@tnetconsulting.net>
References: <7zgoI.153711$RLG6.26519@fx19.ams1> <s7s61s$k8j$1@news.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: TNet Consulting
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 17 May 2021 06:02:58 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251"; logging-data="7598"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0
In-Reply-To: <s7s61s$k8j$1@news.mixmin.net>
Content-Language: en-US
Lines: 62