PR for 1.3 https://github.com/vyos/vyos-1x/pull/2057
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Jun 25 2023
Actually this uncovered a "bug" that there is no verify() section that validates if the configured interfaces actually have an IP address configured.
Jun 24 2023
if len(config.get('interface', [])) < 2 or len(config.get('interface', [])) > 2: raise ConfigError('Only two interfaces are required for udp broadcast relay "{instance}"')
Jun 23 2023
Just tested again with 1.3.3. When setting set firewall send-redirects enable, ICMP redirects work fine until I reboot the router.
Before rebooting:
root@vyos:~# sysctl -a | grep send_redirect net.ipv4.conf.all.send_redirects = 1 net.ipv4.conf.default.send_redirects = 0 net.ipv4.conf.eth0.send_redirects = 0 net.ipv4.conf.eth1.send_redirects = 0 net.ipv4.conf.eth2.send_redirects = 0 net.ipv4.conf.eth3.send_redirects = 0 net.ipv4.conf.lo.send_redirects = 0 net.ipv4.conf.wg0.send_redirects = 0
After rebooting:
root@vyos:~# sysctl -a | grep send_redirect net.ipv4.conf.all.send_redirects = 0 net.ipv4.conf.default.send_redirects = 0 net.ipv4.conf.eth0.send_redirects = 0 net.ipv4.conf.eth1.send_redirects = 0 net.ipv4.conf.eth2.send_redirects = 0 net.ipv4.conf.eth3.send_redirects = 0 net.ipv4.conf.lo.send_redirects = 1 net.ipv4.conf.wg0.send_redirects = 0
Jun 22 2023
This problem still exist on VyOS 1.4-rolling-202306070317
@fernando It seems related task https://vyos.dev/T5302
I'm also encountering this issue on the latest rolling release.
Jun 21 2023
you are right , I seems to be working :
I've tested it, but it works partially... if you have more than a match (for example, the same class id if necessary to match more than one DSCP),it brakes the configuration again :
PR https://github.com/vyos/vyos-1x/pull/2051
vyos@r14# run show conf com | match cont set container name c1 allow-host-networks set container name c1 description 'foof' set container name c1 image 'busybox' set container name c1 volume myvlm destination '/tmp' set container name c1 volume myvlm propagation 'rshared' set container name c1 volume myvlm source '/tmp' set system sysctl parameter net.ipv4.tcp_congestion_control value 'bbr' [edit] vyos@r14# [edit] vyos@r14# sudo podman inspect -f '{{.Mounts}}' c1 [{bind /tmp /tmp [nosuid nodev rbind] true rshared}] [edit] vyos@r14#
Jun 20 2023
Jun 19 2023
It fixes for shaper but breaks the policer
Policer uses limits in tc filter
In T4989#150726, @daniil wrote:Now the traffic limiter is broken.
interface br100 { ingress 1G-in } policy { limiter 1G-in { default { bandwidth 1gbit burst 125000000b } } }tc filter show dev br100 ingressis empty, upload traffic is not limited.
Now the traffic limiter is broken.
Fixed in https://github.com/vyos/vyos-1x/pull/2047 https://vyos.dev/T5256
set qos interface eth0 egress 'test' set qos policy shaper test bandwidth '330mbit' set qos policy shaper test class 23 bandwidth '50%' set qos policy shaper test class 23 match icmpv4 ip protocol 'icmp' set qos policy shaper test default bandwidth '300mbit' set qos policy shaper test default queue-type 'fair-queue'
in the VyOS 1.4-rolling-202306190317
set qos interface eth0 egress 'test' set qos policy shaper test bandwidth '300bit' set qos policy shaper test class 100 bandwidth '150mbit' set qos policy shaper test class 100 burst '3760k' set qos policy shaper test class 100 match internal mark '100' set qos policy shaper test class 100 queue-type 'fq-codel' set qos policy shaper test default bandwidth '20mbit' set qos policy shaper test default burst '188k' set qos policy shaper test default queue-type 'fq-codel'
comimt
DEBUG/QoS: tc qdisc replace dev eth0 root handle 1: htb r2q 1 default 65 DEBUG/QoS: tc class replace dev eth0 parent 1: classid 1:1 htb rate 300 DEBUG/QoS: tc class replace dev eth0 parent 1:1 classid 1:64 htb rate 150000000 burst 3760k quantum 1514 DEBUG/QoS: tc qdisc replace dev eth0 parent 1:64 sfq DEBUG/QoS: tc class replace dev eth0 parent 1:1 classid 1:65 htb rate 20000000 burst 188k quantum 1514 prio 20 DEBUG/QoS: tc qdisc replace dev eth0 parent 1:65 sfq DEBUG/QoS: tc qdisc replace dev eth0 parent 1:64 fq_codel quantum 1514 flows 1024 interval 100 interval 100 target 5 noecn DEBUG/QoS: tc filter replace dev eth0 parent 1: protocol all handle 100 fw flowid 1:64
@MartB Could you test it? Should be fixed in vyos-1.4-rolling-202306190317-amd64.iso
Jun 18 2023
Not sure about ipv6, requires more tests, but ip should work
PR https://github.com/vyos/vyos-1x/pull/2048
Sorry, I did not find that issue during my initial search.
I guess we can close this issue as duplicate.
What is the correct way to do this in phabricator?
The similar task https://vyos.dev/T5154
Jun 17 2023
This was a red herring: root cause in
https://vyos.dev/T5300
This is most likely due to a config error on boot, thus leaving the active config different from the saved config; cf.
'verification of port availability can return false negative on boot'
https://vyos.dev/T5300