Testing of OSPF insertion of malicious route attacks in Ubuntu

Source: Internet
Author: User
The attack on dynamic routing protocols has always been a concern of hackers. OSPF is a common Routing Protocol in campus networks. The security and importance of its configuration are self-evident. How to effectively protect the security risks of OSPF, more network administrators tend to focus on the security of the router itself, and habitually think that as long as the router is secure enough, the network is safe enough. In fact, security has always been a conscious competition, and technology is just the representation. Today, let's take a look at a simple ospf insertion of malicious routes. Preface: Attacks against dynamic routing protocols have always been a concern of hackers. OSPF is a common Routing Protocol in campus networks. The security and importance of its configuration are self-evident. How to effectively protect the security risks of OSPF, more network administrators tend to focus on the security of the router itself, and habitually think that as long as the router is secure enough, the network is safe enough. In fact, security has always been a conscious competition, and technology is just the representation. Today, let's take a look at a simple ospf insertion of malicious routes.

Model: In this experiment, we use dynamips to simulate routers, Vmware + Ubuntu to simulate attackers, and the attack program uses quagga, an open-source routing software installed on Ubuntu. The topology is as follows:

Model, R0 and R1 are originally converged ospf routes connected through a layer-2 switch, which is a very common method of campus networks. We connect to a computer C0 through a switch, run the corresponding program and direct the IP address R0 originally directed to R1's 172.16.0.2 to our attack client C0.

Principle: The ospf routing selection algorithm is not described here, in short. We didn't actually take advantage of any vulnerabilities. Instead, we made a handshake and adjacent to the ospf route without verification. Then we forced the routing in the form of the smallest cost.

Preparations:
Dynamips is used for Routers. Here we will not repeat the usage here. The two devices we have configured have been converged. The two routers use f0/0 links to interact with ospf. In addition, f0/1 is enabled for R1, update route information to R0. The information is as follows:
R0:

R0 # sh ip int bri
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.0.20.yes NVRAM up
FastEthernet0/1 unassigned yes nvram administratively down R0 # sh ip ospf ne Neighbor ID Pri State Dead Time Address Interface
192.168.0.249 1 FULL/BDR 00:00:36 192.168.0.249 FastEthernet0/0R0 # sh ip route
Codes: C-connected, S-static, R-RIP, M-mobile, B-BGP
D-OSPF, EX-VPN external, O-OSPF, IA-OSPF inter area
N1-ospf nssa external type 1, N2-ospf nssa external type 2
E1-OSPF external type 1, E2-OSPF external type 2
I-IS, su-IS summary, L1-IS-level-1, L2-IS level-2
Ia-IS inter area, *-candidate default, U-per-user static route
O-ODR, P-periodic downloaded static route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnets
O 172.16.0.0 [110/20] via 192.168.0.249, 00:09:42, FastEthernet0/0
C 192.168.0.0/24 is directly connected, FastEthernet0/0

R1:

R1 # sh ip ospf ne Neighbor ID Pri State Dead Time Address Interface
192.168.0.20.1 FULL/DR 00:00:30 192.168.0.20.fastethernet0/0R1 # sh ip int bri
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.0.249 yes nvram up
FastEthernet0/1 172.16.0.2 yes nvram up R1 # sh ip route
Codes: C-connected, S-static, R-RIP, M-mobile, B-BGP
D-OSPF, EX-VPN external, O-OSPF, IA-OSPF inter area
N1-ospf nssa external type 1, N2-ospf nssa external type 2
E1-OSPF external type 1, E2-OSPF external type 2
I-IS, su-IS summary, L1-IS-level-1, L2-IS level-2
Ia-IS inter area, *-candidate default, U-per-user static route
O-ODR, P-periodic downloaded static route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnets
C 172.16.0.0 is directly connected, FastEthernet0/1
C 192.168.0.0/24 is directly connected, FastEthernet0/0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.