This commit is contained in:
Eliezer Croitoru 2024-06-22 23:41:53 +03:00
parent 747122e19c
commit 8f54d608ce

View File

@ -84,7 +84,6 @@ config << "/ip ipsec identity\nadd peer=#{phase1_profile_name} secret=\"#{pre_sh
config << "/ip ipsec proposal\nadd name=\"#{phase2_profile_name}\" auth-algorithms=\"#{phase2_hash_algorithms.join(',')}\" enc-algorithms=\"#{phase2_encryption_algorithms.join(',')}\" pfs-group=#{pfs_group}\n\n"
config << "/ip ipsec policy\nadd disabled=yes dst-address=#{remote_address} peer=#{phase1_profile_name} proposal=#{phase2_profile_name} src-address=#{phase2_local_address} tunnel=yes\n\n"
# Output configuration as plain text without download
cgi.header('type' => 'text/plain')
puts "Content-Type: text/plain"
puts
puts config