configure-layer3 -t reverted nicht wenn SSH Session abbricht #256

Closed
opened 2022-07-11 19:42:43 +02:00 by ChristianD · 1 comment
Member

Testgerät: mi4a
Gesamte config:

config gateway 'meta'
        option config_version '2'
	option router_ip '10.50.186.39'

config vlan '2'
	option comment 'wan'
	option ports 'wan:*'

config wan
	option vlan '2'

config vlan '10'
        option comment 'client'
        option ports 'lan1:t lan2:*'

config vlan '200'
        option comment 'aek'
        option ports 'lan1:t'

config babelpeer 'aek'
	option vlan '200'
	option type 'wired'
	option rxcost '384'

config client
        option vlan '10'
        list ip6addr 'fd43:5602:29bd:ff::1/64'
        list ip6addr '2a0b:f4c0:xx:xx::1/64'
        list ipaddr '192.168.208.1/20'
        option dhcp_start '192.168.209.1'
        option dhcp_limit '1000'
#        option essid 'fim.freifunk'
#        option chan2ghz '1'
#        option chan5ghz '36'
	option snat '1'

config dns
	list server 'fd43:5602:29bd:ffff:1:1:1:1'
	list server 'fd43:5602:29bd:ffff:a:a:a:a'

config wireguardpeer 'x'
	option endpoint_host 'xx.x.x'
	option endpoint_port 'x'
	option persistent_keepalive '25'
	option remote_public_key 'xx'
	## Angeben eines private_key ist optional. Wird automatisch generiert, wenn nicht vorhanden.
	option local_private_key 'xx'
	option rxcost '16384'
	option mtu '1412'

Änderung in der config:
alt:

        list ipaddr '192.168.208.1/20'
        option dhcp_start '192.168.209.1'

neu:

        list ipaddr '192.168.0.1/20'
        option dhcp_start '192.168.0.1'

danach: configure-layer 3 -c danach -t dabei ist die SSH Session abgebrochen (Verbunden per Link Local auf lan2).

Danach neu verbunden und:

root@FiUEM:~# ps | grep conf
  419 root         0 IW<  [ipv6_addrconf]
 2439 root      2028 S    /usr/sbin/uhttpd -f -h /www/ssl -r FiUEM -c /etc/httpd.conf -x /cgi-bin -t 60 -T 30 -A 1 -n 3 -R -C /etc/uhttpd.crt -K /etc/uhttpd.key -s 443
 2719 root       980 S    /usr/bin/wg setconf xxx /tmp/wireguard/xxx
 4695 root      1256 S    /bin/sh /usr/sbin/configure-layer3 -t
 4829 root      1272 S    /usr/sbin/babeld -I  -c /etc/babeld.conf -c /var/etc/babeld.conf
 5850 dnsmasq   2132 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid
 5944 root      1244 S    grep conf
root@FiUEM:~# ifconfig br-client
br-client Link encap:Ethernet  HWaddr 5C:02:14:05:88:87  
          inet addr:192.168.0.1  Bcast:192.168.15.255  Mask:255.255.240.0
          inet6 addr: fd43:5602:29bd:ff::1/64 Scope:Global
          inet6 addr: fdff::5e02:14ff:fe05:8887/64 Scope:Global
          inet6 addr: fdff::1/64 Scope:Global
          inet6 addr: 2a0b:f4c0:7f:2304::1/64 Scope:Global
          inet6 addr: fe80::5e02:14ff:fe05:8887/64 Scope:Link
          inet6 addr: fdff::5c02:1405:8887/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:127 errors:0 dropped:0 overruns:0 frame:0
          TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:13889 (13.5 KiB)  TX bytes:13054 (12.7 KiB)

nach paar Minuten erneut kontrolliert:

root@FiUEM:~# ps | grep conf
  419 root         0 IW<  [ipv6_addrconf]
 2439 root      2028 S    /usr/sbin/uhttpd -f -h /www/ssl -r FiUEM -c /etc/httpd.conf -x /cgi-bin -t 60 -T 30 -A 1 -n 3 -R -C /etc/uhttpd.crt -K /etc/uhttpd.key -s 443
 4829 root      1272 S    /usr/sbin/babeld -I  -c /etc/babeld.conf -c /var/etc/babeld.conf
 5850 dnsmasq   2132 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid
 6005 root       980 S    /usr/bin/wg setconf xx /tmp/wireguard/xx
 6230 root      1244 S    grep conf
root@FiUEM:~# ifconfig br-client
br-client Link encap:Ethernet  HWaddr 5C:02:14:05:88:87  
          inet addr:192.168.0.1  Bcast:192.168.15.255  Mask:255.255.240.0
          inet6 addr: fd43:5602:29bd:ff::1/64 Scope:Global
          inet6 addr: fdff::5e02:14ff:fe05:8887/64 Scope:Global
          inet6 addr: fdff::1/64 Scope:Global
          inet6 addr: 2a0b:f4c0:xx:xx::1/64 Scope:Global
          inet6 addr: fe80::5e02:14ff:fe05:8887/64 Scope:Link
          inet6 addr: fdff::5c02:1405:8887/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:380 errors:0 dropped:0 overruns:0 frame:0
          TX packets:273 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:39789 (38.8 KiB)  TX bytes:44132 (43.0 KiB)

root@FiUEM:~# uci changes
root@FiUEM:~# 


ein Neustart reverted dann sauber und die IP ist wieder 192.168.208.1. Dieser Problem lies sich in 2 von 2 Versuchen wiederholen. Eine Änderung die eine SSH Session nicht abbrechen lässt, wird sauber reverted. Ich habe nicht getestet was passiert wenn man die SSH Session per Hand zu macht, bei meinen Versuchen ist die Session von selbst abgebrochen.

Testgerät: mi4a Gesamte config: ``` config gateway 'meta' option config_version '2' option router_ip '10.50.186.39' config vlan '2' option comment 'wan' option ports 'wan:*' config wan option vlan '2' config vlan '10' option comment 'client' option ports 'lan1:t lan2:*' config vlan '200' option comment 'aek' option ports 'lan1:t' config babelpeer 'aek' option vlan '200' option type 'wired' option rxcost '384' config client option vlan '10' list ip6addr 'fd43:5602:29bd:ff::1/64' list ip6addr '2a0b:f4c0:xx:xx::1/64' list ipaddr '192.168.208.1/20' option dhcp_start '192.168.209.1' option dhcp_limit '1000' # option essid 'fim.freifunk' # option chan2ghz '1' # option chan5ghz '36' option snat '1' config dns list server 'fd43:5602:29bd:ffff:1:1:1:1' list server 'fd43:5602:29bd:ffff:a:a:a:a' config wireguardpeer 'x' option endpoint_host 'xx.x.x' option endpoint_port 'x' option persistent_keepalive '25' option remote_public_key 'xx' ## Angeben eines private_key ist optional. Wird automatisch generiert, wenn nicht vorhanden. option local_private_key 'xx' option rxcost '16384' option mtu '1412' ``` Änderung in der config: alt: ``` list ipaddr '192.168.208.1/20' option dhcp_start '192.168.209.1' ``` neu: ``` list ipaddr '192.168.0.1/20' option dhcp_start '192.168.0.1' ``` danach: configure-layer 3 -c danach -t dabei ist die SSH Session abgebrochen (Verbunden per Link Local auf lan2). Danach neu verbunden und: ``` root@FiUEM:~# ps | grep conf 419 root 0 IW< [ipv6_addrconf] 2439 root 2028 S /usr/sbin/uhttpd -f -h /www/ssl -r FiUEM -c /etc/httpd.conf -x /cgi-bin -t 60 -T 30 -A 1 -n 3 -R -C /etc/uhttpd.crt -K /etc/uhttpd.key -s 443 2719 root 980 S /usr/bin/wg setconf xxx /tmp/wireguard/xxx 4695 root 1256 S /bin/sh /usr/sbin/configure-layer3 -t 4829 root 1272 S /usr/sbin/babeld -I -c /etc/babeld.conf -c /var/etc/babeld.conf 5850 dnsmasq 2132 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid 5944 root 1244 S grep conf root@FiUEM:~# ifconfig br-client br-client Link encap:Ethernet HWaddr 5C:02:14:05:88:87 inet addr:192.168.0.1 Bcast:192.168.15.255 Mask:255.255.240.0 inet6 addr: fd43:5602:29bd:ff::1/64 Scope:Global inet6 addr: fdff::5e02:14ff:fe05:8887/64 Scope:Global inet6 addr: fdff::1/64 Scope:Global inet6 addr: 2a0b:f4c0:7f:2304::1/64 Scope:Global inet6 addr: fe80::5e02:14ff:fe05:8887/64 Scope:Link inet6 addr: fdff::5c02:1405:8887/64 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:127 errors:0 dropped:0 overruns:0 frame:0 TX packets:88 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13889 (13.5 KiB) TX bytes:13054 (12.7 KiB) ``` nach paar Minuten erneut kontrolliert: ``` root@FiUEM:~# ps | grep conf 419 root 0 IW< [ipv6_addrconf] 2439 root 2028 S /usr/sbin/uhttpd -f -h /www/ssl -r FiUEM -c /etc/httpd.conf -x /cgi-bin -t 60 -T 30 -A 1 -n 3 -R -C /etc/uhttpd.crt -K /etc/uhttpd.key -s 443 4829 root 1272 S /usr/sbin/babeld -I -c /etc/babeld.conf -c /var/etc/babeld.conf 5850 dnsmasq 2132 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid 6005 root 980 S /usr/bin/wg setconf xx /tmp/wireguard/xx 6230 root 1244 S grep conf root@FiUEM:~# ifconfig br-client br-client Link encap:Ethernet HWaddr 5C:02:14:05:88:87 inet addr:192.168.0.1 Bcast:192.168.15.255 Mask:255.255.240.0 inet6 addr: fd43:5602:29bd:ff::1/64 Scope:Global inet6 addr: fdff::5e02:14ff:fe05:8887/64 Scope:Global inet6 addr: fdff::1/64 Scope:Global inet6 addr: 2a0b:f4c0:xx:xx::1/64 Scope:Global inet6 addr: fe80::5e02:14ff:fe05:8887/64 Scope:Link inet6 addr: fdff::5c02:1405:8887/64 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:380 errors:0 dropped:0 overruns:0 frame:0 TX packets:273 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:39789 (38.8 KiB) TX bytes:44132 (43.0 KiB) root@FiUEM:~# uci changes root@FiUEM:~# ``` ein Neustart reverted dann sauber und die IP ist wieder 192.168.208.1. Dieser Problem lies sich in 2 von 2 Versuchen wiederholen. Eine Änderung die eine SSH Session nicht abbrechen lässt, wird sauber reverted. Ich habe nicht getestet was passiert wenn man die SSH Session per Hand zu macht, bei meinen Versuchen ist die Session von selbst abgebrochen.
fbl added the
bug
layer3
labels 2022-07-11 20:15:19 +02:00
fbl added this to the next-bugfix milestone 2022-07-11 20:15:22 +02:00
Owner
Da liegt das Problem: https://git.freifunk-franken.de/freifunk-franken/firmware/src/commit/20d12f943ef9a04304fcb7bfdb78aea05c2f372a/src/packages/fff/fff-layer3-config/files/usr/sbin/configure-layer3#L57
fbl self-assigned this 2022-07-11 22:32:26 +02:00
fbl modified the milestone from next-bugfix to 20220814 2022-07-21 19:57:50 +02:00
fbl closed this issue 2022-07-22 14:33:35 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: freifunk-franken/firmware#256
No description provided.