Page MenuHomeVyOS Platform
Feed Search

Apr 15 2020

jjakob added a comment to T508: ISC DHCP incorrect UDP checksum generation.

Ah, I missed that it's for 1.2, 1.3 has a newer isc-dhcp.

Apr 15 2020, 7:58 PM · VyOS 1.3 Equuleus (1.3.0-epa1), vyatta-dhcp3
jjakob added a comment to T2235: OpenVPN server client IP doesn't reserve that IP in the pool.

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

Apr 15 2020, 7:28 PM · VyOS 1.3 Equuleus (1.3.0), openvpn
jjakob closed T2293: OpenVPN: UnboundLocalError after merging server_network PullRequest as Resolved.
Apr 15 2020, 5:17 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2293: OpenVPN: UnboundLocalError after merging server_network PullRequest.

The previous commit didn't fix it, this one does: https://github.com/vyos/vyos-1x/pull/348

Apr 15 2020, 3:30 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T508: ISC DHCP incorrect UDP checksum generation.

My first thought would be something wrong with offloading on the NIC -
there was a change recently that turns all the offloading settings on by
default, you can disable some in the ethernet config. My suggestion to
leave the default disabled and enable it on demand wasn't taken into
account.

Apr 15 2020, 7:16 AM · VyOS 1.3 Equuleus (1.3.0-epa1), vyatta-dhcp3

Apr 14 2020

jjakob added a comment to T2293: OpenVPN: UnboundLocalError after merging server_network PullRequest.

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

Apr 14 2020, 8:08 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2290: pdns recursor does not resolve .io domains.

That's how DNS forwarders usually work. If they can find a domain
locally, they'll use it, if not forward to upstream. The same behaviour
is everywhere, on all resolvers.

Apr 14 2020, 10:04 AM · VyOS 1.3 Equuleus (1.3.0)

Apr 13 2020

jjakob closed T2285: 2nd openvpn vtun not getting started as Invalid.

Sorry for the noise, it was disabled. I forgot to save the config before upgrading, doh.

Apr 13 2020, 12:58 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2285: 2nd openvpn vtun not getting started.
vyos@rt-home# show openvpn 
 openvpn vtun0 {
     encryption {
         ncp-ciphers aes256gcm
     }
     hash sha512
     keep-alive {
         failure-count 60
         interval 59
     }
     mode server
     persistent-tunnel
     server {
         client jernej-note3 {
             ip x.x..7.10
         }
         client-ip-pool {
             start x.x.7.127
         }
         domain-name home
         max-connections 10
         push-route x.x.0.0/24
         subnet x.x.7.0/24
         topology subnet
     }
     tls {
         ca-cert-file /config/auth/openvpn/ca.crt
         cert-file /config/auth/openvpn/rt-home.crt
         crypt-file /config/auth/openvpn/tls.key
         key-file /config/auth/openvpn/rt-home.key
     }
 }
 openvpn vtun1 {
     description b
     device-type tun
     disable
     encryption {
         ncp-ciphers aes256gcm
     }
     hash sha512
     keep-alive {
         failure-count 60
         interval 59
     }
     local-port 1195
     mode server
     persistent-tunnel
     server {
         client jernej-note3 {
             ip x.x.8.10
         }
         client-ip-pool {
             start x.x.8.6
             stop x.x.0.3
         }
         domain-name home
         max-connections 10
         push-route x.x.0.0/24
         subnet x.x.8.0/24
         topology subnet
     }
     tls {
         ca-cert-file /config/auth/openvpn/ca.crt
         cert-file /config/auth/openvpn/rt-home.crt
         crypt-file /config/auth/openvpn/tls.key
         key-file /config/auth/openvpn/rt-home.key
     }
 }
[edit interfaces]

I tried removing client-ip-pool if it was a issue with it, no difference.

vyos@rt-home# delete openvpn vtun1 server client-ip-pool 
[edit interfaces]
vyos@rt-home# commit
[ interfaces openvpn vtun1 ]
Warning: Client "jernej-note3" IP x.x.8.10 is in server IP pool, it is not reserved for this client.
Diffie-Hellman prime file is unspecified, assuming ECDH
Apr 13 2020, 12:55 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2281: DHCP and Static IPs on Same Interface.

This is a old quirk that's long known (probably was already reported) and
can be worked around by adding a pseudo-ethernet interface with the DHCP
client on it.

Apr 13 2020, 11:26 AM · VyOS 1.4 Sagitta
jjakob changed the status of T149: IPv6 support in OpenVPN tunnel from Open to In progress.
Apr 13 2020, 11:08 AM · VyOS 1.3 Equuleus (1.3.0-epa1), openvpn
jjakob assigned T2285: 2nd openvpn vtun not getting started to c-po.
Apr 13 2020, 11:04 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob created T2285: 2nd openvpn vtun not getting started.
Apr 13 2020, 11:03 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2283: openvpn not starting: ccd path in template not moved to /run/openvpn/ccd.

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

Apr 13 2020, 10:41 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T2283: openvpn not starting: ccd path in template not moved to /run/openvpn/ccd as Urgent! priority.
Apr 13 2020, 10:36 AM · VyOS 1.3 Equuleus (1.3.0)

Apr 11 2020

jjakob added a comment to T2213: vyos-1x: WiFi mode ieee80211ac should also activate ieee80211n.

I use http://jinja.quantprogramming.com/ to test templates. With it you
can test all possible combinations of input variables. (You need to test
all combinations if you're stripping whitespace, as some combination can
have a good format, another can have too much whitespace stripped)

Apr 11 2020, 7:00 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2186: Provide more information to the user when a traceback is reported to the user.

Yes, that would be useful, for example conf_mode scripts could print warnings that would go to the syslog when the config is applied on boot. Other scripts output is seen by the user anyway so I don't see a use elsewhere.

Apr 11 2020, 12:15 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2186: Provide more information to the user when a traceback is reported to the user.

Oh, nice!

Apr 11 2020, 11:00 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2186: Provide more information to the user when a traceback is reported to the user.

How do we use this new "airbag.py" for on-demand logging from scripts? For example if I want to print a warning when executing a conf_mode script that should go both to stderr and to a file, but is not a fatal exception?

Apr 11 2020, 10:40 AM · VyOS 1.3 Equuleus (1.3.0)

Apr 10 2020

jjakob added a comment to T2268: DHCPv6 is broken.

no link-local IPv6 address for eth0

IIRC vyos doesn't support setting link-local addresses on interfaces
through the CLI, though a IPv6 interface should get one by default by the
kernel (I may be mistaken, what does "ip addr" say?)

Apr 10 2020, 9:50 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob moved T2235: OpenVPN server client IP doesn't reserve that IP in the pool from Need Triage to In Progress on the VyOS 1.3 Equuleus board.
Apr 10 2020, 7:50 PM · VyOS 1.3 Equuleus (1.3.0), openvpn
jjakob added a comment to T2235: OpenVPN server client IP doesn't reserve that IP in the pool.

WIP: https://github.com/vyos/vyos-1x/pull/325
We won't do strict exclusion of client IPs from the server pool, but just print a warning if they overlap. This way old configs won't require migration and will still work, and new configurations will be able to manually set a smaller pool.

Apr 10 2020, 7:49 PM · VyOS 1.3 Equuleus (1.3.0), openvpn
jjakob changed the status of T2235: OpenVPN server client IP doesn't reserve that IP in the pool from Open to In progress.
Apr 10 2020, 7:48 PM · VyOS 1.3 Equuleus (1.3.0), openvpn
jjakob closed T2266: openvpn bridged client-server doesn't work (validation error) as Resolved.
Apr 10 2020, 7:31 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob changed the status of T2266: openvpn bridged client-server doesn't work (validation error) from Open to In progress.

https://github.com/vyos/vyos-1x/pull/323
Bridged mode still doesn't work until T2064 is fixed, but at least the validation should be fixed.

Apr 10 2020, 5:46 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T2266: openvpn bridged client-server doesn't work (validation error) as Normal priority.
Apr 10 2020, 5:30 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1538: Update conntrack-sync packages to fix VRRP issues.

It's best if we just use packages targeted for buster, not another debian release. I suggest you create PRs for all pathches needed (in addition to the one you already submitted) in Debian's PTS for buster's conntrack-tools, and then ask them to make a new release with those patches included.

Apr 10 2020, 3:56 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2261: "client-config-dir" not being set for openvpn.

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

Apr 10 2020, 9:59 AM · VyOS 1.3 Equuleus (1.3.0)

Apr 8 2020

jjakob added a comment to T2205: "set interface ethernet" fails on Hyper-V.

Is this normal?

vyos@rt-home# set interfaces ethernet eth4 vif 20
[edit]
vyos@rt-home# commit
[ interfaces ethernet eth4 ]
DEBUG/ifconfig cmd '/sbin/ethtool -K eth4 gro off'
DEBUG/ifconfig cmd '/sbin/ethtool -K eth4 gso off'
DEBUG/ifconfig cmd '/sbin/ethtool -K eth4 sg off'
DEBUG/ifconfig cmd '/sbin/ethtool -K eth4 tso off'
DEBUG/ifconfig cmd '/sbin/ethtool -K eth4 ufo off'
DEBUG/ifconfig returned:
Cannot change udp-fragmentation-offload
Apr 8 2020, 10:55 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2189: Adding a large port-range will take ~ 20 minutes to commit.

T2199 for the firewall rewrite - free for the taking. I wouldn't stray much from the old code logic, as some things have hidden meanings. Especially leaving checks out could introduce bugs unless you're absolutely sure they can be bypassed.

Apr 8 2020, 10:49 PM · VyOS 1.3 Equuleus (1.3.3)
jjakob added a comment to T1538: Update conntrack-sync packages to fix VRRP issues.

There was a new upstream release 1.4.6 7 days ago, but that shouldn't make it to debian stable (buster). Only the patch done by elbandi via PR could get released as 1.4.5-3, but it hasn't been yet. We could make a backport of 1.4.6 into buster-backports and add a custom apt pin for the package. (I'd rather not go the backport route, as that means the backporter needs to always update the upload for security fixes, rather I'd add all patches for bugs into 1.4.5 for buster and ask for a new buster release).

Apr 8 2020, 10:28 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob claimed T2250: vyos-build "make iso" error if configure was ran outside of the docker container.
Apr 8 2020, 10:05 PM · VyOS 1.3 Equuleus (1.3.5)
jjakob added a comment to T2250: vyos-build "make iso" error if configure was ran outside of the docker container.

https://github.com/vyos/vyos-build/pull/99

Apr 8 2020, 10:05 PM · VyOS 1.3 Equuleus (1.3.5)
jjakob triaged T2250: vyos-build "make iso" error if configure was ran outside of the docker container as Low priority.
Apr 8 2020, 9:54 PM · VyOS 1.3 Equuleus (1.3.5)
jjakob updated the task description for T2249: Interface definitions must always have the correct 'type:' set.
Apr 8 2020, 9:10 PM · VyOS Rolling
jjakob added a parent task for T1911: Completion helper list is not sorted: T2249: Interface definitions must always have the correct 'type:' set.
Apr 8 2020, 9:05 PM · VyOS Rolling, Bugs
jjakob added a subtask for T2249: Interface definitions must always have the correct 'type:' set: T1911: Completion helper list is not sorted.
Apr 8 2020, 9:05 PM · VyOS Rolling
jjakob triaged T2249: Interface definitions must always have the correct 'type:' set as Low priority.
Apr 8 2020, 9:04 PM · VyOS Rolling
jjakob updated the task description for T2241: Changing settings on an interface causes it to fall out of bridge.
Apr 8 2020, 11:52 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T2241: Changing settings on an interface causes it to fall out of bridge as Urgent! priority.
Apr 8 2020, 11:42 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2186: Provide more information to the user when a traceback is reported to the user.

Personally I'd use systemd-journald which I think provides the same logging facilities as rsyslog used to, but vyos still runs both. IMO the logging section is a mess and would need a complete rewrite to journal.

Apr 8 2020, 11:31 AM · VyOS 1.3 Equuleus (1.3.0)

Apr 6 2020

jjakob triaged T2235: OpenVPN server client IP doesn't reserve that IP in the pool as Wishlist priority.
Apr 6 2020, 4:28 PM · VyOS 1.3 Equuleus (1.3.0), openvpn
jjakob added a comment to T2203: http api: "Failed to generate committed config" .

Re: logging, DANOS mounts a permanent /var/log at boot (I think it's shared by all images). If any work on logging is going to be done, /var/log should be mounted before any vyos config migration or load is done so it can be used as the destination for logging.

Apr 6 2020, 3:31 PM
jjakob changed the status of T2234: Controlling whitespace in Jinja templates (template cleanup parent task) from Open to In progress.
Apr 6 2020, 3:26 PM · VyOS 1.3 Equuleus (1.3.6)
jjakob added a comment to T2203: http api: "Failed to generate committed config" .

I couldn't find anything in /var/log/vyatta the last few times I've ran into boot-time commit errors. It seems like the python code doesn't log commit errors into a file or syslog, or at least I couldn't find it. I had to log into the console, go into config mode, load the config (usually pre-migration when there are migrator script errors) and commit it, then the errors are printed to the console. Someone can correct me if I'm wrong.

Apr 6 2020, 2:09 PM

Apr 4 2020

jjakob added a comment to T1586: OpenVPN add IPv6 support to tunnels.

duplicate of T149 ?

Apr 4 2020, 2:00 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T149: IPv6 support in OpenVPN tunnel.

I can try to tackle this if noone else is working on it.

Apr 4 2020, 1:59 PM · VyOS 1.3 Equuleus (1.3.0-epa1), openvpn
jjakob added a comment to T2222: openvpn: requires "multihome" option to listen on all addresses with udp protocol.

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

Apr 4 2020, 1:20 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T2222: openvpn: requires "multihome" option to listen on all addresses with udp protocol as Normal priority.
Apr 4 2020, 1:10 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T2217: Comparing old and new configurations in scripts (daemon reloads and restarts) as Low priority.
Apr 4 2020, 9:39 AM
jjakob updated subscribers of T2205: "set interface ethernet" fails on Hyper-V.
Apr 4 2020, 8:53 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2205: "set interface ethernet" fails on Hyper-V.

Currently none of the offloading (gro, gso, sg, tso, ufo) settings are checked either at src/conf_mode/interfaces-ethernet.py verify() or in the module python/vyos/ifconfig/ethernet.py. Setting one of these when the driver doesn't support it will result in an unhandled exception. This may not be so disastrous when setting the options in config mode, as the commit will fail due to the exception, but will have more disastrous results when a config which has these options set is loaded into a system with NICs that don't support it - this will cause boot time commit to fail. As per T2158 and PR#272 none of these calls should result in an exception, but rather just print a warning and continue.

Apr 4 2020, 8:48 AM · VyOS 1.3 Equuleus (1.3.0)

Apr 2 2020

jjakob closed T2072: Shell autocomplete of option (config node) with quoted value doesn't work as Resolved.
Apr 2 2020, 5:10 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob reopened T2072: Shell autocomplete of option (config node) with quoted value doesn't work as "In progress".

This PR still needs to be merged: https://github.com/vyos/vyatta-cfg/pull/23

Apr 2 2020, 4:39 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T1911: Completion helper list is not sorted as Low priority.
Apr 2 2020, 3:08 PM · VyOS Rolling, Bugs
jjakob added a comment to T1911: Completion helper list is not sorted.

The above patch breaks sorting for other nodes that contain text, not a number. We'd need some way to distinguish different node types (text, IP, number,...) and chose different sorts depending on that.

Apr 2 2020, 2:51 PM · VyOS Rolling, Bugs
jjakob triaged T2199: Rewrite firewall in new XML/Python style as Wishlist priority.
Apr 2 2020, 11:48 AM · VyOS 1.4 Sagitta (1.4.0-epa2)
jjakob triaged T2198: Rewrite NAT in new XML/Python style as Wishlist priority.
Apr 2 2020, 11:46 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1579: Rewrite all interface types in new XML/Python style.

Is this only for interfaces or for other rewrites (NAT, Firewall, BGP) too? If so, I'll add all the related tasks.

Apr 2 2020, 11:35 AM · VyOS 1.3 Equuleus (1.3.0)

Apr 1 2020

jjakob updated the task description for T2195: Support for encrypted DNS: dnscrypt, DoH, DoT, anonymized DNS.
Apr 1 2020, 2:23 PM
jjakob triaged T2195: Support for encrypted DNS: dnscrypt, DoH, DoT, anonymized DNS as Wishlist priority.
Apr 1 2020, 2:21 PM
jjakob added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

What's the reason for enabling flow control by default? I'd have assumed disabled is more common and causes less problems. The node naming is not the best IMO as it has "disable-" in it, more reasonable would be to have a node called "flow-control" that enabled it if set, the default being disabled, and it could have sub-nodes to tweak the exact flow control settings.

Apr 1 2020, 1:26 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T2194: "show firewall" garbled output as Low priority.
Apr 1 2020, 12:53 PM · VyOS 1.3 Equuleus (1.3.2), test
jjakob added a comment to T2184: OpenVPN op_mode tools broken.

I would check in main, before get_status, if a interface is disabled in config, then I'd just print "vtunX is disabled" and skip all other processing for that interface. If a interface is enabled but its status file isn't readable, print "Error: status file for vtunX is not readable" (I'd use try/except around the open in get_status, and return a exception so that main can print the error).

Apr 1 2020, 12:12 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T2192: Create common crypto library for creation/verification/management of RSA/EC/SSH keys, certificates, requests, etc. as Low priority.
Apr 1 2020, 11:30 AM

Mar 31 2020

jjakob added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

I can confirm the above commit fixes booting with interfaces that don't support flow control. I have no way of checking that it properly applies if the interface does support it.

Mar 31 2020, 8:55 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob closed T2144: vyos-build: docker: selection of text in the terminal still selects it in vim (mouse isn't completely disabled) as Resolved.
Mar 31 2020, 8:43 PM · VyOS 1.3 Equuleus (1.3.0), vyos-build
jjakob closed T2137: vyos-build: set debian mirror for building docker image from ./configure as Wontfix.

After discussion on the PR it was determined this functionality wasn't needed.

Mar 31 2020, 8:42 PM · vyos-build
jjakob changed the status of T2118: Failure to boot after power outage due to dirty filesystem and no fsck in initramfs from Needs testing to Confirmed.
Mar 31 2020, 7:50 PM · VyOS 1.3 Equuleus (1.3.3)
jjakob added a comment to T2118: Failure to boot after power outage due to dirty filesystem and no fsck in initramfs.

I tested it today and it doesn't work yet.

Mar 31 2020, 7:48 PM · VyOS 1.3 Equuleus (1.3.3)
jjakob updated the task description for T2188: NTP op-mode commands don't work.
Mar 31 2020, 11:26 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T2188: NTP op-mode commands don't work as Low priority.
Mar 31 2020, 11:23 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2186: Provide more information to the user when a traceback is reported to the user.

+1, I'd also like if all failed commits were stored in a permanent log somewhere to make debugging easier, I can't find one right now.

Mar 31 2020, 11:15 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2184: OpenVPN op_mode tools broken.

The file exists on my system (1.3-rolling-202003291001):

-rw------- 1 root root 377 Mar 31 11:44 /opt/vyatta/etc/openvpn/status/vtun0.status

and show openvpn server works:

vyos@rt-home:~$ show openvpn server
Mar 31 2020, 9:50 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1999: support for ip groups in nat.

I vote for this as well. I have a lot of addresses I need to add to a nat source address so I need to create one rule per IP. Because I have a specific rule numbering scheme, I'm running out of space in it so I had to break the scheme. The ability to use groups in nat source and destination addresses would greatly help.

Mar 31 2020, 9:37 AM
jjakob added a comment to T2184: OpenVPN op_mode tools broken.

While you're looking at it, can you try to move it to a systemd service? I opened a task for discussion: T2185

Mar 31 2020, 4:48 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T2185: Start daemons with systemd units instead of with start-stop-daemon as Normal priority.
Mar 31 2020, 4:37 AM · VyOS 1.3 Equuleus (1.3.0)

Mar 29 2020

jjakob triaged T2177: Commit fails on adding disabled interface to bridge as Urgent! priority.
Mar 29 2020, 2:49 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T2176: 'WiFiIf' object has no attribute 'set_state' as Urgent! priority.
Mar 29 2020, 2:43 PM · VyOS 1.3 Equuleus (1.3.0)

Mar 28 2020

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

It's useful when the user is sure he doesn't want IPv6, as it lessens the attack surface, especially if the user doesn't know he needs to configure a IPv6 firewall separately to the IPv4 firewall. Even link-local addresses can be used to launch attacks in the absence of a firewall config.
IMO the configured interface addresses and v6 nodes should become no-ops, possibly print a warning on commit.
On the other hand, leaving IPv6 enabled, would be better to move in the direction of v6 adoption. Personally, I'd prefer this, and leave v6 enabled by default.

Mar 28 2020, 1:58 PM

Mar 26 2020

jjakob added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

also I would remove L107-L109 and move the debug message to the exception handler of L114

Mar 26 2020, 10:53 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

I think this throws a exception that isn't caught: https://github.com/vyos/vyos-1x/blob/583e9d907236a4a98fe40e97a378c1fb655f8a95/python/vyos/ifconfig/ethernet.py#L114

root@vyos:~# /sbin/ethtool --show-pause eth0
Pause parameters for eth0:
Cannot get device pause settings: Operation not supported
root@vyos:~# echo $?
76
Mar 26 2020, 10:51 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob updated jjakob.
Mar 26 2020, 10:33 AM
jjakob added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

@thomas-mangin Which commit do you mean, https://github.com/vyos/vyos-1x/commit/60d35d1d4d3a5acec6e39cccb166fd33490b6c27 ?
I can definitely say that did not fix the issue for r8169, the router failed boot after upgrading to 1.3-rolling-202003250217. If there were any patches after that, I can't see them.

Mar 26 2020, 10:26 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob renamed T2158: Commit fails if ethernet interface doesn't support flow control (pause) from Need to add xen_netfront to interfaces that don't support pause to Commit fails if ethernet interface doesn't support flow control (pause).
Mar 26 2020, 8:49 AM · VyOS 1.3 Equuleus (1.3.0)

Mar 25 2020

jjakob added a comment to T2105: wireless: not possible to disabled wlan0.

I'm still getting the same behavior on 1.3-rolling-202003250217:

vyos@vyos:~$ show interfaces wireless
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
wlan0            -                                 u/u  
vyos@vyos:~$ configure
[edit]
vyos@vyos# set interfaces wireless wlan0 disable
Mar 25 2020, 8:42 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2162: migration script for router-advert sets link-mtu 0 on bridge interfaces.

Actually I had link-mtu 0 on br0 for a long time now and it worked without problem previously, maybe 0 was a special meaning for radvd?
br0 is the only interface that had ipv6 router-advert, I included one of the eth's for completeness:

interfaces {
    bridge br0 {
        address 192.0.2.1/24
        address 2001:db8::1/64
        aging 300
        description LAN
        firewall {
            local {
                name lan-local
            }
        }
        hello-time 2
        ipv6 {
            dup-addr-detect-transmits 2
            router-advert {
                cur-hop-limit 64
                link-mtu 0
                managed-flag true
                max-interval 600
                other-config-flag false
                prefix 2001:db8::/64 {
                    autonomous-flag true
                    on-link-flag true
                    valid-lifetime 2592000
                }
                reachable-time 0
                retrans-timer 0
                send-advert true
            }
        }
        max-age 20
        member {
            interface eth0 {
            }
            interface eth1 {
            }
            interface eth2 {
            }
            interface eth4 {
            }
            interface wlan0 {
            }
        }
        priority 20480
        stp
    }
    ethernet eth0 {
        duplex auto
        hw-id xx:xx:xx:xx:xx:xx
        smp-affinity auto
        speed auto
    }
}
Mar 25 2020, 8:22 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

I already hotfixed the issue on mine by adding r8169 into the unsupported list - but as said, that's not the real solution.

Mar 25 2020, 7:23 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

Maybe check the physical interface support via ethtool in the ethernet validate() function and raise a configerror if it doesn't? Or should the default be disabled and should a config command be enable-flow-control? The script that actually sets the flow control should definitely just print a warning to the syslog and not fail.

Mar 25 2020, 7:15 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

I'll open a new task for it.

Mar 25 2020, 6:55 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob closed T2148: openvpn: setting "server client" config without "server client ip" results in ValueError: '' does not appear to be an IPv4 or IPv6 address as Resolved.
Mar 25 2020, 5:48 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

I suspect the driver blacklist won't be enough for a lot of users. A lot of very common ethernet cards don't support setting pause frames.

Mar 25 2020, 5:31 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T2162: migration script for router-advert sets link-mtu 0 on bridge interfaces as Urgent! priority.
Mar 25 2020, 5:18 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

Please add r8169 as well. The config failed to load at boot after upgrading to latest rolling because of this error. The script should check if the interface supports pause and silently continue if it doesn't, otherwise maintaining a list of all pause-unsupported interfaces is going to be next to impossible. I suspect a lot more of them don't.

Mar 25 2020, 5:04 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob closed T1383: Cannot use quotes for openvpn-option --route-up as Invalid.
Mar 25 2020, 4:23 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1383: Cannot use quotes for openvpn-option --route-up.

Closing, 1.3 has rewritten the perl code from scratch in python, but the functionality should be the same.

Mar 25 2020, 4:22 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2113: OpenVPN Options error: you cannot use --verify-x509-name with --compat-names or --no-name-remapping.

We could make compat-names a configurable option that defaults to disabled, e.g. "set interfaces openvpn vtunX tls compat-names {no-remapping}"

Mar 25 2020, 4:18 PM · VyOS 1.4 Sagitta (1.4.0-epa1), Restricted Project, VyOS 1.3 Equuleus (1.3.7), openvpn
jjakob closed T2146: openvpn: "delete server client" doesn't delete the corresponding ccd configs as Resolved.
Mar 25 2020, 4:11 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob claimed T2148: openvpn: setting "server client" config without "server client ip" results in ValueError: '' does not appear to be an IPv4 or IPv6 address.
Mar 25 2020, 4:10 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2139: openvpn: allow "dh-file none" to disable DH for ECDH keys.

The implementation mostly works, but still behaves unexpectedly when keys don't have a BEGIN EC PRIVATE KEY or BEGIN RSA PRIVATE KEY, but have just a plain BEGIN PRIVATE KEY, which is valid for both EC and RSA (and is the default output format for openssl ec -out, for example when removing a passphrase from the key). We need to switch to checking the key type by actually trying to read it with openssl and checking its error status.

Mar 25 2020, 4:04 PM · VyOS 1.3 Equuleus (1.3.5)