Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gluon-core: delete all network device sections #2263

Merged

Conversation

blocktrron
Copy link
Member

Delete all default network device sections upon first boot.

Only LAN & WAN networks are defined at this point. We are using the
legacy way of definiting bridges via the interface sections ifname
option.

The prior filtering was based upon a single device and didn't take into
consideration that DSA interface names can be named arbitrarily.

Signed-off-by: David Bauer [email protected]

Delete all default network device sections upon first boot.

Only LAN & WAN networks are defined at this point. We are using the
legacy way of definiting bridges via the interface sections ifname
option.

The prior filtering was based upon a single device and didn't take into
consideration that DSA interface names can be named arbitrarily.

Signed-off-by: David Bauer <[email protected]>
@github-actions github-actions bot added the 3. topic: package Topic: Gluon Packages label Jul 5, 2021
@blocktrron
Copy link
Member Author

@darkdragon-001

13:15 <darkdragon-001> blocktrron: I removed those two lines in cat /lib/gluon/upgrade/020-interfaces and ran "gluon-reconfigure; reboot". Afterwards, it didn't work again and I had to run "uci set network.wan.ifname='br-wan'; uci commit; reboot" again. I didn't try a complete new setup yet (still building on gh-actions).
13:22 <darkdragon-001> network config: https://paste.debian.net/hidden/e76c1f0d/

19:11 <blocktrron> hmm, he's gone.
19:11 <blocktrron> He would've needed to do this on a firstboot

glupn-reconfigure won't work, as this specific script is only run when the node is first installed. Can you report back if a compiled image with this change fixes your issue?

@blocktrron blocktrron merged commit 5ec8676 into freifunk-gluon:master Jul 13, 2021
@blocktrron blocktrron deleted the pr-delete-default-bridges branch July 13, 2021 23:49
@darkdragon-001
Copy link
Contributor

darkdragon-001 commented Oct 30, 2022

This change doesn't fix my issue.

Here is the network config based on v2022.1.1:

network config
network.globals=globals
network.globals.ula_prefix='auto'
network.loopback=interface
network.loopback.netmask='255.0.0.0'
network.loopback.ifname='lo'
network.loopback.ipaddr='127.0.0.1'
network.loopback.proto='static'
network.wan=interface
network.wan.igmp_snooping='1'
network.wan.proto='dhcp'
network.wan.auto='1'
network.wan.peerdns='0'
network.wan.multicast_querier='0'
network.wan.type='bridge'
network.wan.ifname='internet'
network.wan6=interface
network.wan6.proto='dhcpv6'
network.wan6.ip6table='1'
network.wan6.sourcefilter='0'
network.wan6.peerdns='0'
network.wan6.reqprefix='no'
network.wan6.ifname='br-wan'
network.wan6_lookup=rule6
network.wan6_lookup.mark='0x01/0x01'
network.wan6_lookup.lookup='1'
network.wan6_unreachable=route6
network.wan6_unreachable.type='unreachable'
network.wan6_unreachable.table='1'
network.wan6_unreachable.target='::/0'
network.wan6_unreachable.metric='65535'
network.wan6_unreachable.gateway='::'
network.wan6_unreachable.interface='loopback'
network.mesh_radio0=interface
network.mesh_radio0.proto='gluon_mesh'
network.mesh_radio1=interface
network.mesh_radio1.proto='gluon_mesh'
network.client=interface
network.client.igmp_snooping='1'
network.client.type='bridge'
network.client.auto='1'
network.client.ra_holdoff='30'
network.client.multicast_querier='1'
network.client.macaddr='58:6d:8f:f5:af:70'
network.client.ifname='ethernet1' 'ethernet2' 'ethernet3' 'ethernet4' 'local-port' 'bat0'
network.client.ipv6='1'
network.client.keep_ra_dnslifetime='1'
network.client.sourcefilter='0'
network.client.peerdns='0'
network.client.robustness='9'
network.client.reqprefix='no'
network.client.query_interval='2000'
network.client.query_response_interval='500'
network.client.proto='dhcpv6'
network.local_node_dev=device
network.local_node_dev.type='veth'
network.local_node_dev.name='local-node'
network.local_node_dev.peer_name='local-port'
network.local_node_dev.macaddr='16:41:95:40:f7:dc'
network.local_node_dev.peer_macaddr='58:6d:8f:f5:af:70'
network.local_node=interface
network.local_node.ifname='local-node'
network.local_node.ipaddr='10.80.152.1/21'
network.local_node.ip6addr='fd62:f45c:4d09:103::1/128'
network.local_node.ip6deprecated='1'
network.local_node.proto='static'
network.gluon_bat0=interface
network.gluon_bat0.gw_mode='client'
network.gluon_bat0.proto='gluon_bat0'
network.bat0=interface
network.bat0.multicast_router='2'
network.bat0.ifname='bat0'
network.bat0.auto='1'
network.bat0.macaddr='58:6d:8f:f5:af:70'
network.bat0.learning='1'
network.bat0.proto='none'
network.local_node_route6=route6
network.local_node_route6.target='fd62:f45c:4d09:103::/64'
network.local_node_route6.gateway='::'
network.local_node_route6.interface='client'
network.mesh_vpn=interface
network.mesh_vpn.ifname='mesh-vpn'
network.mesh_vpn.transitive='1'
network.mesh_vpn.mtu='1406'
network.mesh_vpn.macaddr='a2:31:c9:61:d2:47'
network.mesh_vpn.fixed_mtu='1'
network.mesh_vpn.proto='gluon_mesh'
network.fallback=interface
network.fallback.sourcefilter='0'
network.fallback.proto='dhcp'
network.fallback.peerdns='1'
network.fallback6=interface
network.fallback6.sourcefilter='0'
network.fallback6.ifname='@fallback'
network.fallback6.peerdns='1'
network.fallback6.proto='dhcpv6'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. topic: package Topic: Gluon Packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants