Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.065 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'say,': 0.05; 'subject:Python': 0.06; 'hosts': 0.07; 'generous': 0.09; 'host,': 0.09; 'rfc': 0.09; 'skip:2 30': 0.09; 'assume': 0.14; '65536': 0.16; 'blacklist': 0.16; 'blocks': 0.16; 'discussion.': 0.16; 'entries,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'it),': 0.16; 'peers.': 0.16; 'roy': 0.16; 'switches': 0.16; 'tcp': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'do.': 0.18; '(the': 0.22; 'command': 0.22; 'admin': 0.22; 'entries': 0.24; 'instance,': 0.24; 'merge': 0.24; 'question': 0.24; 'sort': 0.25; 'purposes': 0.26; 'header:In-Reply-To:1': 0.27; 'external': 0.29; 'possibility': 0.29; 'related': 0.29; "doesn't": 0.30; 'change,': 0.30; 'dos': 0.30; 'said,': 0.30; 'message- id:@mail.gmail.com': 0.30; 'easier': 0.31; 'block,': 0.31; 'question:': 0.31; 'file': 0.32; 'run': 0.32; '(including': 0.33; 'linux': 0.33; 'charge': 0.33; 'addresses': 0.33; 'mac': 0.33; 'connection': 0.35; 'something': 0.35; 'operate': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'ram': 0.36; 'representing': 0.36; 'done': 0.36; 'possible': 0.36; 'behind': 0.37; 'so,': 0.37; 'two': 0.37; 'server': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'users': 0.40; 'easy': 0.60; 'skip:2 20': 0.60; 'most': 0.60; 'entire': 0.61; 'matter': 0.61; 'john': 0.61; 'simple': 0.61; 'you.': 0.62; 'making': 0.63; 'address': 0.63; 'connecting': 0.64; 'more': 0.64; 'within': 0.65; 'here': 0.66; '26,': 0.68; 'judge': 0.68; 'home': 0.69; 'internet': 0.71; 'computers': 0.72; 'evaluate': 0.72; 'difference.': 0.84; 'etc,': 0.84; 'technique.': 0.84; "they'd": 0.84; 'unaware': 0.84; 'unique.': 0.84; 'absolutely': 0.87; 'mean.': 0.91; 'connection,': 0.95; 'bandwidth': 0.96; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1CTkx87YkMoqnnbha2gOjvVPhjMVX2f9i0zpHHOQR30=; b=Dj7vpNPGI1kMhSBAAiuLavNTOaR3vId4o5LpdeANaUFWWKct4LC3Z78gauYRNG/VFr 5c/mxAQB7GzytYcF6Ea1W7kT/wH94yHIUMnCWhnnX5tsMyTm3+q9zrhXOG6MYTdhLstj us3aiMiVXR/p+U96H8hr7UjiZdgFqylEIn4EnrbNLzIU2DTQfHBmhcNsAVbvTNRxlFRT uC9vmPWdzI4C+bGRB+PTTH1vzbi9QLf9+Dv6Gzdw9FA0MCdCYYSCgkGTcmOw9EkUY2yQ iwpsTIeEgTsdp0+lGFZL8extKEs5UE7ch4E6yBwh3EpyEXyyol4rOr5WOAsVUS0x0UqD T2LQ== MIME-Version: 1.0 X-Received: by 10.58.187.164 with SMTP id ft4mr12125117vec.5.1369539929271; Sat, 25 May 2013 20:45:29 -0700 (PDT) In-Reply-To: <8f19e20c-4f77-43dc-a732-4169e482d2b2@googlegroups.com> References: <27969350-4dd8-4afa-881a-b4a2364b3cf1@googlegroups.com> <51a0caac$0$30002$c3e8da3$5496439d@news.astraweb.com> <7cd17be8-d455-4db8-b8d0-ccc757db5cff@googlegroups.com> <8f19e20c-4f77-43dc-a732-4169e482d2b2@googlegroups.com> Date: Sun, 26 May 2013 13:45:29 +1000 Subject: Re: Python Magazine From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 45 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369539932 news.xs4all.nl 15940 [2001:888:2000:d::a6]:38272 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46035 On Sun, May 26, 2013 at 1:04 PM, John Ladasky wrote: > A perfectly fair point, Roy. It's just when you started suggesting connecting to your neighbor's file server -- well, that's not something that many people would ordinarily do. So, my mind leaped to the possibility of uninvited connections. > > Related question: would denial-of-service attacks be more pernicious without a NAT? Not sure what you mean. If we assume that network topology doesn't change, then what we have is a single uplink (say, an ADSL connection, given that most home users don't have luxuries) going to a router (let's be generous here and say that's a Linux box with two NICs, and you have a smart admin in charge of it), behind which is a set of switches and computers making up a LAN of peers. On IPv4, the LAN would operate on one of the RFC 1918 address blocks - say, 192.168.0.x - and all external communication would be through one single IP address - 203.0.113.47 will do for the purposes of discussion. As far as other hosts on the internet are concerned, that entire network is one single host, with address 203.0.113.47. It's unaware of the three computers 192.168.0.4, .0.87, and .0.92; they merge into one. This means they share the 65536 ports, they share entries on blacklists, etc, etc. With IPv6, that ADSL connection would come with a /64 block - say, 2001:db8:142:857::/64. Within that block, each computer would be assigned a single address - perhaps 2001:db8:142:857::4, 2001:db8:142:857::87, and 2001:db8:142:857::92, or perhaps they'd be assigned them by their MAC addresses eg 2001:db8:142:857:200:5eff:fe00:531a, which can be done automatically. Now all your computers (including the router) are individually addressable; they can be identified separately, or treated as a group (the /64 representing the whole group). Their ports, blacklist entries, etc, are all unique. This means you can run three servers on port 80, etc. The question now is: What sort of DOS attack are you fearing? If it's a simple matter of saturating the connection, it makes absolutely no difference. As Roy said, that's just a question of overloading. If I command more bandwidth than you do, I can saturate you. Easy. (Very easy if I have a botnet, for instance.) Harder to judge are the amplifying attacks; a half-open-connection attack, for instance, attacks a TCP server's RAM allocation. It's possible that some attacks will be easier or harder with NAT than without, but you'd have to evaluate a specific attack technique. ChrisA