Page MenuHomeVyOS Platform
Feed All Stories

Apr 24 2020

thomas-mangin added a comment to T2377: logging across boot.

@jjakob https://github.com/vyos/vyos-1x/pull/376

Apr 24 2020, 1:46 PM · VyOS 1.3 Equuleus (1.3.6)
jack9603301 added a comment to T2335: Unable to assign IPv6 from ISP.

I have extracted this question to T2380 alone!

Apr 24 2020, 12:29 PM · VyOS 1.3 Equuleus (1.3.0)
jack9603301 triaged T2380: After PPPoE 0 is restarted, the default static route is lost as High priority.
Apr 24 2020, 12:25 PM · VyOS 1.3 Equuleus (1.3.0)
jack9603301 created T2380: After PPPoE 0 is restarted, the default static route is lost.
Apr 24 2020, 12:24 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1938: syslog doesn't start automatically.

Do they appear in the journal? sudo journalctl -f
I think logs go to systemd-journald first, then are forwarded to rsyslog,
which logs them to files. I've said some time ago, ever since 1.2 moved
to Buster and journald came in, that we should move more to native
journald logging away from rsyslog. I enable persistent journal storage
in /etc/systemd/journald.conf after every upgrade just because of this,
the rsyslog config is buggy/broken, it doesn't log half of what it
should, it stays in journald, so I just use journalctl to look at all
logs. I don't know if journald supports logging to separate files like
rsyslog though, by default it uses its own binary format, I think that
can be changed and maybe rsyslog file behavior moved to journald.

Apr 24 2020, 12:20 PM · VyOS 1.3 Equuleus (1.3.0), VyOS 1.2 Crux (VyOS 1.2.6)
jack9603301 closed T2348: On IPv6 address distribution and DHCPv6 bugs, a subtask of T2362: IPv6 link-local addresses missing due to EUI64 address code, causing router-advert not to work, as Resolved.
Apr 24 2020, 11:59 AM · VyOS 1.3 Equuleus (1.3.0)
jack9603301 closed T2348: On IPv6 address distribution and DHCPv6 bugs as Resolved.
Apr 24 2020, 11:59 AM · VyOS 1.3 Equuleus (1.3.0)
jack9603301 added a comment to T2348: On IPv6 address distribution and DHCPv6 bugs.

At present, relevant functions are normal after virtual machine test! New bug found, see T2379 for details

Apr 24 2020, 11:58 AM · VyOS 1.3 Equuleus (1.3.0)
jack9603301 created T2379: DHCPv6 address for interface deletion triggers a script error.
Apr 24 2020, 11:56 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2241: Changing settings on an interface causes it to fall out of bridge.

If this happens to you, you don't need to delete and re-add the members in the config, you can run sudo ip link set dev ethX master brX to add the eth interfaces back to the bridge.

Apr 24 2020, 10:36 AM · VyOS 1.3 Equuleus (1.3.0)
Merijn added a comment to T2378: BGPD crash in Vyos 1.2.5.

We ave no RPKI filtering active yet, so https://github.com/FRRouting/frr/issues/5458 seems not related.

Apr 24 2020, 10:32 AM · VyOS 1.2 Crux
Merijn created T2378: BGPD crash in Vyos 1.2.5.
Apr 24 2020, 10:29 AM · VyOS 1.2 Crux
sajiby3k added a comment to T1938: syslog doesn't start automatically.

Thanks for confirming this.

Apr 24 2020, 10:15 AM · VyOS 1.3 Equuleus (1.3.0), VyOS 1.2 Crux (VyOS 1.2.6)
thomas-mangin created T2377: logging across boot.
Apr 24 2020, 9:43 AM · VyOS 1.3 Equuleus (1.3.6)
jjakob added a comment to T2226: unify all the ways commands are run.

660 is not enough as the created file is already 660 root:root, which
means just root has the rights to write to it. The failing script isn't
run as root while in a config session (validate-value.py). I'm not
exactly sure which user (vyos or vyattacfg), but as this is a debug log,
it's not security critical and can be set to 666. Otherwise it'd need to
be owned by a group into which all the writing users must be put into,
and can stay 660.

Apr 24 2020, 9:36 AM
hexes created T2376: /config/user-data and "preserved during image upgrade!".
Apr 24 2020, 8:24 AM · VyOS 1.2 Crux
c-po changed the status of T2375: WireGuard: throw exception if address and port are not given as both are mandatory from Open to In progress.
Apr 24 2020, 8:07 AM · VyOS 1.3 Equuleus (1.3.0)
c-po created T2375: WireGuard: throw exception if address and port are not given as both are mandatory.
Apr 24 2020, 8:07 AM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2226: unify all the ways commands are run.

The file should have been 660 and it should have worked .. I will check

Apr 24 2020, 7:00 AM
jjakob renamed T2241: Changing settings on an interface causes it to fall out of bridge from Interface falls out of bridge when adding a vif to it to Changing settings on an interface causes it to fall out of bridge.
Apr 24 2020, 1:50 AM · VyOS 1.3 Equuleus (1.3.0)

Apr 23 2020

elbandi added a comment to T2133: ipv6 disable not working.

sorry, i'm not a hacker, so i dont know any attach vector. :( But it does not mean that it does not exist.

Apr 23 2020, 10:20 PM
jjakob added a comment to T2226: unify all the ways commands are run.

All that's needed is to chmod 666 the file after creation - I did that
after I found the error and all scripts could write to it fine.

Apr 23 2020, 8:45 PM
thomas-mangin added a comment to T2226: unify all the ways commands are run.

Yes, I also have a patch ... somewhere .. which prevent to change any of the /config files on the system (so that a user can not make damage to the system).
I also need to add a check to only use the file if the user and permission are what is expected. I will do it :-)
The file should be created as group vyattacfg tho with rights allowing both the user and root to write to it.

Apr 23 2020, 8:32 PM
thomas-mangin added a comment to T2366: change the default for Interface creation to False.

@jjakob There is no need to check if an interface exists before creation, the code has always tried to find the interface and use it if there, otherwise it will create it.

Apr 23 2020, 8:25 PM · VyOS 1.5 Circinus
jjakob changed the status of T2348: On IPv6 address distribution and DHCPv6 bugs, a subtask of T2362: IPv6 link-local addresses missing due to EUI64 address code, causing router-advert not to work, from In progress to Needs testing.
Apr 23 2020, 8:14 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob changed the status of T2348: On IPv6 address distribution and DHCPv6 bugs from In progress to Needs testing.

Please test with a image built after April 23 20:44 (no image is built yet, the next one should have the fix for T2362 included)

Apr 23 2020, 8:14 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob closed T2345: IPv6 router-advert not working, a subtask of T2362: IPv6 link-local addresses missing due to EUI64 address code, causing router-advert not to work, as Resolved.
Apr 23 2020, 8:11 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob closed T2345: IPv6 router-advert not working as Resolved.

Fixed by T2362

Apr 23 2020, 8:11 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob closed T2362: IPv6 link-local addresses missing due to EUI64 address code, causing router-advert not to work as Resolved.
Apr 23 2020, 8:10 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2366: change the default for Interface creation to False.

@jjakob yes, what you propose to check if an interface exists is good. If you know the type (as defined in the class which as the same name as the "set interface" section such as ethernet) you can use Section.interfaces('ethernet') to only get what you want.

Apr 23 2020, 8:08 PM · VyOS 1.5 Circinus
GitHub <noreply@github.com> committed rVYOSONEX4ff1bc23d40c: Merge pull request #374 from DmitriyEshenko/pppoe-impl-auth-proto (authored by c-po).
Apr 23 2020, 7:56 PM
GitHub <noreply@github.com> committed rVYOSONEXbbac02cf9a93: Merge pull request #375 from thomas-mangin/T2374 (authored by c-po).
Apr 23 2020, 7:55 PM
thomas-mangin closed T2374: Tunnel interface can not be disabled as Resolved.

https://github.com/vyos/vyos-1x/pull/375

Apr 23 2020, 7:41 PM · VyOS 1.3 Equuleus (1.3.0)
Unknown Object (User) changed the status of T2373: Required auth options for pppoe-server from In progress to Needs testing.

PR https://github.com/vyos/vyos-1x/pull/374
Possible commands:

vyos@R1-VM# set service pppoe-server authentication protocols 
Possible completions:
   pap          Allow PAP authentication [Password Authentication Protocol]
   chap         Allow CHAP authentication [Challenge Handshake Authentication Protocol]
   mschap       Allow MS-CHAP authentication [Microsoft Challenge Handshake Authentication Protocol, Version 1]
   mschap-v2    Allow MS-CHAPv2 authentication [Microsoft Challenge Handshake Authentication Protocol, Version 2]
Apr 23 2020, 7:30 PM · VyOS 1.3 Equuleus (1.3.0)
c-po assigned T2374: Tunnel interface can not be disabled to thomas-mangin.
Apr 23 2020, 7:04 PM · VyOS 1.3 Equuleus (1.3.0)
c-po created T2374: Tunnel interface can not be disabled.
Apr 23 2020, 7:04 PM · VyOS 1.3 Equuleus (1.3.0)
GitHub <noreply@github.com> committed rVYOSONEXa18d92b2205b: Merge pull request #371 from jjakob/ipv6-link-local-fix (authored by c-po).
Apr 23 2020, 6:45 PM
GitHub <noreply@github.com> committed rVYOSONEXaf9f033fd19c: Merge pull request #373 from thomas-mangin/T2223-pppoe (authored by c-po).
Apr 23 2020, 6:27 PM
GitHub <noreply@github.com> committed rVYOSONEXe611c5a9d131: Merge pull request #367 from thomas-mangin/T2352 (authored by c-po).
Apr 23 2020, 6:27 PM
Unknown Object (User) changed the status of T2373: Required auth options for pppoe-server from Open to In progress.
Apr 23 2020, 6:03 PM · VyOS 1.3 Equuleus (1.3.0)
Unknown Object (User) created T2373: Required auth options for pppoe-server.
Apr 23 2020, 5:47 PM · VyOS 1.3 Equuleus (1.3.0)
c-po created T2372: VLAN: error on commit if main interface is disabled.
Apr 23 2020, 5:05 PM · VyOS 1.3 Equuleus (1.3.0)
hammerstud added a comment to T787: DMVPN on 1.2.0.

I'm still seeing this in VyOS 1.3-rolling-202004170117

Apr 23 2020, 4:25 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
jjakob added a comment to T2366: change the default for Interface creation to False.
In T2366#61424, @runar wrote:

"This is fine if used in conf_mode scripts that'll create it after that anyway" if the intention of the code was not to create the interdace this is not fine if you ask me. :)

Apr 23 2020, 4:14 PM · VyOS 1.5 Circinus
rherold created T2371: custom dyndns configuration lost after upgrade from 1.2.4-epa1 to 1.2.5.
Apr 23 2020, 3:56 PM · VyOS 1.2 Crux
runar added a comment to T2366: change the default for Interface creation to False.

"This is fine if used in conf_mode scripts that'll create it after that anyway" if the intention of the code was not to create the interdace this is not fine if you ask me. :)

Apr 23 2020, 3:39 PM · VyOS 1.5 Circinus
Viacheslav created T2370: Ability to see bridge-related interfaces.
Apr 23 2020, 3:02 PM · VyOS 1.3 Equuleus (1.3.0)
runar added a comment to T1557: Create generic abstraction for configuring interfaces e.g. IP address.

thats correct @jjakob , when a mac is changed on a interface the ONLY place to find the original mac address for a interface is using the hw-id, this is because the kernel does not hold track of the original mac anywhere. for now on saving the config it reverts back to the original hw-id mac when the mac node is deleted witch should be quite fine to do. When the old boot interface mapping code is rewritten these pointers also need to match the new scripts. but thats another storry :)

Apr 23 2020, 2:35 PM · VyOS 1.3 Equuleus (1.3.0)
dmbaturin committed rVYOSONEX1ca8fc0b3f75: T2129: allow top level tag nodes in op mode definitions..
Apr 23 2020, 1:36 PM
dmbaturin committed rVYOSONEX23df7869d29e: Sync the RNC and RNG op mode definition schemas..
Apr 23 2020, 1:36 PM
jjakob added a comment to T2366: change the default for Interface creation to False.

is if iface in Section.interfaces() the correct way to check if the interface already exists?

Apr 23 2020, 1:25 PM · VyOS 1.5 Circinus
jjakob added a comment to T2366: change the default for Interface creation to False.

Actually, if an interface doesn't exist and if we try to get its properties (for example if mac != BridgeIf('br0', create=False).get_mac():) that raises an exception. I'm not sure what the best way to do here is. Use create=True anyway? This is fine if used in conf_mode scripts that'll create it after that anyway, but what if we're checking another interface that we don't know if it exists or not? First do an existence check? How do we do that?

Apr 23 2020, 1:09 PM · VyOS 1.5 Circinus
jjakob added a comment to T2226: unify all the ways commands are run.

Bug: if I create '/config/vyos.log.debug' with contents '/config/vyos.debug.log', /config/vyos.debug.log is created as root:root rw-rw-r--, and later scripts that use call() but aren't root, don't have the permission to write to it, and fail. For example any validator like mac-address fails as if the value is invalid, but if we turn on its debug flag, we see the real error is [Errno 13]: Permission denied: '/config/vyos.debug.log' because 'src/helpers/validate-value.py' uses call(), but it isn't ran with root privileges. The debug log should be probably created with 666 permissions or its group changed so that all scripts, even non-root, can write to it.

Apr 23 2020, 12:55 PM
jjakob added a comment to T1557: Create generic abstraction for configuring interfaces e.g. IP address.

Oh, I see what that's supposed to do - if there was a 'mac' set to change the interface's mac address, it sets that back to the real factory mac. In that case, that's fine (it's done every time if no 'mac' node is there, which is rather pointless, but shouldn't harm anything), the bug with interface renaming is a separate bug that's not applicable here.

Apr 23 2020, 12:14 PM · VyOS 1.3 Equuleus (1.3.0)
c-po closed T2369: VRF: can not leak interface route from default VRf to any other VRF as Resolved.
Apr 23 2020, 12:10 PM · VyOS 1.3 Equuleus (1.3.0)
c-po closed T2368: VRF: missing completion helper when leaking to default table as Resolved.
Apr 23 2020, 12:10 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1557: Create generic abstraction for configuring interfaces e.g. IP address.

@c-po looking at your commit d80398b6, I don't think that's how the hw-id node was supposed to be used. It was never used as a way to change the interface's mac address, rather it was used to rename the interface with the matching mac address to the name it has in config.boot. This is done by some vyatta scripts at boot time. If we later set the same mac on the interface that it should already have (as it was renamed by the vyatta scripts), that's pretty pointless to do IMO.

Apr 23 2020, 12:08 PM · VyOS 1.3 Equuleus (1.3.0)
elbandi added a comment to T2339: OpenVPN: IPv4 no longer working after adding IPv6 support.

@jjakob detect_if_systemipv6_is_disabled just an idea, but looking to interfaces-openvpn.py, it's easy:

Apr 23 2020, 12:00 PM · VyOS 1.3 Equuleus (1.3.0)
c-po renamed T2368: VRF: missing completion helper when leaking to default table from VRf: missing completion helper when leaking to default table to VRF: missing completion helper when leaking to default table.
Apr 23 2020, 11:23 AM · VyOS 1.3 Equuleus (1.3.0)
c-po changed the status of T2369: VRF: can not leak interface route from default VRf to any other VRF from Open to In progress.
Apr 23 2020, 11:23 AM · VyOS 1.3 Equuleus (1.3.0)
c-po created T2369: VRF: can not leak interface route from default VRf to any other VRF.
Apr 23 2020, 11:21 AM · VyOS 1.3 Equuleus (1.3.0)
c-po claimed T2368: VRF: missing completion helper when leaking to default table.
Apr 23 2020, 11:12 AM · VyOS 1.3 Equuleus (1.3.0)
c-po created T2368: VRF: missing completion helper when leaking to default table.
Apr 23 2020, 11:12 AM · VyOS 1.3 Equuleus (1.3.0)
Unknown Object (User) changed the status of T2091: swanctl.conf file is not generated properly if more than one IPsec profile is used from Open to Needs testing.

PR https://github.com/vyos/vyatta-cfg-vpn/pull/30

Apr 23 2020, 7:53 AM · VyOS 1.3 Equuleus (1.3.0), VyOS 1.2 Crux (VyOS 1.2.6)
c-po updated subscribers of T2339: OpenVPN: IPv4 no longer working after adding IPv6 support.

Disabling IPv6 on the system is something not mainlined in VyOS - there are open PRs on GitHub which needs to be approved by @dmbaturin. As Disabling IPv6 would also require the CLI to disable all IPv6 inputs dynamically which is something not possible at the moment.

Apr 23 2020, 6:04 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2339: OpenVPN: IPv4 no longer working after adding IPv6 support.

Looks good. Is detect_if_systemipv6_is_disabled() already a
system function? If so, It can be incorporated (by you if you wish, or by
me). The last line is missing += by the way.

Apr 23 2020, 2:36 AM · VyOS 1.3 Equuleus (1.3.0)
elbandi added a comment to T2339: OpenVPN: IPv4 no longer working after adding IPv6 support.

This code doesnt break if ipv6 is disabled by system wide:

Apr 23 2020, 12:09 AM · VyOS 1.3 Equuleus (1.3.0)

Apr 22 2020

jjakob triaged T2367: Flush addresses from bridge members as Wishlist priority.
Apr 22 2020, 7:07 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin updated the task description for T2366: change the default for Interface creation to False.
Apr 22 2020, 5:07 PM · VyOS 1.5 Circinus
thomas-mangin created T2366: change the default for Interface creation to False.
Apr 22 2020, 5:06 PM · VyOS 1.5 Circinus
c-po closed T2351: Cleanup PPTP server implementation and CLI commands as Resolved.
Apr 22 2020, 5:03 PM · VyOS 1.3 Equuleus (1.3.0)
c-po committed rVYOSONEX2703915afb9a: Merge branch 'pptp-rewrite' of github.com:c-po/vyos-1x into current.
Apr 22 2020, 5:02 PM
c-po committed rVYOSONEX6f090e918bae: accel-ppp: fix wrong reference in verify() on missing attributes.
Apr 22 2020, 5:02 PM
c-po committed rVYOSONEXafaa399fe50b: vpn: pptp: T2351: add support for common radius-additions XML.
Apr 22 2020, 5:02 PM
c-po committed rVYOSONEXfea838d39dfd: accel-ppp: T2314: bugfix wrong placement of endif in Jinja2 template.
Apr 22 2020, 5:02 PM
c-po committed rVYOSONEXf9fbda14a255: vpn: pptp: T2351: migrate to common name-server, wins-server nodes.
Apr 22 2020, 5:02 PM
c-po committed rVYOSONEXd55ab3a9fa06: vpn: pptp: T2351: migrate to common radius CLI.
Apr 22 2020, 5:02 PM
c-po committed rVYOSONEXcc87303aad1f: accel-ppp: provide common wins-server include definition.
Apr 22 2020, 5:02 PM
c-po committed rVYOSONEXfbdafa2987ed: vpn: pptp: T2351: use first IP from client pool as gateway address.
Apr 22 2020, 5:02 PM
c-po committed rVYOSONEX05f839574b10: vpn: pptp: T2351: align configuration to other accel implementations.
Apr 22 2020, 5:02 PM
c-po committed rVYOSONEXc29e9344757e: vpn: pptp: T2351: migrate from SysVinit to systemd.
Apr 22 2020, 5:02 PM
c-po committed rVYOSONEX8998b56a92de: vyos.util: migrate all cpu_count() occurances to common get_half_cpus().
Apr 22 2020, 5:02 PM
trae32566 added a comment to T2341: Pseudo-ethernet Interfaces Not Loaded on Boot.

Yup that did it. Thanks!

Apr 22 2020, 4:58 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin closed T2365: remove duplication as Resolved.
Apr 22 2020, 4:50 PM
jestabro closed T2096: Provide "generate" and "show" commands via the http API as Resolved.
Apr 22 2020, 4:03 PM · VyOS 1.3 Equuleus (1.3.0)
jestabro committed rVYOSONEXd2477601a6c4: http api: T2096: form of show/generate should be consistent with other cmds.
Apr 22 2020, 4:02 PM
jestabro added a comment to T2096: Provide "generate" and "show" commands via the http API.

The form will be made consistent with other commands, using an explicit 'op' (show|generate) and 'path' as list of strings. For example:

Apr 22 2020, 4:00 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2365: remove duplication.

First, I thought you had merged the patch, as you did not, there is no duplication ATM.

Apr 22 2020, 3:42 PM
thomas-mangin added a comment to T2190: Instantiating Interfaces without risk of creation.
This may possibly be the cause of some bugs?

If the interface exists, it is perfectly harmless: it was the previous behaviour. The example where it can cause issue when a interface name is used and does not exists as it will create it. So really op_mode commands.

Apr 22 2020, 3:34 PM
jjakob added a comment to T2190: Instantiating Interfaces without risk of creation.

There are places in the code where operational commands are still ran without create=False, for example:
https://github.com/vyos/vyos-1x/blob/675f400bacb03ae93be928e7270f89205d1036b9/src/conf_mode/interfaces-bonding.py#L242

Apr 22 2020, 10:57 AM
Viacheslav closed T2361: Unable to delete VLAN vif interface, a subtask of T2353: Interface [conf_mode] errors parent task, as Resolved.
Apr 22 2020, 10:02 AM · VyOS 1.3 Equuleus (1.3.6)
Viacheslav closed T2361: Unable to delete VLAN vif interface as Resolved.

Fixed in the latest rolling.

Apr 22 2020, 10:02 AM · VyOS 1.3 Equuleus (1.3.0)
zakwan updated zakwan.
Apr 22 2020, 9:24 AM
zakwan updated zakwan.
Apr 22 2020, 9:22 AM
Viacheslav closed T2320: Wireguard creates non-existing interfaces in [op-mode]., a subtask of T2322: CLI [op-mode] bugs. Root task, as Resolved.
Apr 22 2020, 9:06 AM · VyOS 1.3 Equuleus (1.3.0)
Viacheslav closed T2320: Wireguard creates non-existing interfaces in [op-mode]. as Resolved.

Fixed.

Apr 22 2020, 9:06 AM · VyOS 1.3 Equuleus (1.3.0)
Viacheslav closed T2331: VRRP op-mode errors, a subtask of T2322: CLI [op-mode] bugs. Root task, as Resolved.
Apr 22 2020, 8:07 AM · VyOS 1.3 Equuleus (1.3.0)
Viacheslav closed T2331: VRRP op-mode errors as Resolved.

Fixed in the latest rolling

sever@r11:~$ show vrrp 
VRRP is not running
sever@r11:~$ show vrrp detail 
VRRP is not running
sever@r11:~$ show vrrp statistics 
VRRP is not running
sever@r11:~$
Apr 22 2020, 8:07 AM · VyOS 1.3 Equuleus (1.3.0)
Viacheslav assigned T2361: Unable to delete VLAN vif interface to thomas-mangin.
Apr 22 2020, 8:03 AM · VyOS 1.3 Equuleus (1.3.0)
c-po added a comment to T2365: remove duplication.

I prefer the first one as it is proven to work since VyOS 1.2.x

Apr 22 2020, 7:04 AM