Slashdot Mirror


ISPs And Router Security

IPvNOT asks: "With all the script kiddies and distributed denial of service tools that spring up each week, there is an increasing use of spoofed network addresses. It would seem logical to me, to help control some of the problem, for ISP's to install a simple access control list (ACL) entry that blocks all packets that do not contain an address within their 'internal' network. How hard would this be to implement on a large scale? Would ISPs implement this?" I would think that an ISP would be able to block and drop anything they receive from the outside if its IP address starts with '192.168.', '127.' or '10.', and there are several others that can be screened for -- are there reasons that ISPs don't do this?

199 comments

  1. Some ISPs will by grahamsz · · Score: 3

    But if you start applying further checks to every packet then the network will surely start to slow and in such a competitive world isps dont want that.

    In addition even if 90% of isps can be persuaded to implement it, there are enough that will disregard it and the attacks will surely continue.

    1. Re:Some ISPs will by sparty · · Score: 1

      This came up on one of the SecurityFocus mailing lists recently (BugTraq, I think). Performance was one of the key reasons cited for not implementing such a system; economics was the other. Apparently, there are routers out there that lack the powerful (and reasonably fast) ACL routines but are significantly cheaper than their more powerful brethern; some of them are simply older and lack the features of a new router. Either way, it costs significant money to implement a system with ACL checking, and that's money that ISPs would rather spend on something most customers would notice more directly (e.g. more modem racks or more bandwidth)

    2. Re:Some ISPs will by FattMattP · · Score: 3
      In addition even if 90% of isps can be persuaded to implement it, there are enough that will disregard it and the attacks will surely continue.
      Yeah, but if you are lucky enough to get 90% of them to implement this, then it probably wouldn't be hard to refuse traffic to/from the other 10% until they lceaned up their act. Getting that first 90%, though. That'd be tough.
      --
      Prevent email address forgery. Publish SPF records for y
    3. Re:Some ISPs will by villeww · · Score: 5

      See RFC2827 , which describes the Best Current Practice for doing Ingress Filtering. Just the thing needed to block most of the DDoS attacks.

    4. Re:Some ISPs will by richdawe · · Score: 1

      You can get routers that do this in hardware at wire-speed, i.e. there is no slowdown. Admittedly these routers are much more expensive, but I think the big ISPs use them in the centre of their switching fabric.

    5. Re:Some ISPs will by DeeDee · · Score: 4

      Performance is one thing , security another .

      If you are talking about routing and networking , a lot of universities are checking these matters and have come up with some interesting tools to handle it . For example Merit (www.radb.net) has sponsored a research to auto-configure the most used routers (Cisco , Bay , Juniper , Gated ) based on a RFC-defined database (RPSL). These tool create access-lists that will allow you to filter routing updates based on prefix filters, as paths etc. Here you also filter any reference to RFC1918 , called martians.
      On The major NAPS in the states these configs become to big for prefix lists and security will have to be based on as-path lists ... however it STILL DOES THE TRICK. From our experience using these techniques does not decrease the performance but increases the security. From a mangement perspective, as these tools are auto-updated , this is also very acceptable..

      If we are talking about ISP serverfarms , then they should be punished for not using spoof alerts on their firewalls.. it is not difficult and is one of the first things you learn on a security course..

    6. Re:Some ISPs will by gfoyle · · Score: 1

      Thanks for the pointer. This RFC is very useful. gf

    7. Re:Some ISPs will by howie40 · · Score: 1

      please don't forget that good security starts at home. make sure that your border/edge routers have those types of acl's in place; further you might check the rule set on your firewall to ensure that it has it's antispoofing capabilities turned on. "don't rely on the kindness of strangers"

    8. Re:Some ISPs will by MeNeXT · · Score: 2

      The ISP need not change/upgrade all the routers just the ones at the border. A DoS attack will consume all the bandwidth available to his clients. If he is on the receiving end of the attack, I can't imagine him surviving the loss of business. I bet it costs the ISP more in insurance than implementing these safegaurds.

      In order to survive a DoS the ISP must have spare bandwidth. I wonder how much that costs? If 90% implemented these measures imagine the savings for ISP's

      --
      DRM? No thanks, I'll just get it somewhere else...
    9. Re:Some ISPs will by Anonymous Coward · · Score: 2
      ``But if you start applying further checks to every packet then the network will surely start to slow and in such a competitive world isps dont want that.''

      Which would you prefer, a more secure Internet or a faster Internet? Of course, we'd all like both but if you could only pick one, which would it be? If you value performance over security, then would ignore the ACLs and just hope for the best. If you value security over performance, you'll impose the ACLs and just improve performance over time as you upgrade your network equipment.

      Besides, there are technologies that exist (both proprietary and standards-based) for improving the performance of packet-forwarding, even with ACLs - for example, Cisco IOS-based routers could use NetFlow or CEF (Cisco Express Forwarding); other platforms should investigate MPLS (Multiprotocol Label Switching) for reducing the routing decision load from their layer 3 infrastructure and keep packets flowing at layer 2 speed.

      Don't have a NetFlow, CEF or MPLS-capable router? Then perhaps you don't forward sufficient traffic to worry about the ACL load in the first place; after all, if every edge ISP imposed ACLs to reduce IP spoofed packets from leaving their networks, there would be no need to perform additional filtering/ACLs in the network core (where most traffic exists).

      Think about it - performance isn't really an issue at all; if you have the numbers to prove that it is an issue, then you should really consider upgrading your equipment because you're ripping off your customers. Don't trade on FUD - either prove that it's a performance problem or impose the ACLs and help kiss a lot of DoS problems "good-bye".

    10. Re:Some ISPs will by StDave · · Score: 1

      My question is why would we want the ISP's to do this. What I expect from my ISP is bandwidth. I want a clear channel to the great ether, come what may attack-wise. Protecting my network is my job, not an ISP's.

      YMMV

    11. Re:Some ISPs will by laborit · · Score: 2

      if you start applying further checks to every packet then the network will surely start to slow and in such a competitive world isps dont want that.

      What if you were to check randomly, 5 or 10 percent of the time? I don't think there's an equivalent to ninja pressure point of death skills that will allow someone to 0wn your system with two or three packets, so this should still be enough to alert you but not enough to kill performance.

      - Michael Cohn

      --

      -----
      Go ahead, blame me... I voted for Nader!
    12. Re:Some ISPs will by um...+Lucas · · Score: 1

      Oh... that'd go over real well... Refuse me access to a resource i need to see/website i want to visit, because their network is set up in such a way that it could be used in a ddos attack?

      Let's think of another solution, shall we?

    13. Re:Some ISPs will by WNight · · Score: 3

      This happens *all* the time. Friends of mine admin a fairly large ISP (multiple OC3, 50k users, etc) and they tell me that they and other admins blackhole a lot of sites on an informal basis...

      They maintain their own database of spammers and use it as well as checking over MAPS and ORBS lists, they MD5 mail bodies, checking for duplicates and when they get an identical message being sent to more than ten users from an unknown address, a human looks at it before it gets forwarded. (Usually it's spam, sometimes it's a new mailing list.)

      Similarly, if there's a local ISP that's been used for spam, or attacks, they simply drop all traffic from it. On the off chance that something at that one ISP is wanted by customers, they set up a filtering proxy, or such, as appropriate, to allow just certain things through.

      And they've done it with large national ISPs too.

      The users don't know why a site is unreachable and the internet is too chaotic for them to be able to tell.

      And really, what's the difference if a site is down because it crashed, or because it's so insecure it's a hazard? In either case, badly configured/run ISPs don't talk to the rest of the net for long.

    14. Re:Some ISPs will by WNight · · Score: 2

      Because the RFCs provide that some addresses aren't supposed to route. If an ISP passed a 192.168.x.x address on, they're misconfigured.

      I myself want an ISP that doesn't filter too much, I'd rather be in charge myself, but I want them to do their job first, dropping packets that aren't intended for their network, let alone being passed on to me. That frees more bandwidth for my pr0n downloads, or whatever.

    15. Re:Some ISPs will by j-pimp · · Score: 1

      I don't think there's an equivalent to ninja pressure point of death skills that will allow someone to 0wn your system with two or three packets
      This is true. However, there are some exploits that don't require that many packets. Also if you seperate packets far enough you can mask your attack. The stronger the prey the stronger the predator. This may be a good idea. Just realize this is like fighting the borg. The enemy will adapt.

      --
      --- Justin Dearing http://www.justaprogrammer.net/ We're just programmers.
    16. Re:Some ISPs will by StDave · · Score: 1

      That is fine. Certainly it would be nice if they dropped the private addresses, but that is their perogative. If the bandwidth is being saturated by private addresses I'll go somewhere that has better bandwidth. But when you compare the overhead associated with running every packet that enters the network have to pass through 3 seperate tests v. having a few random misplaced packets, I'll take the random packets. I'll race you to the pr0n.

    17. Re:Some ISPs will by WNight · · Score: 2

      Actually, if you filter properly (so that the most likely filters are first, etc) and use a good switch, you're not wasting too much time. And an extra 15ms on my ping times isn't a big problem, that's hidden by the light-speed delays even.

      (Based on a test where we gave a high-end router a bunch of rules and the difference in ping times through it was 2-3ms. Then assuming 5-6 routers per packet trip, that would be configured in such a way... Usually one per ISP and two per backbone.)

    18. Re:Some ISPs will by StDave · · Score: 1

      Now multiply that time by thousands of hits per second. How much of your routers' time is being dedicated to filtering this minor annoyance in a given day? Sadly, a few ms does matter in the ISP biz. Any low ping bastards out there? How about good ping times on Napster? If you were able to detect any difference, it's too much.
      Besides where would you route these things? certainly it isn't being advertised in your BGP announcements, it's not in your OSPF routing tables. It will likely live a short life anyway.

      VMMV

  2. Lazyness by JatTDB · · Score: 1

    A few years ago I was working part-time for a small ISP and I suggested something like this. I didn't know how to implement it so I handed it off to the senior admin. He kept putting it off and putting it off. Everyone thought it was a great idea, just no one wanted to bother since it wasn't absolutely necessary for the daily operation of the ISP. People can be really lazy.

    --
    "That's Tron. He fights for the Users."
  3. Laziness... by NevDull · · Score: 1

    Laziness, the fact that too often people have no clue how to do a goddamned thing with that little box with the Cisco logo on it, or not knowing where to do handle the issue.

    You know certain things about what's inside, and what's outside. Network addresses internal to your network should never be acceptable as a source address on packets coming into your external interface, and addresses which are external should not be accepted as sources on the internal interface of your router. Very simple.

    Helps both you and the world.

    1. Re:Laziness... by Asgard · · Score: 2

      Well, there is a reason to allow external IP's from 'inside'. For example, I am thinking of connecting my neighbors DSL to my own network (which already has DSL from a different provider), and having a linux router send the outgoing packets out in a round-robin fashion. This should effectively double our upload speed. If his ISP filtered for non-local IP's, this wouldn't work.

    2. Re:Laziness... by Ares · · Score: 1

      Then you need to masquerade, and make the source IP depend on which DSL connection its going over.

    3. Re:Laziness... by Hast · · Score: 1

      Wouldn't your router need to assign the correct IP to the NIC connected to your neighbours DSL Modem?

      I mean, the ISP wouldn't see that it wasn't in fact your neighbour that was using the modem. Then your computers would naturally be on a LAN behind the router.

      Which AFAIK renders it all moot.

  4. Perhaps they should block far more than that. by Duckie01 · · Score: 2

    I would think that an ISP would be able to block and drop anything they receive from the outside if its IP address starts with '192.168.', '127.' or '10.', and there are several others that can be screened for -- are there reasons that ISPs don't do this?
    They should block far more than that. They have an IP range. Anything going out with a source that's not in the IP range should be blocked, imho.

    1. Re:Perhaps they should block far more than that. by Quietust · · Score: 3

      Which is what my ISP does already; any traffic coming from inside with an IP not within 169.207.*.* gets dropped and returns an error packet to the sender. Likewise, anything coming into the ISP marked as coming from one of their IP ranges should be blocked (a packet coming from (for example, if I'm on a LAN with a firewall facing the outside and my IP is 192.168.0.1, I should not be getting packets from 192.168.0.2 through the firewall since that address is already behind it).
      Sadly, the only thing that prevents other ISPs (and universities, by far the worst) from doing this is sheer lazyness or ignorance.

      -- Sig, 120 chars --
      Your friendly neighborhood mIRC scripter.
      if (ismoderator(reader)) hidecomment(this);

      --
      * Q
      P.S. If you don't get this note, let me know and I'll write you another.
    2. Re:Perhaps they should block far more than that. by MeNeXT · · Score: 1

      Hog Wash!! They can update their tables to accept your add. and relay.

      --
      DRM? No thanks, I'll just get it somewhere else...
    3. Re:Perhaps they should block far more than that. by GreenPickles · · Score: 1
      Anything going out with a source that's not in the IP range should be blocked, imho.

      You're very right about this. However, most ISPs use Cisco routers and to configure this sort of thing on border routers is a hell of a lot of work. Imagine having 100 class Cs, with 400 T-1 and DSL accounts, you have customers quiting service and signing up all the time. Adding 4 lines of additonal configuration every time and double checking your work all the time can be a pain in the ass. An excellently staffed ISP can do this, but most ISPs are understaffed and have system admins who have better things to do with their time.

      The solution? Petition Cisco for a new command that auto-does this, so you don't have to keep on screwing with the configuration.

    4. Re:Perhaps they should block far more than that. by Muffhead · · Score: 1

      While most of the large ISPs can't do this due to complexity/multi-homing small addr spaces can do it. If we could get people to do this in front of dial-in racks it would be a good start (note: I do not & have not worked at an ISP so I might be talking out of my ass). As a reseller we install small frame-relay circuits for our clients which even the small routers can certainly handle ingress/egress filtering on.

      While the big providers probably can't do much, the smaller people (the ones who don't have the staff/knowledge/desire to do it) should & probably can do the filtering. I don't think any circuit I have seen here has had any filtering on it. Won't stop attacks, but I know that any attack coming from my network will be traced back to me in short order.

      As a side note, it's amazing the number of junk packets that silently get dropped at the border. Also lucky that I have a big enough router in the middle (small company, not much traffic) that I can do ingress/egress on all my segments.

    5. Re:Perhaps they should block far more than that. by FirstEdition · · Score: 1

      There are 3rd party tools which will allow you to configure many routers and many types of routers with from one GUI.

      ie. the translation of the user's command (via the GUI) to the actual Cisco/Bay/Xedia/etc. commands is automatically done by driver software.

      This makes rolling out an access list update trivial.

  5. Bad ACL's by arberya · · Score: 4

    Many ISP's see ACL's as processing overhead on their border routers. Most of this may be due to badly designed ACL's. Reserved addresses (such as the 10.x.x.x,...,192.168.x.x and any hosts from within the network should be blocked ( it is unlikely that traffic coming into your network should have an ip from within your network as it's source ip) We had some high processor utilisation on our border router and after looking at our ACL's, have reduced the utiliztion by 30%. Quality not Quantity is the key.

  6. ipchains/iptables? by Tubster · · Score: 1

    This might be a completely dumb post, but uhm, with my linuxgateway I simply use ipchains/iptables. And uhm.. Well, from what I read somewhere (ipchains-HOWTO I think), a dx2/66 can do a whopping 2mbit/s.. So slowdown shouldn't be a problem...

    1. Re:ipchains/iptables? by tage · · Score: 2
      2Mbps is not really whopping. given linear scaling, you would need a computer that is 77.5 times faster than a dx2/66 to handle routing for my companys 155Mbps. a pentium (1)@66MHz is almost twice as fast as a 486 dx2/66. so for 155 Mbps you would need a linux box that is about 38.75 times faster than a P66. a P3@700MHz is maybe barely 10x as fast as a P66 (though i doubt it), thanks to clock frequency, better cache, faster memory and better architecture. still, a p3@700MHz is certainly far from being 38.75x as fast. 1GHz won't cut it either. that's why we have routers and not linux+ipchains boxes; dedicated hardware fo a single job.

      and 155 mbps isn't the fastest there is. my ex-employer had a 655Mbps connection (they are an isp, among other things). i don't think any pc could saturate that connection without _very_ fancy extra hardware.

    2. Re:ipchains/iptables? by Tubster · · Score: 1

      Hmmm I don't know if it's all so linear as you say. I don't have enough knowledge (right now? :)), it might just as well be the exponential or a lot less than linear. Perhaps anyone else is willing to explain it. Or perhaps you KNOW it and stuff but oh well :) But uhm, most of those HIGH-speed ISPs don't really bother with a p3 700hmz (155mbit or 655mbit stuff), but they have multiple CPUs/clusters, non i386 etc etc But hey, what do I know :) Tubby

    3. Re:ipchains/iptables? by Helmet · · Score: 1

      No what he's saying and he's right, is that a pc just isn't as capable in performance as a router. Basically if you can afford a large ATM connection than you can afford a REAL router. Part of the proccessing overhead accompanied with a large drain isn't just simply the amount of bandwidth being used at anyone time, but the number of packets per second as well. Not only is the pc's cpu a limiting factor but also it's bus. not even a 64bit pci slot with an ATM card couldn't keep up. Cisco makes 12000 series routers for a reason :) Leave the pc's for what they are inteded to be used for. They make fine routers at home for your cable or dsl connection, but if you want sheer flexibility and power in a corporate enviroment, they are useless especially with thier much higfher failure rate comapred to a cisco.

    4. Re:ipchains/iptables? by Tubster · · Score: 1

      Ok :)
      Thx for the nfo :)

    5. Re:ipchains/iptables? by BigBlockMopar · · Score: 2
      hmmm... only 2 eh.. But yea, from a 486. I have a linux box using a cyrix M2(233mhz-PR300 thing). And it can handle it's full bandwidth of 10mbps, quite easily,

      Yup, I'm quite impressed.

      I run a Dell P-133 machine, using an Allied Telesyn AT-1500 on my local LAN and a generic NE-2000 PCI card on my external connection.

      With my DSL setup, I have to run PPPoE, so I've got Roaring Penguin's solution, and a fairly good firewall routine.

      When I fire up top and then start downloading big files on any one of my Windows clients, I never show more than about 2% CPU useage on the Dell, and most of that is running top.

      I've saturated my 10 Mbps Intranet a few times, mostly parking a few video files on the Linux server, and then playing them from the 4 Windows clients scattered throughout my house. Even so, the Dell never peaked out over 5% CPU useage. As long as I stay away from X, there's loads of power and memory for ipchains to do its thing.

      of course I am running nice DEC tulip chips and no icky 3com junk, or realtek crud. It's been a while but I believe I could get around 60mbps, maybe higher, but this was also only from one source to one destination.

      AT-1500s are bus-mastering ISA cards; I wish I could get two of them to run in that same machine, but I've never been able to get two ISA network adapters to run in Red Hat 6.0. Even though they run fine together under Windows 95, I get an "Ieee! Killing interrupt handler!" message when I try to bring up eth1 with the PPPoE driver.

      I like the AT-1500s because they've got great LBL factor. ("LBL" = "Little Blinking LED")

      LEDs for Link, Collision, TX and RX. Very pretty when my roommates are online.

      Anyone know of any good PCI network cards with lots of LEDs? (Scary that it's a prime purchasing criteria, isn't it?)

      --
      Fire and Meat. Yummy.
    6. Re:ipchains/iptables? by sigma · · Score: 1

      >Anyone know of any good PCI network cards with lots of LEDs? (Scary that it's a prime purchasing

      The Netgear FA310TX has 5 LEDs. At a cost of about $25, that's only $5/blinking light (the true measure of value).

  7. The problem is... by redkanga · · Score: 2

    That most ISP's don't own all of their network. They purchase a majority of their dialup network access from outside providers like UUNet, Gridnet, Level3, etc. These providers can be prone to changing ip addresses frequently.

    Additionally most ISP's want their resources to be widely available. If you can't get your mail from both home and work because the ISP blocks access from your work ip address (on a frame-relay or dsl connection) you will most likely not want to continue doing business with that ISP.

    Most routers do have ACL's that limit telnet access to certain ip's or subnets. Only a poorly configured router would allow telnet access to the router from any ip address.

    -josh

    1. Re:The problem is... by ^BR · · Score: 1
      "Additionally most ISP's want their resources to be widely available. If you can't get your mail from both home and work because the ISP blocks access from your work ip address (on a frame-relay or dsl connection) you will most likely not want to continue doing business with that ISP."

      I think that the point was just to block packet with a source address unbelievable, like a private one, or one of your own network coming from the outside.

      Your proposal is roughly equivalent to : "pull the plug" :-)

    2. Re:The problem is... by redkanga · · Score: 1

      You could block what looks like private network traffic, but this could be at the expense of legitimate traffic from misconfigured unix users. Most ISP's do not support unix as a rule.

      Any user that is spoofing a private network ip is probably smart enough to spoof a legitimate source address and bypass whatever ACL is put in place.

      Additionally, processing ACLs is costly to hardware resources and would increase ISP infrastructure costs significantly.

      I am not advocating pulling the plug on anyone...

    3. Re:The problem is... by ippie · · Score: 1

      Any user that is spoofing a private network ip is probably smart enough to spoof a legitimate source address and bypass whatever ACL
      is put in place.

      Spoofing is done with typically with 10.,172.,192., also in real world, using legitimate adresses is bad idea, big chance the legitimate address is in use !! You should try a network with two hosts sharing te same IP address, I know what happens !!

    4. Re:The problem is... by KnightStalker · · Score: 1

      If you're a misconfigured unix (or anything else) user and you don't have your IP set to what your ISP gave you (I'm assuming you're talking about a private user here, not a company) then you're NOT going to get replies to your packets back even if the ISP doesn't implement this kind of filtering. So there's no loss there....

      (Misconfigured Plan 9 user has his address set to 192.168.0.1, let's say, and somehow has his routing table set to send 192.168.0.0/24 packets over the ppp connection...)

      User initiates a connection with 62.28.67.48. (you'd have to know the IP address because for the same reason, you'll never be able to complete a DNS request.)

      Router happily forwards first packet along.

      Slashdot.org gets the packet, tries to respond...

      Whoops, the response gets dropped by slashdot's router... doesn't have a routing table entry for 192.168.0.0/24. Either that, or it gets routed to slashdot's internal network, if it uses that particular subnet. You never see your precious connection again.
      --

      --
      * And remember, it's spelled N-e-t-s-c-a-p-e, but it's pronounced "Mozilla."
    5. Re:The problem is... by ippie · · Score: 1

      I agree with you on that one, but DDOS attackers don't really care if their packets are beiong replied to. Besides, if routers have time time to answer the DOS isn't a great succes !! All kinds of flooding just try to send packets/connect to a port/address : ICMP/IGMP floods, Syn floods etc

    6. Re:The problem is... by KnightStalker · · Score: 1

      Sure... but they're likely to spoof their addresses to avoid being caught, and I was just pointing out that dropping spoofed packets won't hurt any legitimate user who would otherwise be able to communicate.

      --

      --
      * And remember, it's spelled N-e-t-s-c-a-p-e, but it's pronounced "Mozilla."
    7. Re:The problem is... by JoostKooij · · Score: 1

      Whoops, the response gets dropped by slashdot's router... doesn't have a routing table entry for 192.168.0.0/24. Either that, or it gets routed to slashdot's internal network, if it uses that particular subnet. You never see your precious connection again.

      Slashdot.org runs Debian. Debian uses rp_filter in the network setup. Even if slashdot.org had another interface on a 192.168.0.0/24 network, it would just drop the packet.
  8. Some ISPs do by ^BR · · Score: 2

    At least one of the ISP I worked for rejected packets with private or internal addresses as their sources coming from outside on the border routers.

    A good citizen ISP should even filter its dialup pool to reject forgeries from its customers. It's called ingressfiltering and is the most reliable way of getting rid of those smurf and other various DoS attacks.

    1. Re:Some ISPs do by Helmet · · Score: 1

      Ditto. Rejecting stuff from the outside at your core router doesn't do much good. So what if it get's to the victim on the end. If you're blocking it, they'll still be the victim when your internet drain goes full saturated and your network falls off the face of the planet. Unless you have huge drains. I.E. several ds-3's or more, then any nice sized DoS from a large network or a large smurf will take you down.

      egress filtering helps alot as well as getting your upstream to filter for you where they have alot more bandwidth. But that raises another question.....

      Recently my network was attacked by a script kiddie (he was attacking my irc server). Egress filtering means nothing on a large network. I've been hit many times with over 100mBit of udp traffic from various edu's all having valid source addy's. The problem is that edu's is where alot of nasty DoS attacks originate. Most of the attacking boxes are either hacked unix boxes with poor security, or dorm machines which have been infected with some nice backdoor trojan like sub7 or netbus etc...

      So it has a valid source addy. You call the university, they fix the problem until another one pops up. Woopdee doo. The damage has been already been done. Why don't these universities use any sort of traffic shaping on the various legs of thier networks to keep people from maxing thier drain outbound with some sort of DoS attack that is killing an innocent ISP somewhere else in the world ?

      You can block all the trojan's default ports, but they can just be resent to them with non standards ports config'd in. And I know of several universites that really need to learn how to keep thier SunOS boxes from getting owned by script kiddies.

  9. IP Security ? by Anonymous Coward · · Score: 1


    I really don't know anything about this: but I would hope someone else could answer.

    Would IPv6/IPSEC security alleviate the situation ? Is it envisaged that internal machines may need to 'register' with a border gateway based upon an administrator supplied certificate ? Could this almost eliminate address spoofing problems ?

  10. be wary of this kind of thing by eastMike · · Score: 1

    I personally wouldn't be surprised to see ISPs start taking that kind of action, but once it does start happening, who knows what the limit will be? If enough ISP start to do somehting like that, then why would it even be called the internet? It just seems like more ways for our rights online to be restricted. But maybe that's just me...I tend to be more paranoid than the average geek.

    --

    Time is fun when you're having flies.
    -Kermit the Frog
    1. Re:be wary of this kind of thing by pingflood · · Score: 3
      I take it passwords on accounts are a bad thing, too? This is just a security measure and doesn't infringe on anyone's rights, unless you believe that the script kiddies have some sort of fundamental right to launch DDOS attacks.

      Nothing wrong with a little paranoia, but your statement is just plain illogical.

      -pf

    2. Re:be wary of this kind of thing by eastMike · · Score: 1

      Okay, maybe I misunderstood, but if all ISPs were restricting packets coming through their routers (ie disallowing anything from an external source whose IP starts with a certain number, for instance), wouldn't that restrict the ability for data to flow smoothly across networks? Or is this simply to restrict packets coming from a computer using their ISP but have a different 'from' IP? I am not an expert with networks, so forgive my naivite.

      --

      Time is fun when you're having flies.
      -Kermit the Frog
    3. Re:be wary of this kind of thing by pingflood · · Score: 2
      The whole point of restricting certain packets would be to disallow spoofed addresses; for instance, if a packet is coming in from the outside with the source address being from an internal computer, you know something fishy is going on... likewise, certain ranges are dedicated for private networks and should not exist ``in the wild'' -- those can be filtered out as well. It could also be used to restrict outbound packets, so that only ones within a certain (the ISP's) range of IP addresses are allowed; this would prevent people using the ISP from sending spoofed packets...

      -pf

    4. Re:be wary of this kind of thing by lavorgeous · · Score: 1

      What's being proposed is that 'impossible' packets be rejected out of hand -- this wouldn't restrict any traffic from any users or subnets, because no legitimate user or subnet would be sending traffic with these 'impossible' addresses.

      What I'm calling 'impossible' packets are packets with addresses that defy the way things are configured. The two examples I've seen in the thread so far are reserved address ranges, and internal address ranges. I'll explain...

      1. The IP standard reserves certain address ranges (198.168.1.xxx is one) for use only on internal networks. This means that no packets with source addresses of 198.168.1.xxx should EVER be found out on the internet at large, because nobody on the internet at large legitimately owns these addresses. So if an ISP receives packets from an address in this range, then it is 100% guaranteed to be errant traffic (either something misconfigured or a deliberate attack).

      2. ISP's own certain blocks of IP addresses, which they assign to their customers. So... If an ISP owns a certain IP address, then it is 100% guaranteed that packets with that IP source address will only cross their border router coming from inside their network and heading out to the internet -- the border router should never receive a packet with this IP coming from the outside and headed towards the inside.

      It sounds like the other thing to watch for would be packets from your own legitimate users that have source addresses that don't fall within your IP range -- this would help to cure the disease, where everything else is treating symptoms.

    5. Re:be wary of this kind of thing by sigwinch · · Score: 1
      ... This means that no packets with source addresses of 198.168.1.xxx should EVER be found out on the internet at large, because nobody on the internet at large legitimately owns these addresses. . So if an ISP receives packets from an address in this range, then it is 100% guaranteed to be errant traffic ...

      99.99% guaranteed anyway. To conserve IP addresses and maximize laziness, upstream providers often use private addresses for internal routers and such. So you likely want to allow ICMP echo replies, TTL exceeded replies, etc. through even when they have non-routable "private" IP addrs. If you don't allow these, pings and traceroutes are somewhat less useful. And if you filter out path MTU-related packets, your connection might break in strange and wonderful ways. Of course, you *do* want to filter for TCP and UDP.

      Or maybe I'm full of crap -- I'm not exactly a TCP/IP expert...

      --

      --
      Kuro5hin.org: where the good times never end. ;-)

    6. Re:be wary of this kind of thing by BigBlockMopar · · Score: 2
      I personally wouldn't be surprised to see ISPs start taking that kind of action, but once it does start happening, who knows what the limit will be?

      But, I fail to understand the problem. Private IP addresses don't belong on the Internet, right?

      So, if they don't belong there, they're there either because of an error (ie. plugged Internet connection into the wrong ethernet card on my Linux firewall/router) or because of a malicious attempt to take advantage of a potential security hole.

      In either case, there's no legitimate reason why you'd want 192.168.x.x to be on the greater 'net, right?

      I'm still a Linux newbie, and I'm still new to the power and responsibility my Linux firewall/router gives me that Windows doesn't. But filtering out all external packets claiming to be from my internal LAN was one of the very first things I did in implementing my firewall; even if I only copied the scripts off a How-To and modified them for my needs.

      Speaking of which, how do I set up hosts.deny and hosts.allow to allow all telnet (bad, I know, but I'll never log in as root remotely; I promise) and http requests to my webserver into my LAN? <grin>

      --
      Fire and Meat. Yummy.
    7. Re:be wary of this kind of thing by mindstrm · · Score: 2

      What do you mean would it be called the internet? If you can route your assigned IP, it's internet.

      Why should you be able to forge packets?

  11. RFC1918 by Cally · · Score: 2

    Many networks already do filter RFC1918 packets on their border routers. An interestingly heated discussion on the pros and cons of this is to be found on the nanog list. first message of (LONG!) thread


    Camaron de la Isla 'When I sing with pleasure, my

    --
    "None are more hopelessly enslaved than those who falsely believe they are free." -- Goethe
    1. Re:RFC1918 by Syberghost · · Score: 2

      The poster of that NANOG message is one of my employers, and we discuss this often.

      The more shit you filter, the slower things get. In the core of the big backbones, you can't slow things down or everybody suffers.

      Even just filtering RFC 1918 packets is controversial, especially since the RFC doesn't even recommend it, just pronounces it "reasonable".

      Go read Shawn's message, and you'll see from the traceroute he included that some pretty big folks leak this crap out into the 'net.

      As for the little guys, your average Cisco 2501 would self-destruct if you tried to filter everything that's not from your blocks.

      --

    2. Re:RFC1918 by MeNeXT · · Score: 1

      Have you ever been under DoS attack? Talking about slowing down. It can bring routers down as has happened to one of our connections to the Net. One of our connections went down due to our ISP's lack of cooperation and it's junior staff. They are not a small mom and pop but a large multinational. The traffic will also slow to crawl.

      --
      DRM? No thanks, I'll just get it somewhere else...
  12. This would be easy, really. by jd · · Score: 2
    The simplest solution would be to drop ALL packets on the local network interface for which the source is NOT in the subnet defined for it. In addition, you would also want/need to drop ALL packets on the WAN interface for which the destination is NOT in the subnet defined for the local network.

    A second alternative is to have a check on the modem/ISDN/DSL lines, to ensure that the address on the packet is equal to the one assigned the device on that line.

    Last, but not least, for only a little extra complexity, use authentication, such as IPSEC or SKIP.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:This would be easy, really. by tzanger · · Score: 1

      The simplest solution would be to drop ALL packets on the local network interface for which the source is NOT in the subnet defined for it. In addition, you would also want/need to drop ALL packets on the WAN interface for which the destination is NOT in the subnet defined for the local network.

      I would like my 2610/AS5200 to tell me the originating MAC addy/async interface of that packet. Any ideas?

  13. Same reason that the DDOS attacks aren't blocked by Mark+F.+Komarinski · · Score: 2

    It's just as easy to block DDOS (smurf) attacks both if you are the target or an unknowing accomplice.
    The problem is that ISPs don't want to slow down their connection by a few bits/second, and they don't want to do that. Slow connections mean fewer customers which means less money.

    --
    -- Ever notice that fast-burning fuse looks exactly the same as slow-burning fuse? I didn't... (Edgar Montrose)
  14. well.. by Talence · · Score: 1

    Are you proposing here a method to stop attacks from the outside or attacks that originate against others from the inside? I think you mean the latter.

    Limiting to just the addresses in your own range only partially solves the problem if the attacker can still spoof (but then using addresses in your own range). Limiting the addresses per box would seem more appropriate.

    Keep in mind, however, that an attacker will usually use a fairly wide range of cracked machines, most of which are with ISPs that have lax security in the first place. It doesn't seem that the problem spots will be the first to get fixed.

    - Talence

    --
    I plan to plan / Dutch course in The Hague
  15. This can be done by ano · · Score: 1

    This is possible, at least at the edge of networks, but I think it would be simpler to do it on customer routers.

    Cisco has a command "ip verify unicast reverse path" or something.
    This command breaks multicast under some conditions, but should work for smaller/simpler networks and edgerouters.

    There is also the problem of complexity, if you are a transit and/or multihomed AS.
    Complexity can also be bad for your throughput in some routers eg. it may force the processor to make routing decisions, which is slow.
    And access-lists have to be maintained.

    /Anders

    1. Re:This can be done by itachi · · Score: 1

      I think you really want to use:
      access-list access-list-number {permit | deny} {type-code wild-mask | address mask}
      For more info, see here.

      The Cisco ACLs are really nice, and with some planning, you can make them really short and compact, which will make things faster. Somebody mentioned in another thread that with ACLs, it's really quality over quantity.

      itachi

  16. Don't use ACL by bwalling · · Score: 4

    route 10.0.0.0 0.0.0.255 nul0

    Create a nul interface (many routers support this) and update your routing tables to route RFC1918 into the nul interface. Easier and better than using an ACL.

    Obviously, this is not always feasible. Many cable/DSL ISPs use RFC 1918 addresses for the Cable/DSL modem devices (there is DHCP option 82 to distinguish whether the request came from the customer's PC or their cable modem). So, you'd have to let the traffic get all the way to your border router before stopping it.

    1. Re:Don't use ACL by kieran · · Score: 1

      That won't do a damned thing, except override any routes for 10.0.0.0/8 received through any routing protocols. And even then, if someone announces 10.0.0.0/9 (/9 = netmask 255.128.0.0, or the first half of the 10.* range), the more specific route will take priority.

      In any case, if routes were the only problem you could just apply distribute-lists to your routing protocols to ensure you don't accept any - it's a hell of a lot cheaper CPU-wise to filter routing updates rather than every packet coming in. The problem is, that doesn't do anything about DoSs, which may simply source traffic with a false address and don't care that no traffic can be returned to them.

      Which pretty much leaves you with ACLs. Sorry.

  17. Re:Don't use ACL - sorry, bad mask by bwalling · · Score: 1

    mask should be 0.255.255.255 duh

  18. Firewall by debrain · · Score: 2
    You still can't beat a firewall, in my humble opinion. But alas, as the argument goes, to have a secure network, you need a secure router. It seems a shame that the two cannot be integrated better, though.

    What sort of security *is* important on a router? I would've thought that a router would be relatively benign, but can't (once compromised) it provide a gateway to ip spoofing, source and destination address spoofing, packet sniffing, and ip source routing? (and denial of service attacks, of course, we won't forget those!) Why else secure a router if you've got a secure firewall?

    1. Re:Firewall by Syberghost · · Score: 3

      You can't firewall the backbone. There's not a firewall on the planet that could handle the full output of an OC-192, even if you blocked hardly anything.

      Plus, anything you choose to block is something that somebody else won't blocked.

      Unless you want to replace all the current big iron backbone routers with multi-million-dollar superclusters, and thus have your dialup internet access cost you $1,000 a month, this can't happen with current technology.

      Some filtering can be done, and not enough is done, but it can't all be filtered, and it can't be firewalled in the core.

      Firewalling belongs on the edges.

      --

    2. Re:Firewall by Anonymous Coward · · Score: 1

      You don't firewall / filter the backbone, you filter where potentially untrusted users connect to your network. This means at routers that connect dialup, ISDN, DSL, and Co-Located racks. It is not much work is you do this from the get-go and the load gets spread out amoung many lower traffic routers instead of at your busy routers. Oh, you should still create a few filters on your border routers.

    3. Re:Firewall by TheGratefulNet · · Score: 3
      You can't firewall the backbone. There's not a firewall on the planet that could handle the full output of an OC-192, even if you blocked hardly anything.

      uhm - incorrect. the current best-of-breed routers (core routers) CAN filter at full oc192 speeds. I won't mention names, but its not cisco; its one of their competitors...

      --

      --

      --
      "It is now safe to switch off your computer."
    4. Re:Firewall by kieran · · Score: 1

      Either Juniper of Foundry, I should think.

      Foundry certainly claim that their BigIron switches can filter without affecting performance - apparently the latency is fixed at 5ms regardless of routing, filtering and other work that needs doing to the packet before it's shoved back out due to the clocking mechanism.

      Cisco, on the other hand, have trouble with running wirespeed on all ports whether or not they've got an extra work to do. A pity, really: like damn near everyone else in the industry, I know Cisco's kit better than any of their competitors.

    5. Re:Firewall by penguinboy · · Score: 1
      Plus, anything you choose to block is something that somebody else won't blocked.

      That's not true. Filtering packets on the net with private source addresses are definetly faked, not usable for any legitimate purpose.

    6. Re:Firewall by TheGratefulNet · · Score: 2
      Either Juniper or Foundry, I should think.

      yeah, one of those ;-) the one that is actually shipping oc192 ('c' and non-c) interfaces with fullspeed filtering.

      Cisco, on the other hand, have trouble with running wirespeed on all ports whether or not they've got an extra work to do

      that's the way I hear it, too. cisco's architecture is way too old to scale to today's core needs. they are still primarily software-based; those other two companies you mention have much more modern system design (which uses hardware as the central element in design; not just for acceleration but as a central design theme; ie, not an afterthought.

      I know Cisco's kit better than any of their competitors

      get to know their competitors. cisco's arch. is yesterday's news. they still own the enterprise (with atalk, vines, etc, etc) but in the core, they are almost irrelevant compared to today's fast kids on the block.

      --

      --

      --
      "It is now safe to switch off your computer."
    7. Re:Firewall by kieran · · Score: 1

      >So why is this co regarded so highly (much higher than the rest) on Wallstreet?

      Market share, mindshare: everyone knows Cisco, everyone trusts Cisco, everyone buys Cisco.

      (He says, while his colleague replaces the faulty power supply in a Foundry switch...)

    8. Re:Firewall by Syberghost · · Score: 2

      How much can they filter?

      Can they function with a huge list, or do they break down quickly when you start adding site specifics?

      --

  19. Lazy or Overworked by 13013dobbs · · Score: 2
    IMHO, the reason most things don't get done, is due to lazy admins. (I guess overworked would also fit) Security often times gets put on the back burner. Turning off directed broadcast would also stop alot of attacks (smurf, fraggle, papa smurf, etc...), but people still don't turn it off.

    I deal with security incidents all day. Every admin that I talk to that has been rooted or is being used as an amp start always say: "I should have..." And, they are right, they should have, but they didn't. Admins need to have some plan for security.

    Quick and dirty list of security tips:

    1. Have a plan for dealing with machines that have been hacked.
    2. Check security patches for your systems weekly.
    3. Run NMAP against your network.
    4. Use network monitoring software. If some one is DOSing you, you need to know what kind of attack it is (UDP, ICMP, SYN Flood, etc...) and where it is going or comming from.
    5. Talk to your upstream about what they can do for you incase of a DOS attack. Who should you call and what info do you need.
    --

    No replies made to AC posts. Please log in.

    1. Re:Lazy or Overworked by shippo · · Score: 1
      No, you should check security fixes daily. A week is too late.

      For detecting possible security holes Nessus is a good tool to use, and it can be configured by a cron job to automatically pull down revised scripts. It works in conjunction with nmap. Be warned it can take a long time to run - it took me 20 minutes to scan 127.0.0.1.

      The worst thing, though, is to rely 100% on security tools. Tools like Nessus rely upon known exploits. Its the unknown ones that cause the real problems.

    2. Re:Lazy or Overworked by 13013dobbs · · Score: 1
      No, you should check security fixes daily. A week is too late.

      Yeah, you *should*, but getting admins to just check weekly would be a massive improvement. There are scripts that will check security patches for certain OSes. I use one for my Solaris boxes. They are posted to BugTraq on occasion.

      For detecting possible security holes Nessus is a good tool to use, and it can be configured by a cron job to automatically pull down revised scripts. It works in conjunction with nmap. Be warned it can take a long time to run - it took me 20 minutes to scan 127.0.0.1.

      But, it is well worth the time and does not need to be run everyday. If an admin has a securtiy plan in place, a scan from Nessus, SATAN, or Saint can be done on a rotation; scan N machines one day, scan another N machines the next, and so on. Naturally this is just a generic suggestion and you may need to adjust this to suit your situation.

      The worst thing, though, is to rely 100% on security tools. Tools like Nessus rely upon known exploits. Its the unknown ones that cause the real problems.

      True. I would also like to stress how important it is to know what is going on on your network. I take calls everyday from people getting DOSed who have no idea what kind of traffic they are getting, where it is comming from or where it is going. Lots of these "attacks" are nothing more than over-loaded connections.

      --

      No replies made to AC posts. Please log in.

  20. Cos they don't know better?! by Cef · · Score: 4

    Unfortunately a lot of ISP network roll-outs are done by people with very little IP network experience, or by "high paid" consultants.

    The people without network experience are somewhat excused, but they should have gotten someone to look it over, and actually try some sort of penetration tests. They'd probably find a lot more wrong with it than routing non-routable IP's.

    The consultants don't tend to bother unless asked, as it adds to their already high workload, plus they most likely think "I'm not getting paid enough to do that as well!". Some even just assume that the routers won't even route this sort of traffic unless told to.

    A lot of routers don't help in this situation either. The training courses and/or materials for setting them up in many cases are rather badly written, don't cover a huge number of setup scenarios, and usually don't even bother to bring up these sorts of things at all.

    On top of all this, you get things like the Managing Director of the company connecting a modem up to his PC and dialling out to his home account cos the connection to the net through the filewall is too slow (which is actually cos someone is trying to launch a DOS attack on your firewall), and then someone gets to his local files cos of some piece of software that he shouldn't have on the laptop in the first place.

    Regardless, even if they did block the non-routable IP's, you should still "trust no one" and block whatever you can. If it's connected to the outside world, then there is a possibility that somehow, you could lose out.

    The only way to truely protect your data is to grind up your hard drive into powder, magnetize it all, then heat it into a liquid. Cool and grind it up again, scatter it into the wind, and just HOPE entropy does the rest.

    1. Re:Cos they don't know better?! by anticypher · · Score: 2

      I'm one of those "high paid" consultants. Certainly I know better.

      The problem lies with the many ISPs who can't or will not hire competent network admins to maintain the routers after I get them set up.

      When I get the routers set up for the first time, the routers closest to the edges will have ACLs conforming to the industry best practices mentioned in RFC2827, and will drop RFC1918 packets. The core routers have only minimal ACLs to prevent security problems such as telnet and SNMP. Core routers are not the place to do heavy filtering, since they are usually overburdened.

      When I leave, there is always documentation for the normal netAdmins to pick up where I left off. But many times I've gone back to client sites and found nothing has been touched since I was last there. If there are new admins, they are usually so clueless they don't touch anything the "high paid" consultant implemented. Even when there are comments to them about things to be changed.

      Education is the biggest problem right now. The training courses cost too much, and the content can't keep up with all the advances over the last few years. I've spent over US$10,000 of my own money in the last 2 years just keeping my own skills up to date. I don't really expect every Net Admin to do the same, but their employers should be forcing them into at least a few classes each year.

      All the routers in an ISP need to be reviewed on a regular basis, and carefully audited for each expansion. But most ISPs are so low margin they just get some high school dropouts to help out and hope for the best. Only when their upstream provider threatens them do they call me back for a quick audit and fix job.

      the AC

      --
      Hemos is like...sci-fi fans;he thinks technology is cool, but he hasn't bothered to understand the science it's based on
    2. Re:Cos they don't know better?! by Skapare · · Score: 2

      If some of these companies would just get off their duff and quit whining about there being not enough people, and just hire a couple of the many that really are out there, then maybe we wouldn't have some much of this. The trouble is, the suit types either are afraid to deal with technical people (remember, suit types and tech types don't talk the same language and neither wants to learn the other's language in a mutual standoff) or are afraid to have a tech type making as much as, if not more than, a suit type manager.

      --
      now we need to go OSS in diesel cars
    3. Re:Cos they don't know better?! by Skapare · · Score: 2

      There actually are people who are very knowledgeable about these things AND want a permanent fulltime job where they work these things all the time. Trouble is, employers don't want to keep paying the higher salary of someone qualified. They want to get the consultant in, have the setup done and documented, and then get the consultant out. After that, they just want a cheap warm body. It won't do any good to train them, because if you do, they will get a batter job as a consultant, and move on. The company will then hire another warm body.

      --
      now we need to go OSS in diesel cars
  21. Ingress filtering by apilosov · · Score: 1

    This is called "ingress filtering" and has been advocated in IETF workgroups and on NANOG for last 3 years.

    See following RFCs:
    http://www.faqs.org/rfcs/rfc2267.html ('98)
    http://www.faqs.org/rfcs/rfc2827.html ('00)

    Many 'big' ISPs apply that to their leaf connections at the edge routers, smaller ISPs usually don't do that, which is surprising since its actually simpler to do if you are small. (less edge routers ;)

    The only problem with such filtering are people who are dual-homed and have asymmetric routing: I.E. Customer has to connections, to ISPs A and B, and may be sending outbound traffic with source-addresses in B through A's connection.
    This is legitimate, there are many uses for it:
    1. Satellite one-way connections
    2. 'overflow' routing
    3. load-balancing of outbound traffic

    So, ISP has to blow holes in their filters for such customers. (Which we do at customer request).

  22. Step 1 protect yourself by jaclu · · Score: 1

    Of course it is good if ISPs trap fake ips.

    But you should _never_ relay on somebody else for your own security.

    It's a bit like skiping looking the door just because there is a police station in town.

    Personally I run ipchains on all my (linux)routers and servers and most workstations, if one firewall is cracked, there is at least some security left in the system.

    The big win when ISPs start implementing this is that it reduces pointless the trafic on my local connection.

  23. Not as easy as you think by Gunfighter · · Score: 2

    One of the problems I see with your theory of blocking out all private addresses (for those of you keeping score at home, that's 10.x.x.x, 172.16.x.x through 172.31.x.x, and 192.168.x.x) is that you won't see these addresses trying to come in through your firewall (if you've built it right) as often as you'd think. With Network Address Translation (NAT) and Port Address Translation (PAT), you'll see the public IP addresses of these hosts being attacked more often than not. The ability of any given script kiddie to modify the TCP header will complicate this, but without prior knowledge of your network it's a hit and miss attack. For all they know, you could be running any combination of subnetted private and/or public IP addressing schemes behind your firewall.

    The best defense against these attacks is a good ACL on a solid firewall platform. Block incoming traffic from private addresses, but be sensible and put internet accessible hosts on a DMZ. For general internet use, select one public IP address from your pool of public IP addresses and use PAT.

    The info above was typed out haphazardly and may not make sense, but after working with Internet security in a myriad of environments, the best advice I can give you is that if even if you THINK you understand it, you should still seek consult (the more eyes the better). I would go into more detail, but unfortunately I have to go set up a firewall for a client :)

    --
    -- Stu

    /. ID under 2,000. I feel old now.
    1. Re:Not as easy as you think by schnurble · · Score: 2
      One of the problems I see with your theory of blocking out all private addresses (for those of you keeping score at home, that's 10.x.x.x, 172.16.x.x through 172.31.x.x, and 192.168.x.x) is that you won't see these addresses trying to come in through your firewall (if you've built it right) as often as you'd think.

      Here's an excerpt from access-list 102, applied for ingress filtering on GigabitEthernet0/0/0 (our incoming interface) on the primary router.

      Extended IP access list 102

      deny tcp 192.168.0.0 0.0.255.255 any (179 matches)
      deny tcp 10.0.0.0 0.255.255.255 any (463 matches)
      deny tcp 172.16.0.0 0.15.255.255 any (106 matches)
      deny udp 192.168.0.0 0.0.255.255 any (20 matches)
      deny udp 10.0.0.0 0.255.255.255 any (22 matches)
      deny udp 172.16.0.0 0.15.255.255 any (23 matches)
      deny udp 169.254.0.0 0.0.255.255 any (6 matches)
      deny icmp 192.168.0.0 0.0.255.255 any (88 matches)
      deny icmp 10.0.0.0 0.255.255.255 any (80 matches)
      deny icmp 172.16.0.0 0.15.255.255 any (2 matches)

      Won't see them? Pfft.

      Admittedly, this is the router. Not the firewall. But they DO travel over the public internet.

      -j

      --
      "To err is human, to forgive is simply not my policy." --root
  24. Yes, there's a reason... by Amphigory · · Score: 2
    Let me say that when it comes to Internet backbone routing, I'm a couple of years out of date since I've been focused on UNIX and programming.

    However, I would say the biggest reason is that this kind of filtering can eat a *lot* of processor cycles on your router. These routers are not cheap, so you tend to buy the least you can get away with.

    Also, the packet by packet comparison necessarily slows down traffic. Not a big deal for a small line, but when you're dealing with multiple OC-3's, people get a little antsy about a 10% performance decrease.

    --

    --
    -- Slashdot sucks.
  25. Re:Lazyness (or lack of understanding?) by s13g3 · · Score: 1

    Is this truly laziness, or is it a simple matter of not adding any unnecessary implementations to the system, which, if already functioning well and smoothly with little to no down time, has no need of any extra and uneccessary protocols? Under the best of circumstances, this would never ever be implemented world-wide, much less nation-wide, and therefore would have no measureable effect on the problem at hand in the first place. And then when you consider the possible effect of these filters... Delays in packet transfer and increased overall network lag. Add in the potential of this conflicting with some other installed program, function or protocol, whether it's within the ISP's network, or a conflict on the user's end, it's really not worth the effort, nor the potential trouble.

    --
    "Inveniemus Viam Aut Faciemus" 'We will find a way... Or we will make one!' --Hannibal of Carthage
  26. Routing and security by Gondola · · Score: 5

    I worked at a major internet provider for over 2 years, and when I left I was Senior Network Engineer, with only the head of the engineering department above me, and above him was the CTO. We had over a dozen POPs (Points of Presence), and OC3 lines strung from MAE East to MAE West and many points between, and OC12's being installed. So, let's assume I can speak slightly to this issue.

    With a major provider, your hardware is going to be big enough (BFR, GRF, etc) to handle 60,000+ routes AND do adequate security filtering. Don't accept the RFC'd routes in, and don't propogate them. Period. Don't accept internal routes from external sources. These are simple rules any major provider *can* handle if they can handle a full routing table. We're talking edge routers.

    Smaller providers who are multi-homed and that lease dialups wholesale are a problem, though. Their dialups have IPs that don't belong to them. They often don't have the expertise to configure their ACLs correctly, and leave gaping holes in their security. Sometimes we'd scan our customers' routers with SNMP probes and find a lot of default SNMP passwords for read *AND* write access to their router, and we'd let them know to button up their router. One of our routers would occasionally get flooded with extra routes from a customer (we had lousy filtering) and the resulting flood of traffic would kill the customer's router. The first sign of this would be the customer's line going down. We were understaffed and used several different kinds of routers, so ACL's varied slightly between platforms because of the way they had to be written.

    My point is that you need three things for merely minimal security (just by IP blocks):

    Hardware: a router with enough CPU and enough RAM
    Expertise: engineers that know how to write ACLs for the IOS you're using
    Priority: your engineers have to have the time to actually sit down and get the ACLs updated on all the routers correctly

    Unfortunately, I don't think there are many providers that have all of these.

    1. Re:Routing and security by MarkofT · · Score: 1
      I really don't know how you could be so wrong.
      With a major provider, your hardware is going to be big enough (BFR, GRF, etc) to handle 60,000+ routes AND do adequate security filtering. Don't accept the RFC'd routes in, and don't propogate them. Period. Don't accept internal routes from external sources. These are simple rules any major provider *can* handle if they can handle a full routing table. We're talking edge routers.
      First, there are 82,000+ routes in the table currently. Circuits bounce, route are withdrawn, routers have to keep up with the changes. There are very few routers that will handle an ACL and high use (75% of BackPlane capacity). The major ISP I work for will not put more then a standard ACL (martian filters mostly) on the backbone as many of the Cisco GSRs will promptly crash, and Cisco doesn't make them any bigger. Juniper has no filtering ability at all, atleast with JUNos 4.0. Filtering is promised RSN. Second, if you do not accept internal routes from external sources then any of your customers that are multihomed will be unreachable from your network if their link to is goes down.
  27. Laziness and Cluelessness by spse · · Score: 1

    When I worked at an ISP we would put anti-spoofing filters onto routers we leased to customers that block the private nets inbound and didnt allow them to spoof outbound. However we could do this only for customers who have their own router. We also couldnt do this on core routers because you might have 500 customers going through one ATM interface (via a switch) so the most you could do is allow customers to spoof each others addresses. On core routers which switch in hardware, ACL's normally push the switching through the CPU which hurts a lot. Also, given how many ISP staff didnt even know how to turn off packets sent to broadcast interfaces (see NANOG re smurf attacks a few years ago) its pretty clear people managing routers dont know much at all. ISP's are generally know to be reactionary rather than pro-active with security issues.

  28. We do it. by Shishak · · Score: 1
    I run the network for a small/medium ISP and we have ACL on all external interfaces which filter out our traffic inbound and non-local traffic outbound. We have 18 Network blocks, really pretty simple. I think it should be mandatory for ISP's to build access lists when they are invited to join the party.

    "Now, I hope and pray that I will, but, today I am still just a bill"

    --
    Now I hope and pray that I will But today I am still, just a bill
  29. What happens if I can talk to two routers? by bhaloo · · Score: 1

    Wouldn't blocking packets from outside the network that bore internal addresses screw things up if there were hosts on the network who could speak to two different routers? And ingress filtering is a pretty well established thing, isn't it? So why ISPs don't implement it might have more to do with Wall Street than Silicon Valley. Bhaloo.

    --
    I want to die like my grandfather. Peacefully, in my sleep. Not screaming and terrified, like his passengers.
  30. Many ISP do by Kagato · · Score: 2

    Having worked at a number of ISP's and talking to those in the trade I've found that it's a matter of the SysAdmin. In general ISP's that are Linux or BSD based are far more likley to have the router set up this way already. ISP's that are microsoft based (And there are many) tend to shy away from touching the router more than they need to.

  31. How to secure a router by Hizonner · · Score: 1
    Cisco's document entitled "Improving Security on Cisco Routers" covers this.

    By the way, although it's true that there's some performance impact from filtering, it's not nearly as much as the ISP folklore (and a lot of the posters here) would have you believe. I've turned on filtering on very heavily loaded routers and had it work fine.

  32. Re:This can('t) be done (efficiently) by whois · · Score: 1
    This only works on routers which run CEF and have only one egress point. In other words, it's basically useless, since it won't work on a 2500 and nobody is going to buy a 3600 and run only 1 T1 off of it.

    The reason it breaks with multiple egress points is because of assymetric routing. What "ip verify unicast reverse-path" does is makes sure that the path back to the source goes throgh the same interface as this packet coming in. Since you can have multiple paths back to a source on a core router, this doesn't work.

    If you are using the router as a firewall or a bastion host then this works ok.

  33. ACL's on Routers by TBC · · Score: 4

    From experience, on the edge of the network, there is NO reason for a packet to come into the network that is not part of your address space. Edge is defined as a single-homed connection with no transit capability. We have a packet filter on our edge routers as well as our core multi-homed router to deny traffic with a source address that doesn't match one of our class-C's.

    The problem with doing this on a Cisco is that it requires the CPU to observe the header of each packet going out, rather than have the interface DMA the packet to the destination interface. During the last big round of DDOS attacks, (January-February) we say many ISPs try to put filters in their core routers. The result was a 4x+ increase in CPU usage in the routers, and a router crash in a lot of cases.

    We saw BGP traffic increase by over 10x as these routers came up and down all across the Internet. We have our core router set up to log faked ingress packets, and you wouldn't believe how many packets we see. Also be aware, it's not always a DDOS attack that causes spoofed packets. We see misconfigured windows boxes leak the Microsoft Ethernet addresses out PPP, misconfigured firewalls leaking internal addresses, etc. We see no issues with filtering these packets since there isn't a way for those packets to get back to us anyway, and it takes up more of our outgoing bandwidth...

    Best bet is to filter as close to the edge as you can. For companies that sell bulk-dialup, their access servers can be configured to filter packets not on their address pools. The routers serving those modem pools could filter on the addreses for that data-center. Cable providers could filter based on the IP addresses assigned to that cable head-end. If we can filter right up to the edge of the transit-network, DDOS should be a thing of the past....

    1. Re:ACL's on Routers by rtscts · · Score: 1

      there is NO reason for a packet to come into the network that is not part of your address space
      [snip]
      We have a packet filter on our edge routers as well as our core multi-homed router to deny traffic with a source address that doesn't match one of our class-C's.
      [snip]
      If we can filter right up to the edge of the transit-network, DDOS should be a thing of the past....

      OK, I'm not an expert, but... how will DDoS be a thing of the past if you're filtering INBOUND traffic based on whether or not it's really destined for you?

      a) how the hell did a packet addressed to someone else get to you (assuming you're not a network carrier)? obviously a router upstream from you has been configured by cowboys.

      b) it's INBOUND traffic. thats the whole problem. once you have 500mbit/s trying to come down your 100mbit/s pipe, doesn't matter what filtering you do to prevent the poor modem users getting flooded. your entire link is still flooded because the packets are being dropped, so the incoming data isn't compensating for the slow modem user, it's just pouring in as fast as you can drop it...

      c) you should be filtering OUTBOUND data from potentially hostile hosts (ie. end-users and servers that arent behind a strict firewall). At least if you ensure packets leaving your site are tracable back to you, any DDoS can be stopped with a few phone calls.

    2. Re:ACL's on Routers by TBC · · Score: 1

      Sorry, nomenclature for our network. We filter based on the inbound traffic from our customers out to the Internet. My fumble fingered attempt at explaining it.

  34. Possible problems by Quietust · · Score: 2

    Interestingly enough, I have received legitimate packets across the internet from IPs in the range of 192.168.*.*, 172.16.*.* - 172.31.*.*, and 10.*.*.*. How? Traceroute!
    It seems that some networks (including @home) are too cheap to assign an external IP to all of their routers, so when traffic goes through their network, the routers routing it have internal IP addresses (which are not noticed unless you do a traceroute or just ping with a low TTL set).
    Example: try tracert'ing a few IPs in the 24.112.51.* (@home) range.

    -- Sig, 120 chars --
    Your friendly neighborhood mIRC scripter.
    if (ismoderator(reader)) hidecomment(this);

    --
    * Q
    P.S. If you don't get this note, let me know and I'll write you another.
    1. Re:Possible problems by lizrd · · Score: 1
      I don't think that it's a matter of being too cheap to assign IP addresses to the routers but rather that your cable modem has an internal IP address assigned. This makes sense of course. Your cable modem can then be serviced but is not accessable to the 'net at large.

      As an example I ran a traceroute from my machine (on @home) to slashdot.org:

      1 10.93.48.1 (10.93.48.1) 10.730 ms 9.981 ms 11.672 ms
      2 r1-fe1-0-100bt.cdrrpd1.ia.home.net (24.2.240.1) 10.810 ms 11.511 ms 11.434 ms
      3 c1-se6-1.desmia1.home.net (24.7.73.213) 12.756 ms 12.432 ms 13.272 ms
      4 c1-pos2-0.omahne1.home.net (24.7.64.137) 15.434 ms 15.754 ms 14.473 ms
      5 c1-pos9-0.lnmtco1.home.net (24.7.65.146) 23.972 ms 23.505 ms 29.313 ms
      6 c1-pos10-0.snjsca1.home.net (24.7.65.141) 46.827 ms 46.892 ms 47.322 ms
      7 24.7.70.58 (24.7.70.58) 48.160 ms 47.301 ms 47.816 ms
      8 bbr02-g6-0.sntc04.exodus.net (216.34.2.36) 45.951 ms 46.267 ms 50.574 ms
      9 bbr02-p3-0.okbr01.exodus.net (216.32.132.149) 56.514 ms 58.588 ms 57.207 ms
      10 bbr01-p5-0.wlhm01.exodus.net (216.32.132.210) 78.808 ms 79.173 ms 80.039 ms
      11 dcr04-g2-0.wlhm01.exodus.net (64.14.70.66) 79.742 ms 86.283 ms 79.685 ms
      12 64.14.80.138 (64.14.80.138) 79.136 ms 80.200 ms 80.701 ms
      13 64.28.66.204 (64.28.66.204) 79.840 ms 79.594 ms 83.598 ms
      14 slashdot.org (64.28.67.48) 80.183 ms 80.340 ms 81.398 ms

      As you can see the only example of an internal IP addy is the first hop from my machine to the modem. From there on all the @home routers have public addresses in the 24.0.0.0 network.
      ________________

      --
      I don't want free as in beer. I just want free beer.
    2. Re:Possible problems by Quietust · · Score: 1

      Okay, so maybe that was a bad example.
      I've seen others, though, which went through several internal IPs and then resurfaced several hops before the last one.
      I just can't think of any off the top of my head.


      -- Sig, 120 chars --
      Your friendly neighborhood mIRC scripter.
      if (ismoderator(reader)) hidecomment(this);

      --
      * Q
      P.S. If you don't get this note, let me know and I'll write you another.
    3. Re:Possible problems by Spoing · · Score: 1

      In that case, NASA's blocking of all @home IPs -- even for a couple days -- makes total sense. (Not elegent, but effective, till NASA tightened up thier own servers.)

      --
      A firewall can not protect you from yourself. Turn off what you do not need. Do not use the firewall to do your work.
    4. Re:Possible problems by Merk · · Score: 2

      Actually I noticed that too. And it's not the modems themselves that have private IPs, it's 3 or 4 hops down the line. I noticed problems when I tried to give my own local domain 10.X addresses and did a traceroute. What can be done about this?

    5. Re:Possible problems by cloudmaster · · Score: 1

      try a traceroute to mail.home.net

      traceroute to poptart.home.net (24.0.26.112), 30 hops max, 40 byte packets
      1 207.56.140.249 (207.56.140.249) 17 ms 6 ms 12 ms
      2 d1-0-4.a01.chmpil01.us.ra.verio.net (131.103.180.17) 5 ms 35 ms 18 ms
      3 d3-12-0-0.a01.chcgil05.us.ra.verio.net (129.250.50.73) 34 ms 13 ms 9 ms
      4 d3-4-1.r00.chcgil01.us.bb.verio.net (129.250.16.109) 34 ms 12 ms 29 ms
      5 athome.p1-2-1-1.r01.chcgil01.us.bb.verio.net (129.250.9.94) 19 ms 9 ms 11 ms
      6 c1-pos0-0.lnmtco1.home.net (24.7.65.150) 42 ms 27 ms 30 ms
      7 c1-pos10-0.snjsca1.home.net (24.7.65.141) 69 ms 108 ms 71 ms
      8 bb3-pos3-0.rdc1.sfba.home.net (24.7.74.62) 68 ms 82 ms 81 ms
      9 172.16.4.5 (172.16.4.5) 78 ms 70 ms 73 ms
      10 10.0.232.25 (10.0.232.25) 73 ms 72 ms 72 ms
      11 fep1.excitehome.net (24.0.26.112) 76 ms * 115 ms

      10.0.what? From outside? Mmmm, bad. What about just home.com?

      traceroute to home.com (199.172.150.102), 30 hops max, 40 byte packets
      1 207.56.140.249 (207.56.140.249) 18 ms 6 ms 5 ms
      2 d1-0-4.a01.chmpil01.us.ra.verio.net (131.103.180.17) 18 ms 12 ms 5 ms
      3 d3-12-0-0.a01.chcgil05.us.ra.verio.net (129.250.50.73) 21 ms 13 ms 7 ms
      4 d3-4-0.r00.chcgil01.us.bb.verio.net (129.250.16.77) 16 ms 11 ms 27 ms
      5 p4-6-0-0.r01.chcgil01.us.bb.verio.net (129.250.2.254) 23 ms 10 ms 7 ms
      6 p1-2-0.r00.snjsca03.us.bb.verio.net (129.250.3.45) 68 ms 82 ms 70 ms
      7 p4-0-3.r05.plalca01.us.bb.verio.net (129.250.2.73) 69 ms 71 ms 69 ms
      8 ge-5-0-0.a02.plalca01.us.ra.verio.net (129.250.29.34) 76 ms 72 ms 82 ms
      9 140.174.166.74 (140.174.166.74) 72 ms 72 ms 72 ms
      10 192.168.249.11 (192.168.249.11) 91 ms 71 ms 71 ms
      11 192.168.251.4 (192.168.251.4) 102 ms 71 ms 80 ms
      12 199.172.150.100 (199.172.150.100) 71 ms 82 ms 81 ms

      also bad. I'm not real happy about that, as I actually use 192.168.* internally...

    6. Re:Possible problems by cryosis · · Score: 1

      I might be talking out my ass, but I belive here at least that each cable modem has it's own internal IP (got told it was for administration and the guy wouldn't say more) at 10.x.x.x/255.0.0.0.

  35. It's just a waffer thin mint... by Psarchasm · · Score: 1

    Large ISPs should consider doing this on all of their RAS equipment first and foremost. As has been previously stated in this thread, there are legitimate reasons not to do this on all border routers.

    However, in my opinion, there are two real culprits to this problem.

    Major router vendors are the primary culprit. This option should be on by default on all routers, and require a configuration change to be turned off. If it isn't turned off then every network you route to the outside world is automatically allowed to pass through. If it is turned off, then you just made a concience decision to run in a less secure environment - possibly a very legitimate decision, possibly not.

    The secondary culprit, is the lack of concise and well written AUPs that are truly enforced. Ahhh if only it were legal and enforcable to have an AUP that said simply, "We allow no bullshit. And we decide what the bullshit is." But it isn't so write one that works.

    Personally, if I were a DSL/Cable provider just starting up, I'd invest heavily in a bunch of decent NID systems and allow the traffic through. My AUP would state that you pay me first and last months DSL rent regardless of whether you are getting service, if you break my AUP. I'm sure all the mommies and daddies out there would be thrilled to find they have no Internet after the NID system found spoofed packets coming from juniors CPU.

    --
    http://windows.scares.us
  36. Re:Don't use ACL - sorry, bad mask - try again by Anonymous Coward · · Score: 1

    A mask of 0.255.255.255 would mean that you would match an IP of x.0.0.0. What you really want is a mask of 255.0.0.0 so that you would match any IP of 10.x.x.x.

  37. Some ISP's _do_ block bad IP addresses in routers! by Deven · · Score: 2

    I worked at a regional ISP until recently, and we did block bad IP's in the routers, along with source-routed packets. For example, RFC1718 addresses (10.0.0.0/8, 17.16.0.0/12, 198.168.0.0/16) are never routed to/from the Internet, and the IP block we owned would never be accepted as a source address from the Internet. Some ISP's do make the effort. (I'm not sure if downstream customer networks were blocked from spoofing each other's addresses, but I believe they were.)

    Now, the question in my mind is whether the effort we made (to secure the networks from spoofing attacks) was typical or atypical of reasonably-sized ISP's? (When I started at this ISP, they had two T1's to one backbone provider; now they have four DS3's to four different backbone providers...)

    --

    Deven

    "Simple things should be simple, and complex things should be possible." - Alan Kay

  38. More details by MikeBabcock · · Score: 2

    The original question (without Cliff's comments) is actually why ISPs don't ensure that outgoing packets from their internal networks are indeed sourced from their IP range.

    For example, if I'm an ISP who has (to use a popular range ...) 24.226.0.0/255.255.0.0 , I would add a firewall entry that outgoing packets are denied if they are not from 24.226.0.0/16 (same netmask as above, incidentally).

    For multiple source IP ranges (including private network addresses), this can be extended by making an ipchains output filter to allow packets going into the network (they've already passed the input and forward filters) and packets sourced from your IP ranges, then deny'ing the rest. Don't forget to add IP spoofing filters to your input chain.

    Final note: I actually do administer a network and am doing this. I've turned on logging on those spoofed packets of course, to see if I'm denying anything that shouldn't be, but it works quite well.

    --
    - Michael T. Babcock (Yes, I blog)
  39. Re:Some ISP's _do_ block bad IP addresses in route by Deven · · Score: 1

    Oops. I meant RFC1918, not RFC1718. (Stupid typo.)

    By the way, that ISP also blocked outgoing packets (to the Internet) that did not have a source IP address that belonged on its network.

    --

    Deven

    "Simple things should be simple, and complex things should be possible." - Alan Kay

  40. UUNET AUP by eludom · · Score: 1

    From the UUNET AUP

    http://www.us.uu.net/support/usepolicy/

    System and network security
    Violations of system or network security are prohibited, and may result in criminal and civil liability. UUNET will investigate incidents involving such violations and may involve and will cooperate with law enforcement if a criminal violation is suspected. Examples of system or network security violations include, without limitation, the following:
    .
    .
    .
    Forging of any TCP-IP packet header or any part of the header information in an email or a newsgroup posting.

    1. Re:UUNET AUP by Questy · · Score: 1

      That would be nice if you could ever get UUNET security to reply to you. In my experience UUNET has traditionally not answered claims of security violations in a timely manner.

      --
      #!/Jerald
  41. ISP's DO use such access lists by Marcos+the+Jackle · · Score: 1

    I have worked for some of the larger networking companies in the country (Sprint, MCI, TNS/PSINet) and I can tell you that such access lists are used quite often. By default you should block all RFC1918 address space or else you're a complete and total moron and you should go work at McDonalds. However when it comes to access lists you have to be careful and make them too big or too many of them. You just have to be creative is all. It's not that hard. It's just common sense. However, it was Voltaire that said, "Common sense is not that common." Later. Mk.

  42. Hard to do by tiny69 · · Score: 1
    That's hard to do without breaking (pissing people off) a few things. Yes you can filter things based off the ISP's IP blocks. Everything who's destination is not their network can be blocked. Likewise, everything originating from, but not using the right IP, can be blocked. This will stop spoofed traffic from getting out, but will not stop it from getting in.

    Let's say a script kiddy uses Nmap with the spoof function turned on. How are you going to stop the randomly choosen IP's from entering the network? It will stop someone using it from within your network (and be a shock to that person when they get caught because only one source IP was getting to their intended target).

    One thing that I've always wanted to try was to filter traffic based on the addresses contained in the MAPS-DUL. I've never tried it because of concerns for slowing down the network (it is a long list) and pissing people off. The problem is a number of things would break. Things like ICQ would have to go through the main server. It would break multiplayer Rainbow6, PCAnywhere. or any other program that expects a direct connection with another other home uses to work. This might be fine on a limited basis were you can actively control what gets in and out of your network. But on the scale of ISP's.....

    If everyone started filtering traffic from within their network to stop spoofed traffic from getting out, then spoofing throughout the internet would drop. But everyone would have to do it.

    And like everything else, someone will find a way around it.....

    --
    Go not unto/. for advice, for you will be told both yea and nay (but have nothing to do with the question)
    1. Re:Hard to do by sgifford · · Score: 1

      This is how the RBL was originally implemented. You take the RBL as a BGP feed to your router (or to gated), and it routes traffic destined to those addresses to the bit-bucket.

      I've never done it, but it's certainly possible.

  43. Can't get there from here by The+Dev · · Score: 2

    This just came up on the NANOG mailing list.

    The conclusion was that RFC1918 suggests that ISP's prevent reserved addresses from being forwarded, but does not require filtering.
    "should take measures" != "MUST NOT"

    Also, any packet based ACL is simply impractical on core routers, except for the very fastest (like Juniper M40). Sure, they use ACL's temporarally to fix/debug problems, but leaving them there full time would degrade performance unacceptably.

    1. Re:Can't get there from here by BeBoxer · · Score: 2

      I believe the original question was about ISP's filtering any packets whose source address doesn't match the customers range. In the case of a core router, this task is impossible. If a router is truely a core transit router, (almost) any source address it sees is a valid address. The place for these filters is on the links from individual customers or ISP's. Having a router that's fast enough to filter your customers connections is just a cost of doing business in my opinion.

      I think it's only a matter of time before an ISP gets sued out of business for allowing forged packets onto the network. If I'm the victim of a DoS attack whose source addresses at least belongs to the true originating ISP, I can probably get things cleaned up in less than an hour. If the source is forged, it might take me days. Do the math on a busy ecommerce site being down for days instead of hours.

      No matter what excuses people make, the only beneficiary of allowing forged source addresses onto the net are crackers and script kiddies. If your router can't handle the load, buy a bigger one.

    2. Re:Can't get there from here by kashani · · Score: 1

      Again this is why you filter AT THE BORDER before the problem make it to the core.

      kashani

      --
      - Why is the ninja... so deadly?
  44. No they do not! by Nonesuch · · Score: 1
    I have tested sending out packets with 10.* addresses, and they flow freely in and out of Sprint,Genuity(Formerly GTE/BBN/NapNet) and Concentric.

    This was about three months ago.

  45. Unicast Reverse Path Forwarding by sbraab · · Score: 1

    Cisco has a technology implimented in their IOS which employs the concept of ACLs with dynamic routing. It is documented as unicast reverse path forwarding and basically it checks the routing table and makes sure that there is a route back to the place where the source address came from. There are a number of other check which are also enabled with the use of rpf including some simple packet validation. RPF is getting more and more detailed in later versions of IOS 12.1.x(T) has added a bucnh of new features.

  46. Re:doh. by kill-1 · · Score: 1

    it's /sbin/ipchains -A input -d 127.0.0.0/24 -j REJECT /sbin/ipchains -A input -d 192.168.0.0/16 -j REJECT /sbin/ipchains -A input -d 10.0.0.0/24 -j REJECT

  47. You are Missing the point!!!! by bleh-of-the-huns · · Score: 1

    You don't seem to understand, its one thing applying an ACL to a packet based device, you lose efficiency somewhat, and degrade the overall performance of the network. However, many companys are no longer using old IP based systems.

    At my previous employ, there were a few customers that used ATM, a cell based not a packet based protocol, ACL's do not work with cell based protocols, as well as people like uunet, att, bbnplanet, most of them use ATM to route traffic internally and across peers from there border routers. so putting up an ACL is not an option.

    --
    I came, I conquered, I coredumped
    1. Re:You are Missing the point!!!! by sgifford · · Score: 1

      But they're still running IP on top of ATM; if they aren't, they aren't connected to the Internet. And they can set up filters where IP is converted to ATM, and where ATM is converted back to IP. We do this on all of our ATM circuits.

  48. Most ISPs use access lists! by stupowers · · Score: 1

    The vast majority of ISPs do have an access list that prevents spoofing coming from their networks. I think a bigger issue is networks which are smurf amplifiers.

  49. Meanwhile... by xiana · · Score: 1

    While we're on the topic of router security and access lists, did it ever occur to anyone that if ISP's blocked outgoing SMTP on all their dialout ports at the router level, we'd probably see a 72.9% reduction in spam ? -Xian

  50. Re:doh. by Quietust · · Score: 1

    If you're going to be picky about it, then I'll be slightly pickier:
    /sbin/ipchains -A input -d 127.0.0.0/24 -j REJECT
    /sbin/ipchains -A input -d 192.168.0.0/16 -j REJECT
    /sbin/ipchains -A input -d 10.0.0.0/8 -j REJECT
    and, I think...
    /sbin/ipchains -A input -d 172.16.0.0/20 -j REJECT
    for 172.16.*.* thru 172.31.*.* (also internal IP ranges).

    -- Sig, 120 chars --
    Your friendly neighborhood mIRC scripter.
    if (ismoderator(reader)) hidecomment(this);

    --
    * Q
    P.S. If you don't get this note, let me know and I'll write you another.
  51. Invalid ip's on the boarder by buss_error · · Score: 1
    Lets see, we have

    10.x.x.x

    127.x.x.x

    172.16.x.x - 172.31.x.x

    192.168.x.x

    224+ (I think)

    What else?

    --
    Necessity is the plea for every infringement of human freedom. It is the argument of tyrants; it is the creed of slaves.
    1. Re:Invalid ip's on the boarder by Quietust · · Score: 1

      Also, there exist the 169.254.x.x addresses which Windows seems to enjoy assigning to itself. Though not officially part of RFC1918, they seem to be generally accepted as internal addresses.

      -- Sig, 120 chars --
      Your friendly neighborhood mIRC scripter.
      if (ismoderator(reader)) hidecomment(this);

      --
      * Q
      P.S. If you don't get this note, let me know and I'll write you another.
    2. Re:Invalid ip's on the boarder by Quietust · · Score: 1

      Finally figured it out... Windows assigns itself a 169.254.x.x IP when it's told to use DHCP but can't find a DHCP server. More info here.

      -- Sig, 120 chars --
      Your friendly neighborhood mIRC scripter.
      if (ismoderator(reader)) hidecomment(this);

      --
      * Q
      P.S. If you don't get this note, let me know and I'll write you another.
    3. Re:Invalid ip's on the boarder by Magic5Ball · · Score: 1

      Hmmm... I wonder if this is by consensus or "decommission this or face the wrath of umpteen windows clients" :-) whois -h whois.arin.net 169.254 Internet Assigned Numbers Authority (IANA) (NETBLK-LINKLOCAL) For use with Link Local Networks Information Sciences Institute University of Southern California 4676 Admiralty Way, Suite 330 Marina del Rey, CA 90292-6695 Netname: LINKLOCAL Netblock: 169.254.0.0 - 169.254.255.255 Coordinator: Internet Assigned Numbers Authority (IANA-ARIN) iana@IANA.ORG (310) 823-9358 Fax- (310) 823-8649 Domain System inverse mapping provided by: BLACKHOLE.ISI.EDU 128.9.64.26 Record last updated on 14-Oct-1999. Database last updated on 24-Jul-2000 05:50:46 EDT. The ARIN Registration Services Host contains ONLY Internet Network Information: Networks, ASN's, and related POC's. Please use the whois server at rs.internic.net for DOMAIN related Information and whois.nic.mil for NIPRNET Information.

      --
      There are 1.1... kinds of people.
  52. Re:Meanwhile... (Offtopic somewhat) by bleh-of-the-huns · · Score: 1

    The problem with this one is that ISPs that lease lines aka uunet/sprint/psi to people like gte/msn/mindspring run up against contract issues. Alot of the time the ISP that leases the lines does not give a shit about what there users send as in most cases the leased lines do not identify which ISP the user is with, only shows a psi.net or a da.uu.net ip. Therefore they do not care. It is very easy to setup per port filtering, its a finctionality on all Ascend terminal servers (and I will assume something similair with others), What happens is when the user authenticates, he has an associated profile with his name, in that profile there is an SMTP server listing, all traffic to port 25 but to the listed server is blocked. The reasons the isp's that lease lines hate this, it makes it very easy for the people who get spammed to ID which isp has whcih leased line since user a can only use user a's isp mail server.

    --
    I came, I conquered, I coredumped
  53. Re:doh. by Quietust · · Score: 1

    doh :)
    /sbin/ipchains -A input -d 172.16.0.0/20 -j REJECT
    should be
    /sbin/ipchains -A input -d 172.16.0.0/12 -j REJECT
    I counted the wrong bits :)

    -- Sig, 120 chars --
    Your friendly neighborhood mIRC scripter.
    if (ismoderator(reader)) hidecomment(this);

    --
    * Q
    P.S. If you don't get this note, let me know and I'll write you another.
  54. Re:doh. by kill-1 · · Score: 1

    /sbin/ipchains -A input -d 10.0.0.0/8 -j REJECT

    You're right
  55. With large dialpools, doesn't help much by Morgaine · · Score: 2

    There's one thing that large ISPs simply cannot do, and that's to anti-spoof every dialup client connection separately, because that just doesn't scale well as dynamic dialpools grow in size -- that's just too many ACLs for current-day routers.

    Consequently, at best they'll anti-spoof aggregated blocks, but even that can be impossible to do when the IP address allocation is fully dynamic as it has to be for really big ISPs, especially those that are virtualized into more than one branded product that must operate in disjoint dialpool spaces but using the same dialin hardware. And even where aggregated anti-spoofing is posssible, it does not provide full accountability --- you can nail the DoS to an ISP, but that's all, which doesn't help when DDoS attacks are synchronized to appear from multiple ISPs simultaneously.

    As a result, until the NAS/RAS/HomeGateways etc do their own per-connection anti-spoofing, there will always be opportunity for attackers to randomize their source addresses to some degree. The problem at the moment is that there appears to be virtually no anti-spoofing on dialpools at all in practice, and that's real bad.

    --
    "The question of whether machines can think is no more interesting than [] whether submarines can swim" - Dijkstra
    1. Re:With large dialpools, doesn't help much by Todd+Knarr · · Score: 1

      You don't anti-spoof each individual connection. Even ISPs usually allocate dial-in addresses in blocks, and you anti-spoof the entire block in one shot. Remember that it doesn't matter whether the address is currently in use or not, you can still anti-spoof it either way. That reduces it from one ACL per address to one ACL per contiguous block the ISP owns.

    2. Re:With large dialpools, doesn't help much by Morgaine · · Score: 2

      And that's exactly the problem. We anti-spoof aggregated dialpools as I outlined, but when you have hundreds of thousands of addresses in those pools then there is ample opportunity for source address randomization that passes freely through the anti-spoof blocks.

      It barely helps at all. Only anti-spoofing individually allocated connections will eliminate this problem entirely, and in a large-ISP environment of multiple dynamic dialpools, that just has to be integrated into the NAS machinery by default. In practice, nothing else is manageable, and nothing else provides the accountability that is needed for abuse control.

      --
      "The question of whether machines can think is no more interesting than [] whether submarines can swim" - Dijkstra
    3. Re:With large dialpools, doesn't help much by sgifford · · Score: 1

      Do your terminal servers support a RADIUS attribute that specifies a filter? And does your RADIUS server let you build such a filter dynamically?

      If so, this is pretty easy to do; I implemented it in an experimental copy of the Cistron RADIUS server that we played with for awhile. Basically, I could send with each RADIUS acceptance packet a string attribute that would look something like this:

      "drop if source != <address assigned>"

      We use Bay Networks terminal servers, and they support an attribute like this. I don't know what kind of terminal servers you are using, but it would surprise me somewhat if they didn't also offer support for this.

      It would really surprise me if this caused any significant load on your terminal servers; this check probably requires an additional 2-5% of CPU time over normal PPP overhead.

    4. Re:With large dialpools, doesn't help much by Todd+Knarr · · Score: 1

      True, but it insures that the packets can be traced back to at least the originating ISP. At that point, knowing that one of their customers is launching such an attack, they can use other methods to track him down.

  56. Underpowered routers the problem? by swb · · Score: 1

    Everyone says "we can't do this because it kills CPU on our routers" and from what I understand this is true. I've read that you can barely manage two full looks at BGP on a Cisco 3640.

    Considering what Cisco is charging for hardware relative to what you're getting under the hood, shouldn't we be getting a whole hell of a lot more performance out of our routers? If I'm paying close to $3k for a 26xx router with a v.35 and a 10/100 ethernet port, why am I not getting the equivilent processing power of a $3000 PC? Where's the SMP?

    I think the answer to why ISPs don't filter is that many can't; the routers they use aren't capable of the extra processing. But the real answer is that profiteering by hardware makers like Cisco (remind anyone of Apple's prices?) keeps low-end CPUs and small amounts of RAM in their routers while still charging sky-high prices. Is there any reason that a new 3640 doesn't have the CPU equivilent to a PIII650e at least?

    Long-term this means that ISPs can't do the egress/ingress filtering that would stymie loads of script kiddies.

    1. Re:Underpowered routers the problem? by Skapare · · Score: 2

      There is a way to do this without burning up all the CPU. In an access-list, the more netblocks you have, the more filter rules you have, and each one bogs down the CPU more an more. The correct solution is different than an access-list. But it needs to be coded directly into IOS and the interface processors.

      The logic for this borrows from routing. When a packet arrives on an interface, it will eventually be routed by means of looking up the destination address in the routing tables (and route-maps where configured). What needs to be done first is to use the source address of the packet and do a lookup in the route table. But instead of selecting the best route (lowest metric) just compare the arriving interface with the interface of any valid outgoing route that would be used if the source were a destination. If it matches up, let the packet go on. If not, drop it on the floor.

      Once implemented, it would be just a matter of turning it on. Actually, this feature should be on by default. Someone once told me that this feature did exist, but they couldn't say what the command for it was.

      --
      now we need to go OSS in diesel cars
    2. Re:Underpowered routers the problem? by swb · · Score: 1

      I'm sure there are clever ways of doing this kind of filtering such that it doesn't require heavy-duty CPU time. This still doesn't answer the question as to why routers seem to have such weak CPUs relative to their cost.

      I think we have the vendors to blame. Partly because the products are well engineered for their inteded purpose, passing packets under non-DoS conditions. Partly because they endeavor to keep costs down and profits high, so they use low-powered CPUs. Plus, it enables them to sell you yet another device (like PIX) to do the same thing your router could do if it had the power.

    3. Re:Underpowered routers the problem? by Cato · · Score: 2

      This is known as reverse path filtering - Linux 2.2 and Cisco IOS with CEF (Cisco Express Forwarding) have this. On suitable Cisco routers the overhead of RPF is minimal, due to the way CEF works. However, it doesn't work with multi-homed customers, amongst other cases.

  57. They do now... by pozar · · Score: 1

    Snippet of a filter for either a BGP ACL or just a route ACL...
    --
    ! Deny martian routes
    !
    ! 0/anything
    access-list 100 deny ip host 0.0.0.0 any
    ! 127/8 & longer
    access-list 100 deny ip 127.0.0.0 0.255.255.255 255.0.0.0 0.255.255.255
    ! The private use nets
    access-list 100 deny ip 10.0.0.0 0.255.255.255 255.0.0.0 0.255.255.255
    access-list 100 deny ip 172.16.0.0 0.15.255.255 255.240.0.0 0.15.255.255
    access-list 100 deny ip 192.168.0.0 0.0.255.255 255.255.0.0 0.0.255.255
    ! Test net
    access-list 100 deny ip 192.0.2.0 0.0.0.255 255.255.255.0 0.0.0.255
    ! 1st and last classical B and C nets (guard nets).
    access-list 100 deny ip 128.0.0.0 0.0.255.255 255.255.0.0 0.0.255.255
    access-list 100 deny ip 191.255.0.0 0.0.255.255 255.255.0.0 0.0.255.255
    access-list 100 deny ip 192.0.0.0 0.0.0.255 255.255.255.0 0.0.0.255
    access-list 100 deny ip 223.255.255.0 0.0.0.255 255.255.255.0 0.0.0.255
    ! All multicast routes - the router now does this itself, but it didn't
    ! at one point.....
    access-list 100 deny ip 224.0.0.0 31.255.255.255 224.0.0.0 31.255.255.255
    ! Block all routes with a mask longer than /24,
    access-list 100 deny ip any 255.255.255.128 0.0.0.127
    --

    Although this doesn't take care of a number of DDOS attacks as they come from real machines.

  58. Old News by TheHulk · · Score: 1

    Outbound source address packet filtering has been used since the beginning of the DDOS attacks. However, it was only implemented by security gurus to identify a compromised machine on your local network. That is, simply denying the outbound traffic doesn't negate the fact that your machine has been compromised, therefore it's best to log any incident where the given rule has ben violated on the router. Here's an example of this filter when applied to a Cisco router:

    access-list ### permit ip ###.###.###.0 0.0.0.255 any
    access-list ### deny ip any any log

    In the above example, we are allowing a user defined Class-C subnet to be allowed outbound. Therefore you will want to apply this rule to outbound traffic on your serial interface. Even though by default a Cisco IOS access-list has an implicit deny all rule following all list entries, you need to add this line in order to log all denied traffic. Once you identify which local host is sending spoofed outbound packets, you can then work on the oh-so-fun damage control. Hope this helps.

  59. From My Experience by caperry · · Score: 1

    I've asked many an ISP the same question, and usually gotten the same response...
    "We cannot possibly filter by source IP at our border routers because it would increase our access time and slow access to the internet"
    To which my response is usually get a bigger router. I'm designing an internet security product that eventually will be marketed to ISPs for their high speed customers. As part of the agreement for getting these devices, we will require that all ISPs who support our product implement a 5-10 rule list at their border routers to block stupid things, like anything coming in from the internet with a Source IP of the ISP's network, all the reserved IPs, and anything going out without a source IP of the ISP's internal network. It just makes sense. If they need a bigger router, then so be it. Just giving customers access to the internet and refusing to put in common sense filtering rules in the name of slow routers and slow ping times is totally unacceptable. If someone from ISP land can give me a good reason why my logic is flawed, please let me know.

    --
    -Carl "No, we already thought of that one. 'Why?' '42' - It doesn't fit." -Hitchhiker'
  60. Here is what the "Big Boys" do by nic · · Score: 2

    Many of the engineers who run the biggest networks work very closely with Cisco to develop, implement and document new features in IOS. Here is a Cisco document which explains how an ISP should implement these features:

    http://www.cisco.com/warp/public/707/EssentialIO Sfeatures_pdf.zip

    --
    All opinions expressed are mine, if you want them it'll cost you.
  61. Re:doh. by jiggel · · Score: 1

    it's 127.0.0.0/8. details, details, all those details! :)

  62. okay then... by eastMike · · Score: 1

    that makes a lot more sense. I have only basic networks knowledge (only took 1 class), but it seems that this type of thing would be farily simple. I'm sure there wouldn't be too much of a performance decrease, and the fact that it's dropping those foreign packets instead of processing them further would likely make up for any extra overhead. But, how effective would this strategy be? From what I've read, many of the DoS attacks merely send so many packets toward a computer that it can't handle them all. Couldn't this happen whether the packets are dropped or not? Perhaps an attempt to restrict the 'from' addresses would be futile.

    --

    Time is fun when you're having flies.
    -Kermit the Frog
    1. Re:okay then... by BigBlockMopar · · Score: 2
      From what I've read, many of the DoS attacks merely send so many packets toward a computer that it can't handle them all. Couldn't this happen whether the packets are dropped or not?

      Could filter out all ICMP (ping, etc.) packets as part of your firewalling ruleset, but that will have other consequences, since ICMP is important to help negotiate a TCP connection when something goes wacky somewhere.

      Just make the firewall ruleset watch for fragmented ICMP packets, as well as misformed ICMP packets (ie. the "ping of death").

      A floodping just eats bandwidth, sometimes overloading and crashing routers and stuff along the way. Yank your internet connection to make damned sure this doesn't hit the internet, then from a Linux box, type "ping -f 192.168.x.x &" several times, where the x.x is the rest of the local IP address of a Windows box. Watch your ethernet lights, and the collision light on your hub. When I do this, my Windows 95B box slows right down, but it doesn't crash.

      A DoS attack usually involves sending a floodping of malformed or fragmented packets, meaning that the system at the other end either experiences buffer over-runs (which, depending on how well the operating system protects memory, may or may not corrupt something else in RAM) or retries in vain to get the other part of the fragmented packets that the other system is sending.

      At some point, the buffers either become full or start to over-write their boundaries. The blue screen of death is only around the corner.

      BTW, don't take this as gospel, this is my understanding of what happens from burning the candle at both ends as I learn about network security in preparation for administering a webserver at the office.

      --
      Fire and Meat. Yummy.
  63. Right idea, wrong implementation by Plasmic · · Score: 3
    I completely agree: null routes are the easiest way to ensure that you don't allow RFC 1918 ingress or egress traffic. Here's the key paragraph from the RFC:

    Because private addresses have no global meaning, routing information about private networks shall not be propagated on inter-enterprise links, and packets with private source or destination addresses should not be forwarded across such links. Routers in networks not using private address space, especially those of Internet service providers, are expected to be configured to reject (filter out) routing information about private networks.
    However, your subnet mask (as is the correction you posted) is goofy, although it makes a nice wildcard mask. Let's give the Cisco kids out there some useful syntax that they can cut-and-paste into their routers (as long as they're in privileged exec/enable mode):

    ip route 10.0.0.0 255.0.0.0 null0
    ip route 127.0.0.0 255.0.0.0 null0
    ip route 172.16.0.0 255.240.0.0 null0
    ip route 192.168.0.0 255.255.0.0 null0

  64. Re:No security I've seen stops DDoS attacks. by logicTrAp · · Score: 4

    The point is that if every ISP filtered outgoing packets to make sure that they came from legitimate IP addresses, while it may not stop DOSes, it would at least make it a LOT easier to shut down the offending sites since they couldn't lie about where they were coming from. Currently when you get DOSes, it requires a hellish amount of effort from the backbone providers if you want to try to figure out where the (spoofed) packets are coming from.

  65. Reserved IP's are the tip of the iceberg. by Above · · Score: 1

    Filtering reserved IP's are but the tip of the iceburg when it comes to DOS attacks. Today there is more unallocated IP space then allocated IP space, and all that unallocated space is just as effective when used as "random source addresses". Ever get a packet from class E space? How about one with a multicast source? Get a lot of packets from 80/8, that would be bad too.

    The actual list, if you wanted to prevent packets from bad sources would be large, I estimate 200-400 lines to catch them all. Most routers are not happy with ACL's that long, although the vendors are catching up. Worse though, is there is no good mechanism to notify ISP's when space starts to be used. Registries don't have to e-mail every ISP today and say "take this out of your filters, we're allocating it". If all ISP's blocked this space there would be significant pain every time a new block was used, which is quite often today.

    Could you block RFC1918 space only? Sure, cakewalk. Would it help prevent DOS attacks, highly unlikely. The kiddies would work around that in about 3 seconds and use other space. Don't forget, spoofing real, allocated, in use IP's works just dandy too.

    1. Re:Reserved IP's are the tip of the iceberg. by Skapare · · Score: 2

      Just permit your own IP blocks as source address for outgoing packets, and deny everything else. If you have too many netblocks to do that with, then you need to get aggregated. If you don't, then you're part of the problem (e.g. flooding BGP4 prefixes).

      --
      now we need to go OSS in diesel cars
    2. Re:Reserved IP's are the tip of the iceberg. by Todd+Knarr · · Score: 1

      True, but any one ISP shouldn't be trying to block out all bad sources. That's just too large a job. They should implement inbound filtering to reject private addresses and packets coming from outside claiming to be from internal addresses, and implement outbound filtering to limit packets to only legal internal addresses. The exception might be NSPs who primarily provide transport for other networks, and they should require inbound/outbound filters on their customer's networks as part of their terms of service.

      In fact, what I just described is the default firewall setup I use on my own home network. Probably not needed, but why not?

    3. Re:Reserved IP's are the tip of the iceberg. by Above · · Score: 1

      Properly filtering your own customers prevents you from being part of the problem, but in no way prevents you from being attacked by spoofed sources. Most attacks come from outside your network, not from within.

  66. Sometimes useful to spoof by Anonymous Coward · · Score: 1
    I have two ISPs... a low-speed fractional T1 (128 kbps) and a high speed "wireless cable" (isn't that an oxymoron). The wireless service is approx 2 Mbit/sec, in only one direction, and for the other direction is requires an analog modem. For the technically curious, the hardware is made by Hybrid Networks. (Not the "new" 2-way devices they're talking about). The ISP is wantweb.

    The wireless service is really cool for downloading and surfing the web, but the high latency analog modem leaves a bit to be desired. The Frac-T1 is great for running my website and has nice low latency, but it's lacking in the raw bandwidth dept.

    Using a couple simple linux tricks (IP Masq, interface alias, and a couple static routes), I send out all my client access on the Frac-T1 service, with the packets labeled using the IP number assigned to the high speed wireless... when the remote server responds, the packets return on the wireless service, at really high bandwidth, and without tying up a phone line.

    If the folks providing me with the connectivity on the Frac-T1 line did Ingress filtering... well, that would suck. I've talked with them about this setup, and they're fine with it. They don't seem to feel like it's their job to prevent DDoS attacks... they only worry about them when they're being attacked. They seem to have one really expensive router that plugs into a T3 line, and I'm sure it doesn't have much extra CPU and RAM. They're on a tight budget, but the upside to their tight budget is good service and very competitive prices. They're also quite friendly... instead of the usual ISP responses: "That's impossible" or "We won't let you (because we don't understand it)", these guys more or less say "Anything's ok, if you don't need tech support and it doesn't hurt our network".

    Because they don't do Ingress filtering, I was able to make this really cool setup. I asked a few ISPs if they'd allow me to do something like this (I just wanted to know if they did Ingress filtering), and they said it wasn't even possible to use two providers like this. A couple said maybe when IPv6 appears. It does indeed work very nicely.... obviously they didn't know a damn thing about TCP/IP.

    1. Re:Sometimes useful to spoof by TBC · · Score: 1

      This attitude is exactly why we're having problems with DDOS.

      "They don't seem to feel like it's their job to prevent DDoS attacks... they only worry about them when they're being attacked."

      In other words, they don't mind selling nuclear bombs as long as they aren't the target. If they are small, they would have been better off saying OK, we'll open up your IP for inbound.

      Just wait until they become the source of a DDOS. Failing to take any actions when you know your network could be used for DDOS could be considered negligence...

  67. To much load on router? by Shotgun · · Score: 2

    I guess it must depend on the ratio of good packets to spoofed ones. If you only have to spend a few cycles to throw out a useless packet, that is a packet that isn't sucking bandwidth. The complication is, you don't just check that packet, you have to check them all. So,
    1)at what point does the slow-down from checking packet headers meet the slow-down from transmitting spoofed packets?
    2)Is there any way to do an imperical study to track some statistics?

    --
    Aah, change is good. -- Rafiki
    Yeah, but it ain't easy. -- Simba
    1. Re:To much load on router? by sgifford · · Score: 1

      Generally, the solution to that is to do the checking on a border router, which handles a T1 or so and can easily spare the CPU cycles to check packets. That lets the routers in the core of your network, which may be bottlenecked by their CPU, not have to worry about it.

      Some RADIUS servers and terminal servers can do filtering right above the PPP layer, which is ideal. Terminal servers generally have some spare cycles, and that prevents all routers from having to do this check.

  68. DoS vs Everyday by Indomitus · · Score: 1

    The difference is that the overhead/slowdown from filtering can bring a router to it's knees every minute of the day forever, a DoS usually only lasts a little while. I personally am in favor of filtering but it's not a black & white issue, there's many different factors.

  69. Censorship? by Anonymous Coward · · Score: 1


    Isn't this just another form of censorship?

    I have the right to say whatever I want in my packets, and no one can take that right away from me!

    The IP-section of the packet was by no means designed as a verification mechanism of its source, but for aiding the recepient in directing a reply. If the sender chooses not to reveal his origin, that is his decision! The source IP should not be taken as seriously as many people taek it. Having ISPs verify outgoing packets is analagous to having the return address of post-cards monitored by the post office.

    Sure, DDoS attacks and such will be easier to trace, but is it worth giving up the freedom of anonymity?

    Why don't we just attach a unique serial number, associated with our identification, to all the packets we send out? And have the routers at the ISP's cross-reference this ID with who is actually logged in on that node, etc. This way we will get rid of all the DDoS attacks!

    For how an altruistic a stance /. usually takes in this arena, in this case it seems to be blinded by its seeming indifferent acceptance of this tactic, which is really just as infringing as many of the other tactics it is crying about every other day.

    Trying being a little more consistent /. Or do you just promote free speech and individual rights when its only in your best interests?

    1. Re:Censorship? by sgifford · · Score: 1

      If an ISP lets their customers forge IP packets, then there is no way to track down spammers, network attackers, or anything else. No reasonable ISP deliberately lets you forge IP packets. The only reason some do is because they don't have the time or the know-how to fix it.

      You don't really get any useful type of anonymity from this anyways, since you can send forged packets but will never receive responses (because the packets are forged, the responses won't go to the right place). This prevents you from using TCP altogether, which makes it useless for email, Web browsing, pretty much anything except various types of attacks.

      Further, the IP header has been used as a verification mechanism of the source for a long, long time. The UCB rlogin/rsh tools use this as their only security, and have been out since 4.2BSD was released in 1982.

  70. Some users require spoofing by Lazaru5 · · Score: 1

    Like those using one way Satellite and Cable services, who use dialup for their upstream connection.

    --

    --
    My comments and opinions completely reflect those of anyone and anything I am remotely associated with.
    1. Re:Some users require spoofing by talks_to_birds · · Score: 1
      How's that, now?

      I'm dialup (both in and out, not satellite or cable..) and for this current session I've got 12.73.99.xxx assigned to ppp0 (my outgoing interface) by my ISP, and 165.238.131.xx is where I'm going on to on the first hop back at my ISP.

      How would this be different for the uplink in satellite? Or cable?

      All my internal IP's are masq'ed; what needs spoofing going out?

      t_t_b
      --
      I think not; therefore I ain't®

      --
      I'm on PJ's "enemies" list! Are you?
    2. Re:Some users require spoofing by Lazaru5 · · Score: 1

      What does your connection have to do with anything? You aknowledged that you're not using satellite or cable, so that excludes you.

      Someone with one-way satellite or cable service needs to use a modem for their upstream data. Upstream packets must be spoofed with the IP of their satellite/cable connection.

      --

      --
      My comments and opinions completely reflect those of anyone and anything I am remotely associated with.
    3. Re:Some users require spoofing by talks_to_birds · · Score: 1

      I realized that when I re-read the guy below who seems to have home-brewed a similar setup..

      </blush>

      But doesn't the necessity of spoofing outgoing packets so that they're retured as thought they came from a different source kinda invalidate the topic of this er.. whole topic?

      Either we accept spoofed packets, or we blow away any form of connectivity that's got one IP going out but wants stuff sent back to another IP.

      t_t_b
      --
      I think not; therefore I ain't®

      --
      I'm on PJ's "enemies" list! Are you?
    4. Re:Some users require spoofing by sgifford · · Score: 1

      Tunneling is generally the best way to do this, using something like L2TP. If you want your packets to appear to come from your sattelite provider, you send them via normal, unforged IP to a server of theirs, which rewrites the address and resends it from their IP space. Somewhat less efficient, but much more controllable.

      I can't believe that sattelite services require forging of IP headers; that would not work with a large number of ISPs, including ours, and we have at least a handful of DirecPC customers.

  71. Re:A reason by DavidTC · · Score: 1

    Um, you don't understand. If they're on your network, and spoofing your address, then they're insanely easier to track down. If they're off your network, and spoofing your addresses, then you need to block them as they come in, because not only is that a DoS attack, but it's likely to interfere with the legit owner of that IP address.

    -David T. C.

    --
    If corporations are people, aren't stockholders guilty of slavery?
  72. Re: Some ISP's will by mikeyp · · Score: 1

    We apply anti-spoofing access lists on all our customer edge routers, on both inbound interfaces (to stop their naughty people, and protect them from other ISP's naughty people where the ISP hasn't done this). Most of the edge routers aren't that busy, and the list is usually pretty short. We don't do anything like this on our core routers or border routers with our upstreams due to the overhead.

  73. Another source of information about DDoS by b0z · · Score: 1

    Go to AntiOffline. I know that the guys running that site have done some research into DDoS that haven't been tested yet.

    --
    Mas vale cholo, que mal acompañado.
  74. Handling the problem at the edges by Animats · · Score: 2
    The hardass approach would be to have server-side PPP implementations reject all packets with an IP address other than the one assigned to that PPP connection. That would totally eliminate spoofing via that path.

    Even many DSL systems use PPP (wierd, but true; newer consumer DSL is IP over PPP over Ethernet over ATM over DSL.) So similar enforcement is permissable there. If you have several IP addresses on the line, PPP has to know it, though, which currently isn't well-supported. But that's an extra-cost option with most DSL vendors anyway.

    PPP is CPU-intensive enough that checking the IP address in the PPP server shouldn't be noticed. It's probably better to handle this before the first router than trying to maintain validity tables in the router. Attackers locked down to a range of IP addresses can still use one belonging to someone else as long as it's in the valid block. So the DoS kiddies can still attack; they just have to change their strategy a bit.

    Real LANs with WAN connections are another matter, as are the dumber flavors of cable modems.

  75. Re: by eastMike · · Score: 1

    Right...if you read the previous responses, you'd see that I misunderstood, and it was explained to me. Thanks -- Mike

    --

    Time is fun when you're having flies.
    -Kermit the Frog
  76. Huh? This is a GOOD thing to do! by drsoran · · Score: 1
    Stub ISP's do and SHOULD block any traffic egressing from their networks that does not originate from their address space (obviously not backbone peer providers). The only reason traffic like that would be going out is if it was spoofed. It shouldn't just be something to suggest they implement, it should be mandatory.

    What does that have to do with restricting your "online rights"? The Internet is a priviledge if you haven't realized that yet, as is your local POTS phone network. You have no "right" to use it. You can buy service to use it and if you keep your account in good standing you may continue to use it as long as your provider agrees to offer it to you. As long as they have a good reason to disconnect you there's nothing you can do about it. Are you going to sue your ISP for disconnecting your line because you were spamming or attacking other machines on the Internet using spoofed addresses? Come on.

  77. Or some companies don't listen to consultants by jsm · · Score: 2
    Like when Intel hired Perl's own Randal Schwartz, who then found security problems onsite. When he tried to tell them, he embarrassed some manager somewhere. In response, Intel pressed charges and ended up sentencing Randal to jail, plus major fines, plus other penalties. No lie.

    That's why I won't work for Intel, if they treat consultants that way.

  78. Re:Right idea, wrong implementation - (the metric) by Plasmic · · Score: 1

    Your second guess was correct: static routes (with a default metric) are always favored over dynamic routes. Routes to directly connected devices are assigned a metric of 0, and static routes have a metric of 1. Dynamic routes start in the double-digits.

    Routes learned through RIP have a metric of 110 (iirc). So, if you wanted to configure a secondary route statically, you would assign it an administrative distance of 200 (or something), so that if the route learned through RIP failed, it would fall back on the static route. This is a frequent way of using of static routes for Dial-on Demand Routing (DDR) where you can't run a routing protocol across a link (since it's usually not up), so you have to define the routes statically, but don't want them to be the default (yes, this sentence has two predicates, but that's okay).

  79. RFC 2267 by wozz · · Score: 2

    This is all dealt with in RFC 2267: Network Ingress Filtering: Defeating Denial of Service Attacks which employ IP Source Address Spoofing

  80. Internet/routers by mindstrm · · Score: 2

    It's simple, really. As a matter of security; Whenever a router is aware of all address space on one port, it should block inappropriate traffic; Core network routers cannot do this. ISP routers should all be able to do this.

  81. I have been doing this for years by vanbrunt · · Score: 1

    At the ISP I work for, I am in charge of the ACLs on the routers. I am currently blocking all RFC1918 blocks (192.168, 10., etc...), loopback addresses, any outgoing not sourced from our IPs, and incoming not destined for our IPs. I also don't allow incoming sourced from our IPs. It's not difficult to do, it's only a few lines. If you need help doing this, feel free to e-mail me. vanbrunt@vanbrunt.com

  82. The ISPs are still not filtering? by donheff · · Score: 1

    Getting ingress and egress filtering in place was a big issue in as we came up on the Y2K turnover. There was a lot of fear of DDoS attacks and most Federal agencies (including mine) adopted the practice and encouraged our ISPs to do the same. We recognized that it would not eliminate the problem, but figured it would help weed out some of the most flagrant abuses. This effort got a lot of support in Government and private industry and I would have expected most ISPs to have adopted the practice by now.

  83. Re:Cliffy - cuz most ISPs aren't stupid. by sgifford · · Score: 1
    This is generally considered an acceptable risk. This topic is discussed on the NANOG mailing list on a weekly basis; see the mailing list archives for more information.

    The summary of what you'll see is a consensus that people who configure routers with different MTUs on different interfaces using RFC1918 address space, well, shouldn't do that. As long as they don't, you won't see any of the breakage that you describe above.

  84. Easy: Don't trust the ISP by randombit · · Score: 1

    You just can't assume the ISP is going to do it right. If you're really concerned (which you should be if you're on DSL or cable), get a 486 or Pentium or 68K or whatever, put Linux or *BSD on it, and set it up as a firewall between your bridge and your internal network. That way you can _know_ it's safe, not to mention the fact that you can prevent your ISP from scanning you. :)

  85. lack of knowledge by lkchild · · Score: 1

    Performance wise its very dependent on the router and OS used - most routers would fall back to process switching packets through with ACLs. newer bigger routers can build ACL processing into a switching engine so it doesnt bother the processor.

    Personally Im looking at Cisco routers, with later versions of IOS you can do ACL's in fast switching and silicon switching, but the IOS and hardware has to support it - question is which ones! I saw a list somewhere the other day, but its not one of those things that seems well known - Ive seen some pretty experienced people say that ACLs mean it always falls back to process switching (Hell - I freely admit I could be wrong on this point - its just what I read - I dont have a 7206 sitting in my home lab to play on).

    TTFN
    Lauren
    (CCNP, CCDP certified)
    --
    Lauren Child, lauren@laurenchild.net

  86. The Solution to the Laziness... by deek · · Score: 1

    Go to your Cisco Config prompt, enter in the following:

    access-list 101 deny ip 10.0.0.0 0.255.255.255 any log
    access-list 101 deny ip 172.16.0.0 0.15.255.255 any log
    access-list 101 deny ip 192.168.0.0 0.0.255.255 any log
    access-list 101 deny ip 127.0.0.0 0.255.255.255 any log
    access-list 101 permit ip any any
    int
    ip access-group 101 in

    Of course, make sure that you don't have an access list 101 already created :).

  87. The Solution to the Laziness... (once more) by deek · · Score: 1

    Go to your Cisco Config prompt, enter in the following:

    access-list 101 deny ip 10.0.0.0 0.255.255.255 any log
    access-list 101 deny ip 172.16.0.0 0.15.255.255 any log
    access-list 101 deny ip 192.168.0.0 0.0.255.255 any log
    access-list 101 deny ip 127.0.0.0 0.255.255.255 any log
    access-list 101 permit ip any any
    int *insert your favourite interface here*
    ip access-group 101 in

    Of course, make sure that you don't have an access list 101 already created :).

    p.s damn, I should learn to preview my posts before submitting.

  88. Private IP Addresses by bigchris · · Score: 1

    Aren't 192.168.* and other private IP addresses non-routeable?

  89. on the other hand... by sleeperservice · · Score: 1

    Perhaps they should do what our ASP just did - configure their firewall to deny packets on all ports except 21. Made accessing the Applications on port 80, never mind what else happens on port 80 (yes I know what that is), a bit difficult, though.....

  90. Re:there is one huge reason for not blocking by kashani · · Score: 1

    That's why you filter at the border before the erraent packets get in your core.

    Kashani

    --
    - Why is the ninja... so deadly?
  91. PCI NICs w/ lots of blinky LEDs. by kernel_panic · · Score: 1

    Hey, if you're looking for a good PCI DEC tulip card w/ 4 LEDs, you can't beat the Netgear FA-310TX. $17.95 last time I saw on Buy.com, and I'm currently running them on 4 machine on the home LAN (Linux, Win98, Win2K, FreeBSD 4.0 Current, and OpenBSD 2.7). The OpenBSD box is running w/ 2 of 'em right next to each other handling traffic via IP Filter. The only other variety of card is an old 3Com509 in a 486DX/66 w/ 12MB RAM running LRP (Materhorn 2.9.4). As far as reliability, that's all all my gaming buddies use, and those of us who build machines for a living use 'em pretty extensively in business environments w/ no real failure attributed to the NIC so far.

    1. Re:PCI NICs w/ lots of blinky LEDs. by BigBlockMopar · · Score: 2
      Hey, if you're looking for a good PCI DEC tulip card w/ 4 LEDs, you can't beat the Netgear FA-310TX. $17.95 last time I saw on Buy.com

      Thank you all for responding to that.

      I'll certainly check out those, and the other suggestion for the D-Link DE-530.

      Not that this has any sort of real relevant use, but my firewall/proxy has a free 5.25" bay, which I'm going to use to mount a hard disk drive. Since it's a 3.5" drive, I'll be using one of those adaptors, and it's got a faceplate.

      I've already laid plans to drill a whole bunch of holes into it and have labelled LEDs for eth0 and eth1. Again, not that it's got any practical use, except that it'll make my gateway look really impressive sitting under my fax machine with a zillion blinking lights on it.

      --
      Fire and Meat. Yummy.
  92. Cheap PCI Ethernet Cards with blinking lights by RallyDriver · · Score: 1

    DLink DE530
    Netgear FA310

  93. CPU to do filtering - not unreasonable at all by RallyDriver · · Score: 1

    Using an el-cheapo used Pentium as an ipchains box, you can filter DS3 speed bandwidth with a fairly healthy ruleset without coming close to stressing it.

    It would not be hard for Cisco, Foundry, Nortel et al to add enough CPU power to their medium sized boxes to perform similar filtering capability for ISP's border routers. Given the base price of one of these babies, even some extra dedicated hardware for this task (couple of I/O buses, a few meaty RISC CPU's, some RAM) would not be egregious.

    What is the typical CPU complement of a meaty router?

  94. Depends on IOS version by TheLink · · Score: 1

    ACLs force process switching only on older IOS versions. Or should I say ancient :).

    For the newer IOS versions the router can fast switch them. And maybe even SSE or whatever them.

    The general guide for Cisco stuff is if the technology/protocol/feature is new, it will be "process switched" which means the main cpu has to decide from scratch what to do for EVERY packet. A revision or so later, it will be fast switched where main CPU caches the first decision. Then in later revisions switching will often be done by the ASICs or more specialised hardware aka silicon switching or whatever the Marketing people want to call it. Of course if you're doing exceptional stuff like router encryption or compression then all bets are off ;).

    So with reasonably up to date hardware and firmware there is no technical/performance reason why you can't put ACLs at your inbound points or POPs to prevent your own users/customers from doing IP spoofing.

    You will have a bit more trouble at the interfaces with other ISPs, but it shouldn't be a big problem unless you have a multigigabit/s interface :).

    As long as the majority ensure that THEY themselves cannot do spoofing, it's hard for hackers to keep exploiting them. After an hour or so, you can trace the source and fix the problem.
    ISPs that allow spoofing should be shut off.

    Cheerio,
    Link.

    --
  95. blocking spoofed address @ ISP by jkdexpert · · Score: 1

    The problem with having the 192.168.0.0/16 10.0.0.0/8 and 172.16.0.0/12 blocked at the ISP is the fact that alot of ISP are using these IP to route internal traffic across their internal networks.. All in the name of saving an IP or two....

  96. Don't filter at backbones. And use static routes. by TheLink · · Score: 1

    Filtering should be done mainly at the edges to better identify the guilty/exploited parties.

    Filtering at main trunks is just to protect the innocent.

    Also you probably don't have to use ACLs for martian filters or simple stuff like that. Couldn't you just use static routes? Route unwanted packets to a null device - make good use of the ASICs.

    What's a few more routes to your 80,000 routes :).

    Link.

    --
  97. No ACL's because routers are slow by Anonymous Coward · · Score: 1
    It's trivial to add the appropriate ACL's to various routers and stop SOME classes of DoS attacks. But let's face it, the bulk of routing hardware out there today (the 12000's, the M40's, etc) all use CPU based forwarding engines.

    These engines have been tuned, over the years, to do relativly high performance destination based IP lookups on packets. As an example, a Cisco 12000 Gigabit Ethernet line card can do about 800 megabits worth of forwarding. You notice how this is less than the full line rate for the card?

    Adding ACL's can chew up processing time that could otherwise be used to forward traffic. In a typical Cisco router, each ACL line is examined sequentially. Just a one line ACL can signifigantly impact packet forwarding performance. Ten lines long, and you'll probably see 30% reduction in packets per second.

    Now, there's new technology on the way but as with most things it's slow in comming. There's some software improvements on Cisco's these days in the 12.0(S) trains that allow for "compiled ACL's". These use a FSA (finite state autonoma) to compile an ACL into a, essentially, "regular expression". It requires only one pass of the packet for any length long ACL. Lookup times are always deterministic. I think the break even point is a three line ACL over regular ACL's.

    Next in line is the addition of hardware based IP lookup engines and hardware based TCAM pattern matchers for filter list lookups. The new cisco Three Port Gigabit Ethernet line card for the 12000 is like this. However, packet forwarding performance is still around 2.5Mp/s, meaning you can really only use two ports at full guarenteed line rate. See the latest Cisco Release Notes for information about the new line cards.

    As a comparision, big routers handeling big web sites these days can do aggregate of about 5-7 million packets/second. This means ACL's are just right out for most of these routers with the current generation of line cards/technology.

    So, the simple explination is, most big web sites and their network providers know damn well what ACL's work best in what DoS's. But to put them on all the time means killing top end performance. So they only put them on when an attack is under way, and those are pretty easy to spot. :)