Skip to content

Instantly share code, notes, and snippets.

@Ruben-E
Last active May 8, 2021 13:15
Show Gist options
  • Save Ruben-E/7a307248b68e31ccf16c71972ef955c4 to your computer and use it in GitHub Desktop.
Save Ruben-E/7a307248b68e31ccf16c71972ef955c4 to your computer and use it in GitHub Desktop.
OPNSense KPN

KPN OPNSense configuration

Preparation

  1. LAN Card required
  2. Configure LAN / WAN interfaces on machine
  3. Connect cable to LAN and access web interface on https://192.168.1.1

Prepare OPNSense

  1. Set hostname, domain and DNS servers

Configure VLANs on WAN

  1. Create VLAN 6 on WAN interface
  2. Create VLAN 4 on WAN interface

Assign VLANs to interfaces

  1. Go to assignments and assign VLAN 6 to WAN
  2. Assign VLAN 4 to a new interface called WAN_IPTV

Configure WAN interface

  1. Go to WAN interface and configure this:
    1. Enable
    2. Block private networks
    3. Block bogon networks
    4. IPv4 configuration type PPPoE
    5. IPv6 configuration type none (later)
    6. MAC address is optional
    7. MTU 1500
    8. MSS 1460
    9. Username macaddress@internet
    10. Password kpn
    11. Idle timeout 180
    12. Click save and apply changes

Configure IPTV interface

  1. Go to WAN_IPTV interface and configure this:
    1. Enable
    2. IPv4 configuration type DHCP
    3. IPv6 configuration type None
    4. DHCP Configuration Mode advanced
    5. Lease Requirements: Send options: dhcp-class-identifier "IPTV_RG"
    6. Lease Requirements: Request options: subnet-mask, routers, classless-routes
    7. Click save and apply changes

Connect cable

  1. Check for IPs
  2. No IP? Power off NTU and router for ~30 minutes and try again

Configure gateway

  1. Give gateway WAN_PPPOE a higher priority than WAN_IPTV_DHCP. 150 or so.
  2. You should now have internet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment