PugIX · Tehniski
Peering LAN un porta noteikumi.
Divi VLAN, vieni noteikumi un konfigurācijas piemēri RouterOS un BIRD.
Peering LAN
Adreses.
- IPv6
- TBA — gaidām RIPE IXP piešķīrumu
- IPv4
- TBA — gaidām RIPE IXP piešķīrumu
- Maršrutu serveri
- RS1, RS2 — sk. maršrutu serveri
- Looking glass
- lg.as218102.net
| VLAN | Kam | MTU |
|---|---|---|
pugix | visiem (fiziskiem un attālinātiem) | 1400 |
pugix-local | tikai fiziskiem portiem Perses 2 | 1500, 9000 pēc pieprasījuma |
Attālinātie dalībnieki ir tikai pugix VLAN: pēc tuneļa papildu galvenēm paliek 1400 baitu. Fiziskie dalībnieki Perses 2 var būt abos VLAN.
Porta noteikumi
Kas drīkst nonākt LAN.
- Viena MAC adrese uz portu (katrā VLAN). Kadri no citām adresēm tiek atmesti.
- Tikai IPv4, IPv6 un ARP ethertype; IPv6 — tikai neighbour discovery, bez router advertisement.
- Bez proxy-ARP, DHCP, STP, CDP, LLDP un citiem link-local protokoliem LAN virzienā.
- Broadcast, unknown unicast un multicast datplūsma tiek ierobežota. ARP un ND ir atļauti parastā apjomā.
- Jauni porti sāk darbu karantīnas VLAN un tiek pārcelti uz darba VLAN, kad pārbaudes ir izietas.
Konfigurācijas piemēri
RouterOS un BIRD.
Izsludiniet tikai savus un savu klientu maršrutus. Izmantojiet savu AS-SET — maršrutu serveri filtrē pēc tā.
# RouterOS v7 — values in <> are yours or announced at launch /interface vlan add name=pugix interface=<port-or-tunnel> vlan-id=<vlan> mtu=1400 /ipv6 address add interface=pugix address=<your-ipv6>/64 advertise=no /ip address add interface=pugix address=<your-ipv4>/<len> /routing filter rule add chain=pugix-out rule="if (dst in <your-prefix>) { accept }" /routing filter rule add chain=pugix-out rule="reject" /routing filter rule add chain=pugix-in rule="accept" /routing bgp connection add name=pugix-rs1-v6 as=<your-asn> local.role=ebgp \ local.address=<your-ipv6> remote.address=<rs1-ipv6> remote.as=<pugix-asn> \ input.filter=pugix-in output.filter-chain=pugix-out output.network=<your-address-list> # repeat for rs2 and for IPv4
# BIRD 2 — values in <> are yours or announced at launch filter pugix_out { if net ~ [ <your-prefix> ] then accept; reject; } template bgp pugix_rs { local as <your-asn>; enforce first as off; # route servers do not prepend their ASN ipv6 { import all; export filter pugix_out; }; } protocol bgp pugix_rs1_v6 from pugix_rs { neighbor <rs1-ipv6> as <pugix-asn>; } protocol bgp pugix_rs2_v6 from pugix_rs { neighbor <rs2-ipv6> as <pugix-asn>; }