/srv/irclogs.ubuntu.com/2022/08/24/#netplan.txt

LukasM[m]Conan Kudo: sweet,  thank you very much for updating the RPM ecosystem!07:15
wdecHi All. Quick question here. Does netplan support source port (sport) as a parameter in ip rules? The docs mention to/from in the form of IP address and subnet, while all distros support also sport and dport08:45
slyonwdec: that would probably be sd-networkd's "SourcePort=" and "DestinationPort=" settings (https://systemd.network/systemd.network.html#%5BRoutingPolicyRule%5D%20Section%20Options) which netplan is not currently able to control.09:06
slyonBut, you could create a sd-networkd override file to set those values, e.g.: /etc/systemd/networkd/10-netplan-eth0.network.d/override.conf09:08
slyonand put your "[RoutingPolicyRule]" in there manually09:08
wdecslyon: Thanks, will try that. Just one more thing on that. If I do use netplan config for regular to/from rules, along with having an override file for the sport, will the system use the union (both) of the policies, or only one? 09:14
slyonI'm not exactly sure. But I'd assume it uses any [RoutingPolicyRule] section it finds, so basically the combination of both09:19

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!