-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* encryption-algorithm-options fixed * hash-algorithm-options fixed * only delete hashalgopt if match is defined * test files for encalg and hashalg * issue #69 hash-algorithm-option fixed * issue #69 INTERIM hash-algorithm-option fixed * issue #69 doc hash-algorithm-option fixed * issue #69 restore original encryption-algorithm-option reset causing error * issue #69 fix encryption-algorithm-option reset * typo * issue #69 - working with lxml <= 5.1.0 * issue #69 - working with lxml <= 5.1.0 * issue #69 - updated test for fix-encalg-and-hashalg * issue #69 - cleanup fix-encalg-and-hashalg * issue #69 - use lxml 5.1.0 for tests * issue #69 - linted * Revert "issue #69 - updated test for fix-encalg-and-hashalg" This reverts commit 777fcc7. --------- Co-authored-by: Klaus Zerwes <[email protected]>
- Loading branch information
Showing
6 changed files
with
368 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<opnsense> | ||
<system> | ||
</system> | ||
<ipsec> | ||
<enable>1</enable> | ||
<ipsec_asn>1</ipsec_asn> | ||
<ipsec_chd>1</ipsec_chd> | ||
<passthrough_networks>192.168.0.0/24</passthrough_networks> | ||
<phase1> | ||
<ikeid>1</ikeid> | ||
<descr>s2s test</descr> | ||
<iketype>ikev1</iketype> | ||
<interface>wan</interface> | ||
<mode>main</mode> | ||
<protocol>inet</protocol> | ||
<myid_type>auto</myid_type> | ||
<myid_data>localhost</myid_data> | ||
<peerid_type>fqdn</peerid_type> | ||
<peerid_data>fw02</peerid_data> | ||
<lifetime>28800</lifetime> | ||
<certref>61546da45fbc3</certref> | ||
<caref>5ef9c5881c158</caref> | ||
<authentication_method>rsasig</authentication_method> | ||
<nat_traversal>on</nat_traversal> | ||
<auto>start</auto> | ||
<dhgroup>2</dhgroup> | ||
<hash-algorithm>md5,sha1</hash-algorithm> | ||
<private-key/> | ||
<remote-gateway>fw02</remote-gateway> | ||
<dpd_delay>10</dpd_delay> | ||
<dpd_maxfail>5</dpd_maxfail> | ||
<dpd_action>restart</dpd_action> | ||
<encryption-algorithm> | ||
<name>aes</name> | ||
<keylen>256</keylen> | ||
</encryption-algorithm> | ||
</phase1> | ||
<phase2> | ||
<ikeid>1</ikeid> | ||
<uniqid>eea1dcb2e051a</uniqid> | ||
<disabled>1</disabled> | ||
<mode>tunnel</mode> | ||
<pfsgroup>2</pfsgroup> | ||
<lifetime>3600</lifetime> | ||
<protocol>esp</protocol> | ||
<pinghost>10.0.0.1</pinghost> | ||
<descr>10.0.0.0/12</descr> | ||
<reqid>1</reqid> | ||
<localid> | ||
<type>lan</type> | ||
</localid> | ||
<remoteid> | ||
<type>network</type> | ||
<address>10.0.0.0</address> | ||
<netbits>12</netbits> | ||
</remoteid> | ||
<encryption-algorithm-option> | ||
<name>aes192</name> | ||
</encryption-algorithm-option> | ||
<encryption-algorithm-option> | ||
<name>aes128gcm16</name> | ||
</encryption-algorithm-option> | ||
<hash-algorithm-option>hmac_sha256</hash-algorithm-option> | ||
<hash-algorithm-option>hmac_sha512</hash-algorithm-option> | ||
</phase2> | ||
<phase2> | ||
<ikeid>1</ikeid> | ||
<uniqid>e471b7299c8c1</uniqid> | ||
<mode>tunnel</mode> | ||
<pfsgroup>2</pfsgroup> | ||
<lifetime>3600</lifetime> | ||
<protocol>esp</protocol> | ||
<pinghost>10.128.0.1</pinghost> | ||
<descr>10.128.0.0/12</descr> | ||
<reqid>2</reqid> | ||
<localid> | ||
<type>lan</type> | ||
</localid> | ||
<remoteid> | ||
<type>network</type> | ||
<address>10.128.0.0</address> | ||
<netbits>12</netbits> | ||
</remoteid> | ||
<encryption-algorithm-option> | ||
<name>aes192</name> | ||
</encryption-algorithm-option> | ||
<encryption-algorithm-option> | ||
<name>aes128gcm16</name> | ||
</encryption-algorithm-option> | ||
<hash-algorithm-option>hmac_sha256</hash-algorithm-option> | ||
<hash-algorithm-option>hmac_sha512</hash-algorithm-option> | ||
</phase2> | ||
<phase2> | ||
<ikeid>1</ikeid> | ||
<uniqid>e98f78c414ece</uniqid> | ||
<mode>tunnel</mode> | ||
<pfsgroup>2</pfsgroup> | ||
<lifetime>3600</lifetime> | ||
<protocol>esp</protocol> | ||
<pinghost>10.224.0.1</pinghost> | ||
<descr>10.224.0.0/12</descr> | ||
<reqid>3</reqid> | ||
<localid> | ||
<type>lan</type> | ||
</localid> | ||
<remoteid> | ||
<type>network</type> | ||
<address>10.224.0.0</address> | ||
<netbits>12</netbits> | ||
</remoteid> | ||
<encryption-algorithm-option> | ||
<name>aes192</name> | ||
</encryption-algorithm-option> | ||
<encryption-algorithm-option> | ||
<name>aes128gcm16</name> | ||
</encryption-algorithm-option> | ||
<hash-algorithm-option>hmac_sha256</hash-algorithm-option> | ||
<hash-algorithm-option>hmac_sha512</hash-algorithm-option> | ||
</phase2> | ||
</ipsec> | ||
</opnsense> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<opnsense> | ||
<system> | ||
</system> | ||
<ipsec> | ||
<enable>1</enable> | ||
<ipsec_asn>1</ipsec_asn> | ||
<ipsec_chd>1</ipsec_chd> | ||
<passthrough_networks>192.168.0.0/24</passthrough_networks> | ||
<phase1> | ||
<ikeid>1</ikeid> | ||
<descr>s2s test</descr> | ||
<iketype>ikev1</iketype> | ||
<interface>wan</interface> | ||
<mode>main</mode> | ||
<protocol>inet</protocol> | ||
<myid_type>auto</myid_type> | ||
<myid_data>localhost</myid_data> | ||
<peerid_type>fqdn</peerid_type> | ||
<peerid_data>fw02</peerid_data> | ||
<lifetime>28800</lifetime> | ||
<certref>61546da45fbc3</certref> | ||
<caref>5ef9c5881c158</caref> | ||
<authentication_method>rsasig</authentication_method> | ||
<nat_traversal>on</nat_traversal> | ||
<auto>start</auto> | ||
<dhgroup>2</dhgroup> | ||
<hash-algorithm>md5,sha1</hash-algorithm> | ||
<private-key/> | ||
<remote-gateway>fw02</remote-gateway> | ||
<dpd_delay>10</dpd_delay> | ||
<dpd_maxfail>5</dpd_maxfail> | ||
<dpd_action>restart</dpd_action> | ||
<encryption-algorithm> | ||
<name>aes</name> | ||
<keylen>256</keylen> | ||
</encryption-algorithm> | ||
</phase1> | ||
<phase2> | ||
<ikeid>1</ikeid> | ||
<uniqid>eea1dcb2e051a</uniqid> | ||
<disabled>1</disabled> | ||
<mode>tunnel</mode> | ||
<pfsgroup>2</pfsgroup> | ||
<lifetime>3600</lifetime> | ||
<protocol>esp</protocol> | ||
<pinghost>10.0.0.1</pinghost> | ||
<descr>10.0.0.0/12</descr> | ||
<reqid>1</reqid> | ||
<localid> | ||
<type>lan</type> | ||
</localid> | ||
<remoteid> | ||
<type>network</type> | ||
<address>10.0.0.0</address> | ||
<netbits>12</netbits> | ||
</remoteid> | ||
<encryption-algorithm-option> | ||
<name>aes256</name> | ||
</encryption-algorithm-option> | ||
<hash-algorithm-option>hmac_sha1</hash-algorithm-option> | ||
</phase2> | ||
<phase2> | ||
<ikeid>1</ikeid> | ||
<uniqid>e471b7299c8c1</uniqid> | ||
<mode>tunnel</mode> | ||
<pfsgroup>2</pfsgroup> | ||
<lifetime>3600</lifetime> | ||
<protocol>esp</protocol> | ||
<pinghost>10.128.0.1</pinghost> | ||
<descr>10.128.0.0/12</descr> | ||
<reqid>2</reqid> | ||
<localid> | ||
<type>lan</type> | ||
</localid> | ||
<remoteid> | ||
<type>network</type> | ||
<address>10.128.0.0</address> | ||
<netbits>12</netbits> | ||
</remoteid> | ||
<encryption-algorithm-option> | ||
<name>aes256</name> | ||
</encryption-algorithm-option> | ||
<hash-algorithm-option>hmac_sha1</hash-algorithm-option> | ||
</phase2> | ||
<phase2> | ||
<ikeid>1</ikeid> | ||
<uniqid>e98f78c414ece</uniqid> | ||
<mode>tunnel</mode> | ||
<pfsgroup>2</pfsgroup> | ||
<lifetime>3600</lifetime> | ||
<protocol>esp</protocol> | ||
<pinghost>10.224.0.1</pinghost> | ||
<descr>10.224.0.0/12</descr> | ||
<reqid>3</reqid> | ||
<localid> | ||
<type>lan</type> | ||
</localid> | ||
<remoteid> | ||
<type>network</type> | ||
<address>10.224.0.0</address> | ||
<netbits>12</netbits> | ||
</remoteid> | ||
<encryption-algorithm-option> | ||
<name>aes256</name> | ||
</encryption-algorithm-option> | ||
<hash-algorithm-option>hmac_sha1</hash-algorithm-option> | ||
</phase2> | ||
</ipsec> | ||
</opnsense> |
Oops, something went wrong.