Ip error: can't access internet

Glad the network is working in general.

Create a new thread for PBR - this way, it will reach the right audience.

1 Like

Typo here:

PBR doesn't work for LAN network - #3 by vgaetera

2 Likes

Thanks for catching thst!

1 Like

I don't find the error in my file.
It seems correct.
I have the exact text you show

The typo was in what I provided. You might have implemented it correctly, despite my mistake. :grinning:

You might edit the config above to reflect the intended correct values.

2 Likes

Done. Thanks for the reminder.

This is my file.
But I copied and paste what he wrote:

root@OpenWrt:~#  cat /etc/config/network

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 'fd4e:84b5:945d::/48'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'lan1'
	list ports 'lan2'
	list ports 'lan3'
	list ports 'lan4'

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'

config interface 'wan'
	option device 'wan'
	option proto 'dhcp'
	option metric '0'

config interface 'wan6'
	option device 'wan'
	option proto 'dhcpv6'

config interface 'wg0'
	option proto 'wireguard'
	option private_key '******************************'
	list addresses '10.14.0.2/16'
	list dns '162.252.172.57'
	list dns '149.154.159.92'
	option metric '10'

config wireguard_wg0
	option description 'it-mil-2.conf'
	option public_key '***************************'
	list allowed_ips '0.0.0.0/0'
	option endpoint_host '**********************'
	option endpoint_port '51820'
	option route_allowed_ips '1'

config device
	option name 'br-guest'
	option type 'bridge'

config interface 'guest'
	option device 'br-lan'
	option proto 'static'
	option ipaddr '192.168.5.1'
	option netmask '255.255.255.0'

This is wrong (and was my typo originally, now fixed above). Make the device br-guest

1 Like

Thank you very much.
Now I understand the error.

My configuration now works perfectly.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.