*edit* [ code ] [ /code ] funka visst sådär, vilka taggar rekommenderar ni för att configen ska kollapsa till en scrollruta?
Fungerar @flaxehytt 's guide fortfarande? Jag får inte till det, har kollat de andra tipsen i tråden, och i andra trådar men förgäves. Jag sitter på en Edgerouter 12 och en unifi switch 8 nedströms som tvboxen är kopplad till. Har provat med vlan 243 också. Har även satt pvid 845 på eth3 och pvid 243 på eth4 och kopplat in tvboxen direkt i de två, men det har inte funkat det heller.
I switchen så har jag en port med endast vlan 845 (som "primary" som det heter i det gui:t, övriga vlan "blockerade")
Lägger in min config här, utifall en vänlig själ tittar förbi
firewall {
all-ping enable
broadcast-ping disable
ipv6-name WANv6_IN {
default-action drop
description "WAN inbound traffic forwarded to LAN"
enable-default-log
rule 10 {
action accept
description "Allow established/related sessions"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
ipv6-name WANv6_LOCAL {
default-action drop
description "WAN inbound traffic to the router"
enable-default-log
rule 10 {
action accept
description "Allow established/related sessions"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
rule 30 {
action accept
description "Allow IPv6 icmp"
protocol ipv6-icmp
}
rule 40 {
action accept
description "allow dhcpv6"
destination {
port 546
}
protocol udp
source {
port 547
}
}
}
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name WAN_IN {
default-action drop
description "WAN to internal"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
name WAN_LOCAL {
default-action drop
description "WAN to router"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
receive-redirects disable
send-redirects enable
source-validation disable
syn-cookies enable
}
interfaces {
bridge br0 {
aging 300
bridged-conntrack disable
hello-time 2
max-age 20
multicast enable
priority 32768
promiscuous disable
stp false
}
ethernet eth0 {
description Local
duplex auto
speed auto
}
ethernet eth1 {
description Local
duplex auto
mtu 1518
speed auto
}
ethernet eth2 {
description Local
duplex auto
speed auto
}
ethernet eth3 {
description Local
duplex auto
speed auto
}
ethernet eth4 {
description Local
duplex auto
speed auto
}
ethernet eth5 {
description Local
duplex auto
speed auto
}
ethernet eth6 {
description Local
duplex auto
speed auto
}
ethernet eth7 {
address 192.168.10.1/24
description Local3
duplex auto
speed auto
}
ethernet eth8 {
description Local2
duplex auto
speed auto
}
ethernet eth9 {
address dhcp
description Internet
duplex auto
firewall {
in {
ipv6-name WANv6_IN
name WAN_IN
}
local {
ipv6-name WANv6_LOCAL
name WAN_LOCAL
}
}
poe {
output off
}
speed auto
vif 243 {
bridge-group {
bridge br0
}
description "Telia IPTV alternativ"
}
vif 845 {
bridge-group {
bridge br0
}
description Telia-IPTV
}
}
ethernet eth10 {
duplex auto
speed auto
}
ethernet eth11 {
duplex auto
speed auto
}
loopback lo {
}
switch switch0 {
description Local
mtu 1518
switch-port {
interface eth0 {
}
interface eth1 {
vlan {
pvid 1
vid 2
vid 3
vid 845
vid 243
}
}
interface eth2 {
vlan {
pvid 1
vid 2
}
}
interface eth3 {
vlan {
pvid 845
}
}
interface eth4 {
vlan {
pvid 243
}
}
interface eth5 {
}
interface eth6 {
}
vlan-aware enable
}
vif 1 {
address 192.168.1.1/24
description LAN1
mtu 1518
}
vif 2 {
address 20.20.20.1/24
description IoT
mtu 1500
}
vif 3 {
address 30.30.30.1/24
description Gestur
mtu 1500
}
vif 243 {
bridge-group {
bridge br0
}
description "Telia IPTV alternativ"
}
vif 845 {
bridge-group {
bridge br0
}
description switch0.845_Telia-IPTV
}
}
}
port-forward {
auto-firewall enable
hairpin-nat enable
lan-interface switch0.1
lan-interface switch0.2
{
----
}
wan-interface eth9
}
protocols {
}
service {
dhcp-server {
disabled false
hostfile-update disable
shared-network-name Gestur {
authoritative disable
subnet 30.30.30.0/24 {
default-router 30.30.30.1
dns-server 30.30.30.1
lease 86400
start 30.30.30.10 {
stop 30.30.30.30
}
}
}
shared-network-name IoT {
authoritative disable
subnet 20.20.20.0/24 {
default-router 20.20.20.1
dns-server 20.20.20.1
lease 86400
start 20.20.20.2 {
stop 20.20.20.20
}
static-mapping Entrekamera {
ip-address 20.20.20.9
mac-address b8:27:eb:37:c8:de
}
}
}
shared-network-name LAN1 {
authoritative enable
subnet 192.168.1.0/24 {
default-router 192.168.1.1
dns-server 192.168.1.1
lease 86400
start 192.168.1.38 {
stop 192.168.1.243
}
}
}
shared-network-name LAN2 {
authoritative enable
subnet 192.168.2.0/24 {
default-router 192.168.2.1
dns-server 192.168.2.1
lease 86400
start 192.168.2.38 {
stop 192.168.2.243
}
}
}
shared-network-name LAN3 {
authoritative disable
subnet 192.168.10.0/24 {
default-router 192.168.10.1
dns-server 192.168.10.1
lease 86400
start 192.168.10.3 {
stop 192.168.10.250
}
}
}
static-arp disable
use-dnsmasq disable
}
dns {
forwarding {
cache-size 10000
listen-on switch0
listen-on switch0.1
listen-on switch0.2
listen-on switch0.3
listen-on switch0.845
listen-on eth1
listen-on eth0
}
}
gui {
http-port 80
https-port 443
older-ciphers enable
}
mdns {
}
nat {
rule 5010 {
description "masquerade for WAN"
log disable
outbound-interface eth9
protocol all
type masquerade
}
}
ssh {
port 22
protocol-version v2
}
ubnt-discover {
interface br0 {
disable
}
interface eth0 {
disable
}
interface eth9 {
disable
}
interface eth9.845 {
disable
}
interface switch0.845 {
disable
}
}
unms {
}
}
system {
analytics-handler {
send-analytics-report true
}
crash-handler {
send-crash-report true
}
host-name EdgeRouter-12
login {
user ubnt {
authentication {
encrypted-password **superhemligt**
plaintext-password **glass**
}
full-name ""
level admin
}
}
ntp {
server 0.ubnt.pool.ntp.org {
}
server 1.ubnt.pool.ntp.org {
}
server 2.ubnt.pool.ntp.org {
}
server 3.ubnt.pool.ntp.org {
}
}
syslog {
global {
facility all {
level notice
}
facility protocols {
level debug
}
}
}
time-zone UTC
}