2
This commit is contained in:
parent
747122e19c
commit
8f54d608ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user