nucleo/freerouter

Project ID: 54761

Description

freeRouter is a free, open source router os process. it speaks routing protocols, and (re)encapsulates packets on interfaces. (a huge list of encapsulation and routing test cases can be found under self-test page) since it handles packets itself, it is independent of underlaying os capabilities. (it can export forwarding tables to xdp, dpdk or hardware switches via openflow or p4lang) since it is an unprivilegized process, it receives and sends packets through udp sockets. (it means that internet can be used as backplane for router processes) there are external, privileged processes that place traffic to these udp sockets. the command line tries to mimic the industry standards with one exception: no global routing table: every routed interface must be in a virtual routing table. positive side effect: there are no vrf-awareness questions.

Basically freeRtr is a control plane software that natively relies on UNIX UDP socket. Concretely, you can spawn an unlimited amount of router processes on the same host, and interconnect them via UNIX UDP sockets in order to implement a topology and simulate an entire network. This is freeRtr in its simplest form running in default mode. Please note that this installation is meant to demonstrate freeRtr UNIX socket forwarding capability. If you are considering switching high traffic rate such as 10G, it is advised to run freeRtr alongside a DPDK or P4 hardware dataplane.

Programmable dataplane P4, DPDK, XDP or TCPDUMP/libpcap are possible candidates.

Summary of features

  • forwarding: ipv4, ipv6, ipx, mpls, nsh, layer2, irb, atom, eompls, vpls, evpn
  • routing protocols: ospf, isis, bgp, rip, eigrp, babel, olsr, pim, msdp
  • lsp support: p2p, p2mp, mp2mp built by bgp, ldp, rsvp-te, sr, sr-te, bier
  • crypto: macsec, ipsec, ikev1, ikev2, tls, dtls, ssh, openvpn, wireguard
  • tunnel: gre, ipip, l2tp, pptp, lisp, geneve, nvgre, vxlan, etherip, amt
  • encapsulation: ethernet, vlan, nsh, ppp, framerelay, pwether, virtppp, hairpin
  • misc: acl, hqos, nat, pbr, srv6, vrrp, hsrp, transproxy, 6to4, rpl, tunnel, vpdn, pcep

Installation Instructions

Install base package freerouter, optional packages freerouter-native (tools pcapInt, p4dpdk and other), freerouter-doc (examples of test configurations). For some configurations dpdk-tools and socat packages should be installed.

Modify config examples rtr-hw.txt, rtr-sw.txt in /etc/freerouter/, start freerouter.service (see also freerouter-native@.service for running native tools). Run "telnet localhost 2323" to get console. Alternatively copy files rtr-hw.txt, rtr-sw.txt to rtr1-hw.txt, rtr1-sw.txt, modify them and start freerouter@rtr1.service where service name matches filenames (useful for running multiple instances).

Configuration examples

Copy demo configs "cp /usr/share/doc/freerouter/demo/*txt /etc/freerouter/", set owner "chown freerouter:freerouter /etc/freerouter/*txt", start services "systemctl start freerouter@r1 freerouter@r2 freerouter@r3 freerouter@r4", run "telnet localhost 2001" to get r1 console, change port to 2002, 2003, 2004 for r2, r3, r4 instances.

See also p4dkdk, p4emu and p4xdp systemd services examples in /usr/share/doc/freerouter-native.

More configuraton examples and documentation

Active Releases

The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).

Release Architectures Repo Download
EPEL 7 x86_64 (7019)* EPEL 7 (58 downloads)
EPEL 8 aarch64 (1625)*, ppc64le (1654)*, x86_64 (2724)* EPEL 8 (53 downloads)
EPEL 9 aarch64 (1622)*, ppc64le (1647)*, x86_64 (2633)* EPEL 9 (59 downloads)
Fedora 37 aarch64 (390)*, ppc64le (393)*, x86_64 (432)* Fedora 37 (0 downloads)
Fedora 38 aarch64 (10)*, i386 (976)*, ppc64le (4)*, x86_64 (8)* Fedora 38 (32 downloads)
Fedora 39 aarch64 (8)*, i386 (683)*, ppc64le (2)*, x86_64 (6)* Fedora 39 (24 downloads)
Fedora 40 aarch64 (0)*, i386 (165)*, ppc64le (0)*, x86_64 (0)* Fedora 40 (11 downloads)
Fedora rawhide aarch64 (432)*, i386 (2405)*, ppc64le (411)*, x86_64 (1169)* Fedora rawhide (70 downloads)

* Total number of downloaded packages.