Giter VIP home page Giter VIP logo

edgeos_fiber7's Introduction

edgeos_fiber7

Ubiquiti EdgeOS router configuration for the Swiss FTTH provider Fiber7. Including VLANs (Guest, Internal, Mgmt), IPv6 and Firewall. Should also work with other ISPs supporting DHCPv6 PD and "bring-your-own-router".

Optimized for 1Gbit WAN to LAN performance ๐Ÿš€ Multiple VLANs to create a secure #CHFreeWifi setup.

โš ๏ธ Warning: dont copy/paste. It will enable power-over-ethernet and could break your network devices.

Hardware

  • Ubiquiti edge router x sfp: EdgeOS v1.9.1
  • 2x Ubiquiti Networks 2.4GHz/5GHz, 867Mbit, 24V Passiv PoE, UAP-AC-LITE: v3.8.3
  • UniFi Switch 8 US-8: v3.8.3

Firewall

WANv6_IN

Allow traffic from external (Internet) to the internal network. Only accept established/related sessions for connections which have SYN/ACK. (started from your internal network)

WANv6_LOCAL

Accept local connnections with the icmpv6 protocol and allow internal DHCPv6 PD server and client connections.

VLAN_IN

Secure the networks between your VLANs (drop). But allow to access Unifi controller <> Unifi Devices and to the Router interfaces.

rule 10 Accept Router_IPs of your gateway's. List should be specified under adress-group Router_IPs

rule 15 Static whitelist to your Unifi controller. Specify the Unifi devices IPs (Switch, Wifi etc) under address-group unifi_devices

rule 16 Opposite direction of the rule 15

rule 19 Allow connection to the Unifi Wifi portal.

rule 20 Drop all other connections between VLANs.

WAN_IN

See WANv6_IN

WAN_LOCAL

See WANv6_LOCAL

Interfaces (including DHCPv6, VLANs)

Ethernet

eth 0 Normal port configuration.

eth 1 Normal port configuration (printer).

eth 2 Enable power-over-ethernet (PoE) for the Unifi access-point.

eth 3 Normal port configuration.

eth 4 Enable power-over-ethernet (PoE) for the Unifi access-point.

eth 5 WAN / Internet port with the SFP plugged.

Notes:

  • IPv4 over DHCP
  • IPv6 with DHCPv6 prefix-delegation (PD). _request your own /48 subnet from the init7 support ๐Ÿ”ฅ _
  • Prefix-id: add the missing 16 bits to announce a /64 to your internal network. Needed for SLAAC (Stateless Address Autoconfiguration).

Switch

VLAN 1 Management network with range (192.168.0.0/24).

yes, should be 192.168.1 - but was to lazy to change all my internal devices which already had a 192.168.1 network)

VLAN 2 Internal network: secure infrastructure (NAS, ๐Ÿ“ฑ ๐Ÿ“บ ๐Ÿ’ป )

Network: 192.168.1.0/24

VLAN 9 Guest VLAN: Network: 192.168.2.0/24

Assign the VLANs to the interfaces. Using trunk ports on eth0 - eth4.

  • pvid: default / native VLAN (if not set it's always VLAN 1) for the untagged traffic. Set the printer interface to the internal VLAN only.
  • vid: all traffic from the APs and the Switch is expected tagged (VLAN 2 or 9).

VIF

Add the gateway IPs to the virtual interface (VIF) of the VLANs.

port-forward

Some old-school port forwarding / NATing for devices and services which dont support IPv6 ๐Ÿ˜ข

Performance

Enable offload { hwnat enable } to boost your WAN to LAN performance to 1Gbit up/down. ๐Ÿš€

edgeos_fiber7's People

Contributors

khaefeli avatar rhorber avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.