Skip to content

Commit

Permalink
Merge branch 'current' into T4072-extend-bridge-fwall
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-fort authored Jul 31, 2024
2 parents b71702f + cb18347 commit 89efe8e
Show file tree
Hide file tree
Showing 111 changed files with 2,643 additions and 505 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/add-rebase-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Add rebase label

on:
pull_request_target:
types: [synchronize, opened, reopened, labeled, unlabeled]

permissions:
pull-requests: write
contents: read

jobs:
add-rebase-label:
uses: vyos/.github/.github/workflows/add-rebase-label.yml@current
secrets: inherit
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/package-smoketest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: VyOS ISO integration Test

on:
pull_request_target:
pull_request:
branches:
- current
paths:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/trigger-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Trigger PR

on:
pull_request_target:
types:
- closed
branches:
- circinus

jobs:
trigger-PR:
uses: vyos/.github/.github/workflows/trigger-pr.yml@current
with:
source_branch: 'circinus'
target_branch: 'circinus'
secrets:
REMOTE_REPO: ${{ secrets.REMOTE_REPO }}
REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
PAT: ${{ secrets.PAT }}
4 changes: 4 additions & 0 deletions data/config-mode-dependencies/vyos-1x.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@
},
"system_wireless": {
"wireless": ["interfaces_wireless"]
},
"system_option": {
"ip": ["system_ip"],
"ipv6": ["system_ipv6"]
}
}
3 changes: 3 additions & 0 deletions data/templates/accel-ppp/ipoe.config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ net-snmp
{% if limits is vyos_defined %}
connlimit
{% endif %}
{% if extended_scripts is vyos_defined %}
pppd_compat
{% endif %}

[core]
thread-count={{ thread_count }}
Expand Down
3 changes: 3 additions & 0 deletions data/templates/accel-ppp/l2tp.config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ net-snmp
{% if limits is vyos_defined %}
connlimit
{% endif %}
{% if extended_scripts is vyos_defined %}
pppd_compat
{% endif %}

[core]
thread-count={{ thread_count }}
Expand Down
3 changes: 3 additions & 0 deletions data/templates/accel-ppp/pptp.config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ net-snmp
{% if limits is vyos_defined %}
connlimit
{% endif %}
{% if extended_scripts is vyos_defined %}
pppd_compat
{% endif %}

[core]
thread-count={{ thread_count }}
Expand Down
3 changes: 3 additions & 0 deletions data/templates/accel-ppp/sstp.config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ net-snmp
{% if limits is vyos_defined %}
connlimit
{% endif %}
{% if extended_scripts is vyos_defined %}
pppd_compat
{% endif %}

[core]
thread-count={{ thread_count }}
Expand Down
3 changes: 2 additions & 1 deletion data/templates/conntrack/sysctl.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ net.netfilter.nf_conntrack_max = {{ table_size }}
net.ipv4.tcp_max_syn_backlog = {{ tcp.half_open_connections }}
net.netfilter.nf_conntrack_tcp_loose = {{ '1' if tcp.loose is vyos_defined('enable') else '0' }}
net.netfilter.nf_conntrack_tcp_max_retrans = {{ tcp.max_retrans }}
net.netfilter.nf_conntrack_acct = {{ '1' if flow_accounting is vyos_defined else '0' }}
net.netfilter.nf_conntrack_acct = {{ '1' if flow_accounting is vyos_defined else '0' }}
net.netfilter.nf_conntrack_timestamp = {{ '1' if log.timestamp is vyos_defined else '0' }}
10 changes: 10 additions & 0 deletions data/templates/ipsec/swanctl/peer.j2
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
life_packets = {{ vti_esp.life_packets }}
{% endif %}
life_time = {{ vti_esp.lifetime }}s
{% if vti_esp.disable_rekey is vyos_defined %}
rekey_bytes = 0
rekey_packets = 0
rekey_time = 0s
{% endif %}
local_ts = 0.0.0.0/0,::/0
remote_ts = 0.0.0.0/0,::/0
updown = "/etc/ipsec.d/vti-up-down {{ peer_conf.vti.bind }}"
Expand Down Expand Up @@ -108,6 +113,11 @@
life_packets = {{ tunnel_esp.life_packets }}
{% endif %}
life_time = {{ tunnel_esp.lifetime }}s
{% if tunnel_esp.disable_rekey is vyos_defined %}
rekey_bytes = 0
rekey_packets = 0
rekey_time = 0s
{% endif %}
{% if tunnel_esp.mode is not defined or tunnel_esp.mode == 'tunnel' %}
{% if tunnel_conf.local.prefix is vyos_defined %}
{% set local_prefix = tunnel_conf.local.prefix if 'any' not in tunnel_conf.local.prefix else ['0.0.0.0/0', '::/0'] %}
Expand Down
18 changes: 16 additions & 2 deletions data/templates/ipsec/swanctl/remote_access.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
proposals = {{ ike_group[rw_conf.ike_group] | get_esp_ike_cipher | join(',') }}
version = {{ ike.key_exchange[4:] if ike.key_exchange is vyos_defined else "0" }}
send_certreq = no
{% if ike.dead_peer_detection is vyos_defined %}
dpd_timeout = {{ ike.dead_peer_detection.timeout }}
dpd_delay = {{ ike.dead_peer_detection.interval }}
{% endif %}
rekey_time = {{ ike.lifetime }}s
keyingtries = 0
{% if rw_conf.unique is vyos_defined %}
Expand Down Expand Up @@ -44,8 +48,18 @@
children {
ikev2-vpn {
esp_proposals = {{ esp | get_esp_ike_cipher(ike) | join(',') }}
rekey_time = {{ esp.lifetime }}s
rand_time = 540s
{% if esp.life_bytes is vyos_defined %}
life_bytes = {{ esp.life_bytes }}
{% endif %}
{% if esp.life_packets is vyos_defined %}
life_packets = {{ esp.life_packets }}
{% endif %}
life_time = {{ esp.lifetime }}s
{% if esp.disable_rekey is vyos_defined %}
rekey_bytes = 0
rekey_packets = 0
rekey_time = 0s
{% endif %}
dpd_action = clear
inactivity = {{ rw_conf.timeout }}
{% if rw_conf.replay_window is vyos_defined %}
Expand Down
4 changes: 2 additions & 2 deletions data/templates/openvpn/server.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ tls-server
{% if encryption.cipher is vyos_defined %}
cipher {{ encryption.cipher | openvpn_cipher }}
{% endif %}
{% if encryption.ncp_ciphers is vyos_defined %}
data-ciphers {{ encryption.ncp_ciphers | openvpn_ncp_ciphers }}
{% if encryption.data_ciphers is vyos_defined %}
data-ciphers {{ encryption.data_ciphers | openvpn_data_ciphers }}
{% endif %}
{% endif %}
providers default
Expand Down
3 changes: 2 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Depends:
python3-netifaces,
python3-paramiko,
python3-passlib,
python3-pyroute2,
python3-psutil,
python3-pyhumps,
python3-pystache,
Expand Down Expand Up @@ -307,7 +308,7 @@ Depends:
kbd,
# End "system option keyboard-layout"
# For "container"
podman,
podman (>=4.9.5),
netavark,
aardvark-dns,
# iptables is only used for containers now, not the the firewall CLI
Expand Down
20 changes: 0 additions & 20 deletions interface-definitions/include/conntrack/log-common.xml.i

This file was deleted.

26 changes: 26 additions & 0 deletions interface-definitions/include/conntrack/log-protocols.xml.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!-- include start from conntrack/log-protocols.xml.i -->
<leafNode name="icmp">
<properties>
<help>Log connection tracking events for ICMP</help>
<valueless/>
</properties>
</leafNode>
<leafNode name="other">
<properties>
<help>Log connection tracking events for all protocols other than TCP, UDP and ICMP</help>
<valueless/>
</properties>
</leafNode>
<leafNode name="tcp">
<properties>
<help>Log connection tracking events for TCP</help>
<valueless/>
</properties>
</leafNode>
<leafNode name="udp">
<properties>
<help>Log connection tracking events for UDP</help>
<valueless/>
</properties>
</leafNode>
<!-- include end -->
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <include/generic-disable-node.xml.i>
#include <include/firewall/dscp.xml.i>
#include <include/firewall/fragment.xml.i>
#include <include/firewall/match-ipsec.xml.i>
#include <include/firewall/limit.xml.i>
#include <include/firewall/log.xml.i>
#include <include/firewall/log-options.xml.i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <include/firewall/limit.xml.i>
#include <include/firewall/log.xml.i>
#include <include/firewall/log-options.xml.i>
#include <include/firewall/match-ipsec.xml.i>
#include <include/firewall/protocol.xml.i>
#include <include/firewall/nft-queue.xml.i>
#include <include/firewall/recent.xml.i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <include/firewall/limit.xml.i>
#include <include/firewall/log.xml.i>
#include <include/firewall/log-options.xml.i>
#include <include/firewall/match-ipsec.xml.i>
#include <include/firewall/protocol.xml.i>
#include <include/firewall/nft-queue.xml.i>
#include <include/firewall/recent.xml.i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<children>
#include <include/firewall/common-rule-ipv4.xml.i>
#include <include/firewall/inbound-interface.xml.i>
#include <include/firewall/match-ipsec.xml.i>
#include <include/firewall/match-ipsec-in.xml.i>
</children>
</tagNode>
</children>
Expand Down
2 changes: 2 additions & 0 deletions interface-definitions/include/firewall/ipv4-hook-output.xml.i
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
</properties>
<children>
#include <include/firewall/common-rule-ipv4.xml.i>
#include <include/firewall/match-ipsec-out.xml.i>
#include <include/firewall/outbound-interface.xml.i>
</children>
</tagNode>
Expand Down Expand Up @@ -53,6 +54,7 @@
</properties>
<children>
#include <include/firewall/common-rule-ipv4-raw.xml.i>
#include <include/firewall/match-ipsec-out.xml.i>
#include <include/firewall/outbound-interface.xml.i>
</children>
</tagNode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
</properties>
<children>
#include <include/firewall/common-rule-ipv4-raw.xml.i>
#include <include/firewall/match-ipsec-in.xml.i>
#include <include/firewall/inbound-interface.xml.i>
<leafNode name="jump-target">
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<children>
#include <include/firewall/common-rule-ipv6.xml.i>
#include <include/firewall/inbound-interface.xml.i>
#include <include/firewall/match-ipsec.xml.i>
#include <include/firewall/match-ipsec-in.xml.i>
</children>
</tagNode>
</children>
Expand Down
2 changes: 2 additions & 0 deletions interface-definitions/include/firewall/ipv6-hook-output.xml.i
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
</properties>
<children>
#include <include/firewall/common-rule-ipv6.xml.i>
#include <include/firewall/match-ipsec-out.xml.i>
#include <include/firewall/outbound-interface.xml.i>
</children>
</tagNode>
Expand Down Expand Up @@ -53,6 +54,7 @@
</properties>
<children>
#include <include/firewall/common-rule-ipv6-raw.xml.i>
#include <include/firewall/match-ipsec-out.xml.i>
#include <include/firewall/outbound-interface.xml.i>
</children>
</tagNode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
</properties>
<children>
#include <include/firewall/common-rule-ipv6-raw.xml.i>
#include <include/firewall/match-ipsec-in.xml.i>
#include <include/firewall/inbound-interface.xml.i>
<leafNode name="jump-target">
<properties>
Expand Down
21 changes: 21 additions & 0 deletions interface-definitions/include/firewall/match-ipsec-in.xml.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- include start from firewall/match-ipsec-in.xml.i -->
<node name="ipsec">
<properties>
<help>Inbound IPsec packets</help>
</properties>
<children>
<leafNode name="match-ipsec-in">
<properties>
<help>Inbound traffic that was IPsec encapsulated</help>
<valueless/>
</properties>
</leafNode>
<leafNode name="match-none-in">
<properties>
<help>Inbound traffic that was not IPsec encapsulated</help>
<valueless/>
</properties>
</leafNode>
</children>
</node>
<!-- include end -->
21 changes: 21 additions & 0 deletions interface-definitions/include/firewall/match-ipsec-out.xml.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- include start from firewall/match-ipsec-out.xml.i -->
<node name="ipsec">
<properties>
<help>Outbound IPsec packets</help>
</properties>
<children>
<leafNode name="match-ipsec-out">
<properties>
<help>Outbound traffic to be IPsec encapsulated</help>
<valueless/>
</properties>
</leafNode>
<leafNode name="match-none-out">
<properties>
<help>Outbound traffic that will not be IPsec encapsulated</help>
<valueless/>
</properties>
</leafNode>
</children>
</node>
<!-- include end -->
Loading

0 comments on commit 89efe8e

Please sign in to comment.