<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/interface-definitions/system-conntrack.xml.in, branch feature/T9082-codeql-cpp</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2023-12-31T22:49:48+00:00</updated>
<entry>
<title>T5474: establish common file name pattern for XML conf mode commands</title>
<updated>2023-12-31T22:49:48+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-12-30T22:25:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=4ef110fd2c501b718344c72d495ad7e16d2bd465'/>
<id>urn:sha1:4ef110fd2c501b718344c72d495ad7e16d2bd465</id>
<content type='text'>
We will use _ as CLI level divider. The XML definition filename and also
the Python helper should match the CLI node.

Example:
set interfaces ethernet -&gt; interfaces_ethernet.xml.in
set interfaces bond -&gt; interfaces_bond.xml.in
set service dhcp-server -&gt; service_dhcp-server-xml.in
</content>
</entry>
<entry>
<title>T5779: conntrack: Apply fixes to &lt;set system conntrack timeout custom&gt;. Remove what was not working on 1.3, migrate what was working to new syntax and extend feature for ipv6.</title>
<updated>2023-12-05T10:44:19+00:00</updated>
<author>
<name>Nicolas Fort</name>
<email>nicolasfort1988@gmail.com</email>
</author>
<published>2023-12-05T10:36:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=24a1a70596fafdd35d88506159e6cb9cd94e7a66'/>
<id>urn:sha1:24a1a70596fafdd35d88506159e6cb9cd94e7a66</id>
<content type='text'>
</content>
</entry>
<entry>
<title>conntrack: T5217: Add tcp flag matching to `system conntrack ignore`</title>
<updated>2023-09-18T18:26:51+00:00</updated>
<author>
<name>sarthurdev</name>
<email>965089+sarthurdev@users.noreply.github.com</email>
</author>
<published>2023-09-18T18:24:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=fb3ef9af5e394aa25692003fb3c185bfedefe3cb'/>
<id>urn:sha1:fb3ef9af5e394aa25692003fb3c185bfedefe3cb</id>
<content type='text'>
- Moves MSS node out of `tcp-flags.xml.i` and into `tcp-mss.xml.i`
- Update smoketest to verify TCP flag matching
</content>
</entry>
<entry>
<title>T4502: firewall: Add software flow offload using flowtable</title>
<updated>2023-09-09T08:16:04+00:00</updated>
<author>
<name>Yuxiang Zhu</name>
<email>vfreex@gmail.com</email>
</author>
<published>2023-08-26T05:28:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=f909c17aca4d48598d5eaee0df81bf64967902f0'/>
<id>urn:sha1:f909c17aca4d48598d5eaee0df81bf64967902f0</id>
<content type='text'>
The following commands will enable nftables flowtable offload on interfaces eth0 eth1:

```
set firewall global-options flow-offload software interface &lt;name&gt;
set firewall global-options flow-offload hardware interface &lt;name&gt;
```

Generated nftables rules:

```
table inet vyos_offload {
    flowtable VYOS_FLOWTABLE_software {
        hook ingress priority filter - 1; devices = { eth0, eth1, eth2, eth3 };
        counter
    }

    chain VYOS_OFFLOAD_software {
        type filter hook forward priority filter - 1; policy accept;
        ct state { established, related } meta l4proto { tcp, udp } flow add @VYOS_FLOWTABLE_software
    }
}
```

Use this option to count packets and bytes for each offloaded flow:
```
set system conntrack flow-accounting
```

To verify a connection is offloaded, run

```
cat /proc/net/nf_conntrack|grep OFFLOAD
```

This PR follows firewalld's implementation: https://github.com/firewalld/firewalld/blob/e748b97787d685d0ca93f58e8d4292e87d3f0da6/src/firewall/core/nftables.py#L590

A good introduction to nftables flowtable: https://thermalcircle.de/doku.php?id=blog:linux:flowtables_1_a_netfilter_nftables_fastpath
</content>
</entry>
<entry>
<title>conntrack: T4309: T4903: Refactor `system conntrack ignore` rule generation, add IPv6 support and firewall groups</title>
<updated>2023-09-04T10:36:11+00:00</updated>
<author>
<name>sarthurdev</name>
<email>965089+sarthurdev@users.noreply.github.com</email>
</author>
<published>2023-09-03T11:08:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=5a8e3089b35e2eca2f896a01410fcdf6ac928278'/>
<id>urn:sha1:5a8e3089b35e2eca2f896a01410fcdf6ac928278</id>
<content type='text'>
</content>
</entry>
<entry>
<title>xml: T4952: improve interface completion helper CLI experience</title>
<updated>2023-03-09T18:40:00+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-03-09T18:39:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=fe4da6288649b32779d30d5672e39cae40e72100'/>
<id>urn:sha1:fe4da6288649b32779d30d5672e39cae40e72100</id>
<content type='text'>
</content>
</entry>
<entry>
<title>conntrack: T4691: lower "tcp max-retrans" upper limit</title>
<updated>2022-09-15T06:46:51+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-09-15T06:46:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=9a38b823b8c94b03448c82a1695943f3e19b92d1'/>
<id>urn:sha1:9a38b823b8c94b03448c82a1695943f3e19b92d1</id>
<content type='text'>
Kernel 5.15.y and newer only support an upper boundary of 255.

vyos@vyos:~$ sudo sysctl -w net.netfilter.nf_conntrack_tcp_max_retrans=255
net.netfilter.nf_conntrack_tcp_max_retrans = 255

vyos@vyos:~$ sudo sysctl -w net.netfilter.nf_conntrack_tcp_max_retrans=256
sysctl: setting key "net.netfilter.nf_conntrack_tcp_max_retrans": Invalid argument</content>
</entry>
<entry>
<title>xml: T4047: use full string match in the regex validator</title>
<updated>2022-04-29T17:51:50+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-04-29T17:51:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=80ecb1b7aaab47edeb355c3b74a763e940d88179'/>
<id>urn:sha1:80ecb1b7aaab47edeb355c3b74a763e940d88179</id>
<content type='text'>
</content>
</entry>
<entry>
<title>conntrack: T3579: make the timeout tree re-usable as XML include</title>
<updated>2022-01-10T21:26:39+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-01-10T21:26:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=fd1b1ff19b0ff852d796e979ab3b596651686f2f'/>
<id>urn:sha1:fd1b1ff19b0ff852d796e979ab3b596651686f2f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>conntrack: T3579: migrate "conntrack ignore" tree to vyos-1x and nftables</title>
<updated>2022-01-10T20:32:29+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-01-09T19:54:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=05b5d09ca70c5cc868f2108df4bcd3fcf6a7d865'/>
<id>urn:sha1:05b5d09ca70c5cc868f2108df4bcd3fcf6a7d865</id>
<content type='text'>
</content>
</entry>
</feed>
