doc:appunti:linux:sa:ipsec
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:ipsec [2016/12/13 11:34] – [Configurazione Debian 8 Jessie] niccolo | doc:appunti:linux:sa:ipsec [2026/09/25 12:36] (current) – [SNAT con Shorewall >= 5.1.0] niccolo | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| hash_algorithm md5; | hash_algorithm md5; | ||
| authentication_method pre_shared_key; | authentication_method pre_shared_key; | ||
| - | dh_group | + | dh_group |
| } | } | ||
| # Verifica l' | # Verifica l' | ||
| Line 39: | Line 39: | ||
| verify_identifier on; | verify_identifier on; | ||
| initial_contact on; | initial_contact on; | ||
| + | lifetime time 86400 seconds; | ||
| + | # | ||
| + | # | ||
| } | } | ||
| Line 45: | Line 48: | ||
| authentication_algorithm hmac_md5, | authentication_algorithm hmac_md5, | ||
| compression_algorithm deflate; | compression_algorithm deflate; | ||
| + | lifetime time 43200 seconds; | ||
| } | } | ||
| </ | </ | ||
| + | **NOTA**: Se non si usa l' | ||
| **/ | **/ | ||
| Line 64: | Line 69: | ||
| systemctl start racoon | systemctl start racoon | ||
| </ | </ | ||
| + | |||
| + | Il traffico IPSEC va ovviamente gestito in maniera opportuna poiché non corrisponde al criterio standard MASQUERADE di iptables. Ad esempio [[# | ||
| In generale si potrà testare la VPN con un ping, a patto di usare gli indirizzi IP sul lato LAN: | In generale si potrà testare la VPN con un ping, a patto di usare gli indirizzi IP sul lato LAN: | ||
| Line 614: | Line 621: | ||
| </ | </ | ||
| - | === Mascheramento (SNAT) === | + | === Mascheramento (SNAT) |
| Si può utilizzare l' | Si può utilizzare l' | ||
| Line 629: | Line 636: | ||
| SNAT all -- 192.168.100.0/ | SNAT all -- 192.168.100.0/ | ||
| </ | </ | ||
| + | |||
| + | ==== SNAT con Shorewall >= 5.1.0 ==== | ||
| + | |||
| + | È possibile fare il source NAT del traffico verso una VPN IPSEC con delle opportune righe nel file **/ | ||
| + | |||
| + | < | ||
| + | # | ||
| + | |||
| + | # Rete locale 10.10.0.0/ | ||
| + | SNAT(192.168.70.1) | ||
| + | SNAT(192.168.70.1) | ||
| + | |||
| + | # Indirizzo punto-punto di tunnel OpenVPN. | ||
| + | SNAT(192.168.70.1) | ||
| + | SNAT(192.168.70.1) | ||
| + | |||
| + | # Rete remota 10.11.12.0/ | ||
| + | SNAT(192.168.70.1) | ||
| + | SNAT(192.168.70.1) | ||
| + | </ | ||
| + | |||
| + | * L' | ||
| + | * L' | ||
| + | * Nell' | ||
| + | |||
| ===== Glossario ===== | ===== Glossario ===== | ||
doc/appunti/linux/sa/ipsec.1481625270.txt.gz · Last modified: by niccolo
