<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/migration-scripts/ipsec, branch vyos/1.5dev0</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=vyos%2F1.5dev0</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=vyos%2F1.5dev0'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2023-08-02T09:12:23+00:00</updated>
<entry>
<title>T5427: Fix migration script arguments len expects 2 args</title>
<updated>2023-08-02T09:12:23+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2023-08-02T09:12:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d1923b7b58795f0d9635ae0e8df110f591881bdf'/>
<id>urn:sha1:d1923b7b58795f0d9635ae0e8df110f591881bdf</id>
<content type='text'>
The script's name is always provided as the first argument sys.argv[0]
Expected length for argv is 2 (script itself + config file)

Change: 'if (len(argv) &lt; 1)' to 'if len(argv) &lt; 2'
</content>
</entry>
<entry>
<title>T5195: vyos.util -&gt; vyos.utils package refactoring (#2093)</title>
<updated>2023-07-14T20:18:36+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-07-14T20:18:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d1ca536da448749dff557f13ecae97b124026e96'/>
<id>urn:sha1:d1ca536da448749dff557f13ecae97b124026e96</id>
<content type='text'>
* T5195: move run, cmd, call, rc_cmd helper to vyos.utils.process

* T5195: use read_file and write_file implementation from vyos.utils.file

Changed code automatically using:

find . -type f -not -path '*/\.*' -exec sed -i 's/^from vyos.util import read_file$/from vyos.utils.file import read_file/g' {} +
find . -type f -not -path '*/\.*' -exec sed -i 's/^from vyos.util import write_file$/from vyos.utils.file import write_file/g' {} +

* T5195: move chmod* helpers to vyos.utils.permission

* T5195: use colon_separated_to_dict from vyos.utils.dict

* T5195: move is_systemd_service_* to vyos.utils.process

* T5195: fix boot issues with missing imports

* T5195: move dict_search_* helpers to vyos.utils.dict

* T5195: move network helpers to vyos.utils.network

* T5195: move commit_* helpers to vyos.utils.commit

* T5195: move user I/O helpers to vyos.utils.io</content>
</entry>
<entry>
<title>ipsec: T4916: Fixed migrations script</title>
<updated>2023-03-02T16:46:50+00:00</updated>
<author>
<name>jbordongit</name>
<email>j.bordon@vyos.io</email>
</author>
<published>2023-03-02T16:46:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=2e5dce048ca68679f53be3ae994687f73c8d2db6'/>
<id>urn:sha1:2e5dce048ca68679f53be3ae994687f73c8d2db6</id>
<content type='text'>
* removed unused `re` from imports
* replaced `return_value()` to `return_values()` for `remote-address`
because this is a multi-value configuration node
</content>
</entry>
<entry>
<title>ipsec: T4593: Migrate and remove legacy `include-ipsec` nodes</title>
<updated>2023-02-15T11:57:25+00:00</updated>
<author>
<name>sarthurdev</name>
<email>965089+sarthurdev@users.noreply.github.com</email>
</author>
<published>2023-02-15T11:57:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=45b16864b11ea49087ce4a279e2c0e741a97c0ee'/>
<id>urn:sha1:45b16864b11ea49087ce4a279e2c0e741a97c0ee</id>
<content type='text'>
Not supported with swanctl
</content>
</entry>
<entry>
<title>T4916: Rewrite IPsec peer authentication and psk migration</title>
<updated>2023-01-26T11:28:03+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2023-01-17T11:04:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=7ae0b404ad9fdefa856c7e450b224b47d854a4eb'/>
<id>urn:sha1:7ae0b404ad9fdefa856c7e450b224b47d854a4eb</id>
<content type='text'>
Rewrite strongswan IPsec authentication to reflect structure
from swanctl.conf
The most important change is that more than one local/remote ID in the
same auth entry should be allowed

replace: 'ipsec site-to-site peer &lt;tag&gt; authentication pre-shared-secret xxx'
      =&gt; 'ipsec authentication psk &lt;tag&gt; secret xxx'

set vpn ipsec authentication psk &lt;tag&gt; id '192.0.2.1'
set vpn ipsec authentication psk &lt;tag&gt; id '192.0.2.2'
set vpn ipsec authentication psk &lt;tag&gt; secret 'xxx'
set vpn ipsec site-to-site peer &lt;tag&gt; authentication local-id '192.0.2.1'
set vpn ipsec site-to-site peer &lt;tag&gt; authentication mode 'pre-shared-secret'
set vpn ipsec site-to-site peer &lt;tag&gt; authentication remote-id '192.0.2.2'

Add template filter for Jinja2 'generate_uuid4'
</content>
</entry>
<entry>
<title>T4879: IPsec migration script remote-id for peer name eq address</title>
<updated>2022-12-19T16:32:24+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2022-12-19T16:32:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=34edb6c19fd77af3ec621905e45631e4901ef574'/>
<id>urn:sha1:34edb6c19fd77af3ec621905e45631e4901ef574</id>
<content type='text'>
Migration for "remote-id" where peer is IPv4 or IPv6 address
was missed
It was only migration if peer starts with "@"
It cause that you must manualy set 'remote-id' to get it working
correctly

replace 'vpn ipsec site-to-site peer 192.0.2.2'
     =&gt; 'vpn ipsec site-to-site peer peer_192-0-2-2 authentication remote-id 192.0.2.2'
</content>
</entry>
<entry>
<title>ipsec: T4118: bugfix migration of IKEv2 road-warrior "id" CLI option</title>
<updated>2022-09-20T18:32:57+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-09-20T18:32:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=2eb0ddc54ea8bf50f62cc381eb3356363194c6fd'/>
<id>urn:sha1:2eb0ddc54ea8bf50f62cc381eb3356363194c6fd</id>
<content type='text'>
The "authentication id" option for road-warriors did not get migrated to
the new local-id CLI node. This has been fixed.
</content>
</entry>
<entry>
<title>ipsec: T4118: bugfix config migrator 9-to-10</title>
<updated>2022-09-19T18:29:23+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-09-19T18:29:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=e9c233d65cfffccca131afb4cfb0bcaae0836c39'/>
<id>urn:sha1:e9c233d65cfffccca131afb4cfb0bcaae0836c39</id>
<content type='text'>
When a CLI node is set with a migrator and is not a valueLess node, we need to
specify the "value" using the value= operation in config.set().

This fixes the config load error: vyos.configsession.ConfigSessionError: Invalid
config file (syntax error): error at line 353
</content>
</entry>
<entry>
<title>ipsec: T4118: Change vpn ipsec syntax for IKE ESP and peer</title>
<updated>2022-09-16T11:53:41+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2022-08-10T19:51:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=bd4588827b563022ce5fb98b1345b787b9194176'/>
<id>urn:sha1:bd4588827b563022ce5fb98b1345b787b9194176</id>
<content type='text'>
Migration and Change boolean nodes "enable/disable" to
disable-xxxx, enable-xxxx and just xxx for VPN IPsec
configurations

  - IKE changes:
      - replace 'ipsec ike-group &lt;tag&gt; mobike disable'
             =&gt; 'ipsec ike-group &lt;tag&gt; disable-mobike'
      - replace 'ipsec ike-group &lt;tag&gt; ikev2-reauth yes|no'
             =&gt; 'ipsec ike-group &lt;tag&gt; ikev2-reauth'
  - ESP changes:
      - replace 'ipsec esp-group &lt;tag&gt; compression enable'
             =&gt; 'ipsec esp-group &lt;tag&gt; compression'
  - PEER changes:
      - replace: 'peer &lt;tag&gt; id xxx'
              =&gt; 'peer &lt;tag&gt; local-id xxx'
      - replace: 'peer &lt;tag&gt; force-encapsulation enable'
              =&gt; 'peer &lt;tag&gt; force-udp-encapsulation'
      - add option: 'peer &lt;tag&gt; remote-address x.x.x.x'

Add 'peer &lt;name&gt; remote-address &lt;name&gt;' via migration script
</content>
</entry>
<entry>
<title>configtest: T4382: fix missing delete of 'ipsec-interfaces' node</title>
<updated>2022-05-25T16:42:44+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2022-05-24T18:20:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=12baed897cb3e4037b234cbb0a5def645b47e415'/>
<id>urn:sha1:12baed897cb3e4037b234cbb0a5def645b47e415</id>
<content type='text'>
Migration of bgp-azure-ipsec-gateway and bgp_dmvpn_hub reveals that
migration script ipsec/5-to-6 leaves the empty node 'ipsec-interfaces'
after moving the interface; fix the migration script, as it is not yet
in 1.3.
</content>
</entry>
</feed>
