###################################
# LOOPBACK
###################################
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
###################################
# LAN BRIDGE (solo LAN1-LAN3 + WiFi)
###################################
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'eth1'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
list dns '8.8.8.8'
###################################
# WAN - SFP+ fisico
###################################
config device
option name 'eth0'
option type 'device'
###################################
# VLAN 835 - INTERNET PPPoE
###################################
config device
option type '8021q'
option ifname 'eth0'
option vid '835'
option name 'wan.835'
config interface 'wan'
option device 'wan.835'
option proto 'pppoe'
option username 'benvenuto'
option password 'ospite'
option mtu '1492'
option ipv6 'auto'
option peerdns '0'
list dns '8.8.8.8'
list dns '1.1.1.1'
the configuration i have on firewall:
###################################
# DEFAULT POLICIES
###################################
config defaults
option syn_flood '1'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
###################################
# ZONE LAN
###################################
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
###################################
# ZONE WAN
###################################
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list network 'wan'
###################################
# FORWARDING LAN -> WAN
###################################
config forwarding
option src 'lan'
option dest 'wan'
###################################
# PERMIT ESSENTIAL WAN TRAFFIC
###################################
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option dest_port '546'
option target 'ACCEPT'
option family 'ipv6'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'fe80::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-advertisement'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
the error in the LuCi:
Protocol: PPPoE
RX: 0 B (0 Pkts.)
TX: 0 B (0 Pkts.)
Error: Unknown error (DEVICE_CLAIM_FAILED)
I tried to change configuration but nothing, i have a D-Link D100 directly connected to eth0
ethtool eth0
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10000baseCR/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10000baseCR/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10000baseCR/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: No
Link partner advertised FEC modes: Not reported
Speed: 10000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Current message level: 0x000000ff (255)
drv probe link timer ifdown ifup rx_err tx_err
Link detected: yes
ip link show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP qlen 1000
link/ether 56:d4:88:03:50:3a brd ff:ff:ff:ff:ff:ff
ip link show wan.835
ip: can't find device 'wan.835'
Thank you in advance, I hope to solve the situation, I even buyed a media converter 2.5 G (the ISP claim 2.5G) and tried another modem (flint 2) without success
###################################
# LOOPBACK
###################################
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd23:a222:4f1c::/48'
option packet_steering '1'
###################################
# LAN BRIDGE
###################################
config device
option name 'br-lan'
option type 'bridge'
list ports 'data'
list ports 'eth1'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'voice'
# WAN RIMOSSO DA QUI
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
list dns '8.8.8.8'
###################################
# WAN - DISPOSITIVO FISICO
###################################
config device
option name 'wan'
option maccaddr '56:D4:88:03:50:3A'
###################################
# VLAN 835 – WINDTRE INTERNET PPPoE
###################################
config device
option type '8021q'
option ifname 'wan'
option vid '835'
option name 'wan.835'
config interface 'wan'
option device 'wan.835'
option proto 'pppoe'
option username 'benvenuto'
option password 'ospite'
option ipv6 'auto'
option peerdns '0'
list dns '8.8.8.8'
list dns '1.1.1.1'
###################################
# VLAN 836 – WINDTRE VOCE (DHCP)
###################################
config device
option type '8021q'
option ifname 'wan'
option vid '836'
option name 'wan.836'
config interface 'voice'
option device 'wan.836'
option proto 'dhcp'
###################################
# WAN6 (IPv6 via PPP)
###################################
config interface 'wan6'
option proto 'dhcpv6'
option device 'wan'
option reqaddress 'try'
option reqprefix 'auto'
###################################
# WWAN (WiFi WAN – opzionale)
###################################
config interface 'wwan'
option proto 'dhcp'
and the firewall:
#######################################
# DEFAULTS
#######################################
config defaults
option syn_flood '1'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
#######################################
# LAN ZONE
#######################################
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
# RIMOSSO 'wan' QUI (ERRORE GRAVE)
#######################################
# WAN ZONE
#######################################
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list network 'wan'
list network 'wan6'
list network 'wwan'
list network 'voice' # se usi la VLAN 836 per VoIP
#######################################
# FORWARDING LAN → WAN
#######################################
config forwarding
option src 'lan'
option dest 'wan'
#######################################
# RULES STANDARD OPENWRT
#######################################
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'fe80::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-advertisement'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-IPSec-ESP'
option src 'wan'
option dest 'lan'
option proto 'esp'
option target 'ACCEPT'
config rule
option name 'Allow-ISAKMP'
option src 'wan'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
but even then i have 0 packet rx or tx from wan...