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

olsr: Terminating with "Bad Configuration" when selecting "6and4" (syntax error) for IPVersion #24747

Open
LipkeGu opened this issue Aug 6, 2024 · 0 comments

Comments

@LipkeGu
Copy link

LipkeGu commented Aug 6, 2024

Im Using the "Freifunk Falter 1.2.3" (Freifunk Berlin) (OpenWRT 21.02) firmware with package olsr so i want to report the package problem upstream!

When Selecting "6and4" for "internet protocol":

Screenshot 2024-08-06 at 22-49-27 FF-MH-BBD-305 - OLSR IPv4 - LuCI

olsrd is terminating with "Bad Configuration" in syslog... due to a syntax error in line XX...

root@FF-MH-BBD-305:~# /etc/init.d/olsrd stop
root@FF-MH-BBD-305:~# /etc/init.d/olsrd6 stop
Command failed: Not found
root@FF-MH-BBD-305:~# /usr/sbin/olsrd -f "/var/etc/olsrd.conf" -nofork

 *** olsr.org - pre-0.9.9-git_0000000-hash_91d5ae30edfe8ee23769434a3154dcd7 ***
 http://www.olsr.org

Parsing file: "/var/etc/olsrd.conf"
Debug level: 0
Noint set to 1
FIBMetric: flat
TC redundancy 2
NAT threshold 0.75
LQ Algorithm: etx_ff
Smart gateway system: enabled
Smart gateway threshold: 50
Pollrate 0.03
RtTable: 111
RtTableDefault: 112
RtTableTunnel: 113
RtTableTunnelPriority: 100000
RtTableDefaultOlsrPriority: 20000
Link quality level 2
OlsrPort: 698
Willingness: 3
Smart gateway uplink: ipv4
Smart gateway speed: 2500000 uplink/100000 downlink kbit/s
Config line 21: syntax error
Error while reading config file /var/etc/olsrd.conf!
Terminated
root@FF-MH-BBD-305:~#
root@FF-MH-BBD-305:~# cat /var/etc/olsrd.conf

DebugLevel 0
AllowNoInt yes
FIBMetric "flat"
TcRedundancy 2
NatThreshold 0.75
LinkQualityAlgorithm "etx_ff"
SmartGateway yes
SmartGatewayThreshold 50
Pollrate 0.025
RtTable 111
RtTableDefault 112
RtTableTunnel 113
RtTableTunnelPriority 100000
RtTableDefaultOlsrPriority 20000
LinkQualityLevel 2
OlsrPort 698
Willingness 3
SmartGatewayUplink "ipv4"
SmartGatewaySpeed 2500000 100000
IpVersion "6and4" <----------------------------------------------------------- error is here!

Hna4
{
                10.248.3.128 255.255.255.224
}
.....

When selecting "Ipv4":

root@FF-MH-BBD-305:~# /usr/sbin/olsrd -f "/var/etc/olsrd.conf" -nofork

 *** olsr.org - pre-0.9.9-git_0000000-hash_91d5ae30edfe8ee23769434a3154dcd7 ***
 http://www.olsr.org

Parsing file: "/var/etc/olsrd.conf"
Debug level: 0
Noint set to 1
FIBMetric: flat
TC redundancy 2
NAT threshold 0.75
LQ Algorithm: etx_ff
Smart gateway system: enabled
Smart gateway threshold: 50
Pollrate 0.03
RtTable: 111
RtTableDefault: 112
RtTableTunnel: 113
RtTableTunnelPriority: 100000
RtTableDefaultOlsrPriority: 20000
Link quality level 2
OlsrPort: 698
Willingness: 3
Smart gateway uplink: ipv4
Smart gateway speed: 2500000 uplink/100000 downlink kbit/s
HNA IPv4 entry: 10.248.3.128/255.255.255.224
Plugin: olsrd_txtinfo.so.1.1
Plugin param key:"accept" val: "0.0.0.0"
Plugin param key:"port" val: "2006"
Plugin: olsrd_arprefresh.so.0.1
Plugin: olsrd_nameservice.so.0.4
Plugin param key:"name" val: "FF-MH-BBD-305"
Plugin param key:"lat" val: "52.55770"
Plugin param key:"lon" val: "13.57454"
Plugin param key:"suffix" val: ".olsr"
Plugin param key:"hosts-file" val: "/tmp/hosts/olsr"
Plugin param key:"latlon-file" val: "/var/run/latlon.js"
Plugin param key:"services-file" val: "/var/etc/services.olsr"
Plugin: olsrd_jsoninfo.so.1.1
Plugin param key:"accept" val: "0.0.0.0"
Plugin: olsrd_dyn_gw.so.0.5
Plugin param key:"Ping" val: "46.182.19.48"
Plugin param key:"Ping" val: "80.67.169.40"
Plugin param key:"Ping" val: "194.150.168.168"
Plugin param key:"PingCmd" val: "ping -c 1 -q -I ffuplink %s"
Plugin param key:"PingInterval" val: "30"
        MID validity: 500.00
        TC interval: 2.00
        HNA validity: 125.00
        HELLO validity: 125.00
        TC validity: 500.00
        IPv4 broadcast: 255.255.255.255
        MID interval: 25.00
        HELLO interval: 3.00
        HNA interval: 10.00
        Mode: mesh

Interface Defaultssetting ifs_in_curr_cfg = 0
        Mode: mesh
setting ifs_in_curr_cfg = 0
        Mode: mesh
No policy rule for rt_table_pri
Choose priority 100010 for rt_table_default_pri
        IPv4 broadcast/multicast : 255.255.255.255
        Mode           : mesh (d)
        IPv6 multicast           : ff02::6d
        HELLO emission/validity  : 3.00 (d)/125.00 (d)
        TC emission/validity     : 2.00 (d)/500.00 (d)
        MID emission/validity    : 25.00 (d)/500.00 (d)
        HNA emission/validity    : 10.00 (d)/125.00 (d)
        Autodetect changes       : yes
        IPv4 broadcast/multicast : AUTO
        Mode           : mesh (d)
        IPv6 multicast           : ::
        HELLO emission/validity  : 0.00/0.00
        TC emission/validity     : 0.00/0.00
        MID emission/validity    : 0.00/0.00
        HNA emission/validity    : 0.00/0.00
        Autodetect changes       : no
        IPv4 broadcast/multicast : AUTO
        Mode           : mesh (d)
        IPv6 multicast           : ::
        HELLO emission/validity  : 0.00/0.00
        TC emission/validity     : 0.00/0.00
        MID emission/validity    : 0.00/0.00
        HNA emission/validity    : 0.00/0.00
        Autodetect changes       : no
OLSRD dyn_gw plugin ()
OLSRD jsoninfo plugin ()
OLSRD nameservice plugin ()
OLSRD arprefresh plugin ()
OLSRD txtinfo plugin ()
PING 46.182.19.48 (46.182.19.48): 56 data bytes

--- 46.182.19.48 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 35.720/35.720/35.720 ms

@LipkeGu LipkeGu changed the title OLSRD: "Bad Configuration" when selecting "6and4" for IPVersion OLSR: "Bad Configuration" when selecting "6and4" for IPVersion Aug 6, 2024
@LipkeGu LipkeGu changed the title OLSR: "Bad Configuration" when selecting "6and4" for IPVersion OLSR: Terminating with "Bad Configuration" when selecting "6and4" for IPVersion Aug 6, 2024
@LipkeGu LipkeGu changed the title OLSR: Terminating with "Bad Configuration" when selecting "6and4" for IPVersion OLSR: Terminating with "Bad Configuration" when selecting "6and4" (syntax error) for IPVersion Aug 6, 2024
@LipkeGu LipkeGu changed the title OLSR: Terminating with "Bad Configuration" when selecting "6and4" (syntax error) for IPVersion olsr: Terminating with "Bad Configuration" when selecting "6and4" (syntax error) for IPVersion Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant