testing: Added swanctl/manual_prio scenario
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# /etc/strongswan.conf - strongSwan configuration file
|
||||
|
||||
swanctl {
|
||||
load = pem pkcs1 x509 revocation constraints pubkey openssl random
|
||||
}
|
||||
|
||||
charon {
|
||||
load = sha1 sha2 md5 aes des hmac pem pkcs1 x509 revocation constraints pubkey gmp random nonce curl kernel-netlink socket-default updown vici
|
||||
|
||||
start-scripts {
|
||||
creds = /usr/local/sbin/swanctl --load-creds
|
||||
conns = /usr/local/sbin/swanctl --load-conns
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
connections {
|
||||
|
||||
home {
|
||||
local_addrs = 192.168.0.100
|
||||
remote_addrs = 192.168.0.1
|
||||
|
||||
local {
|
||||
auth = pubkey
|
||||
certs = carolCert.pem
|
||||
id = [email protected]
|
||||
}
|
||||
remote {
|
||||
auth = pubkey
|
||||
id = moon.strongswan.org
|
||||
}
|
||||
children {
|
||||
home {
|
||||
remote_ts = 10.1.0.0/16
|
||||
priority = 2
|
||||
|
||||
esp_proposals = aes128gcm128-modp3072
|
||||
}
|
||||
}
|
||||
version = 2
|
||||
proposals = aes128-sha256-modp3072
|
||||
}
|
||||
|
||||
shunts {
|
||||
|
||||
children {
|
||||
pass-ssh-in {
|
||||
local_ts = 0.0.0.0/0[tcp/ssh]
|
||||
remote_ts = 0.0.0.0/0[tcp]
|
||||
priority = 1
|
||||
|
||||
mode = pass
|
||||
start_action = trap
|
||||
}
|
||||
pass-ssh-out {
|
||||
local_ts = 0.0.0.0/0[tcp]
|
||||
remote_ts = 0.0.0.0/0[tcp/ssh]
|
||||
priority = 1
|
||||
|
||||
mode = pass
|
||||
start_action = trap
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
# /etc/strongswan.conf - strongSwan configuration file
|
||||
|
||||
swanctl {
|
||||
load = pem pkcs1 x509 revocation constraints pubkey openssl random
|
||||
}
|
||||
|
||||
charon {
|
||||
load = sha1 sha2 md5 aes des hmac pem pkcs1 x509 revocation constraints pubkey gmp random nonce curl kernel-netlink socket-default updown vici
|
||||
|
||||
start-scripts {
|
||||
creds = /usr/local/sbin/swanctl --load-creds
|
||||
conns = /usr/local/sbin/swanctl --load-conns
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
connections {
|
||||
|
||||
home {
|
||||
local_addrs = 192.168.0.200
|
||||
remote_addrs = 192.168.0.1
|
||||
|
||||
local {
|
||||
auth = pubkey
|
||||
certs = daveCert.pem
|
||||
id = [email protected]
|
||||
}
|
||||
remote {
|
||||
auth = pubkey
|
||||
id = moon.strongswan.org
|
||||
}
|
||||
children {
|
||||
home {
|
||||
remote_ts = 10.1.0.0/16
|
||||
|
||||
updown = /usr/local/libexec/ipsec/_updown iptables
|
||||
esp_proposals = aes128gcm128-modp3072
|
||||
}
|
||||
}
|
||||
version = 2
|
||||
proposals = aes128-sha256-modp3072
|
||||
}
|
||||
|
||||
shunts {
|
||||
|
||||
children {
|
||||
pass-ssh-in {
|
||||
local_ts = 0.0.0.0/0[tcp/ssh]
|
||||
remote_ts = 0.0.0.0/0[tcp]
|
||||
priority = 1
|
||||
|
||||
mode = pass
|
||||
start_action = trap
|
||||
}
|
||||
pass-ssh-out {
|
||||
local_ts = 0.0.0.0/0[tcp]
|
||||
remote_ts = 0.0.0.0/0[tcp/ssh]
|
||||
priority = 1
|
||||
|
||||
mode = pass
|
||||
start_action = trap
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
# /etc/strongswan.conf - strongSwan configuration file
|
||||
|
||||
swanctl {
|
||||
load = pem pkcs1 x509 revocation constraints pubkey openssl random
|
||||
}
|
||||
|
||||
charon {
|
||||
load = sha1 sha2 md5 aes des hmac pem pkcs1 x509 revocation constraints pubkey gmp random nonce curl kernel-netlink socket-default updown vici
|
||||
|
||||
start-scripts {
|
||||
creds = /usr/local/sbin/swanctl --load-creds
|
||||
conns = /usr/local/sbin/swanctl --load-conns
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
connections {
|
||||
|
||||
rw {
|
||||
local_addrs = 192.168.0.1
|
||||
|
||||
local {
|
||||
auth = pubkey
|
||||
certs = moonCert.pem
|
||||
id = moon.strongswan.org
|
||||
}
|
||||
remote {
|
||||
auth = pubkey
|
||||
}
|
||||
children {
|
||||
net {
|
||||
local_ts = 10.1.0.0/16
|
||||
priority = 2
|
||||
interface = eth0
|
||||
|
||||
esp_proposals = aes128gcm128-modp3072
|
||||
}
|
||||
}
|
||||
version = 2
|
||||
proposals = aes128-sha256-modp3072
|
||||
}
|
||||
|
||||
shunts {
|
||||
|
||||
children {
|
||||
drop-eth0-default {
|
||||
local_ts = 0.0.0.0/0
|
||||
remote_ts = 0.0.0.0/0
|
||||
interface = eth0
|
||||
priority = 4
|
||||
|
||||
mode = drop
|
||||
start_action = trap
|
||||
}
|
||||
pass-ssh-in {
|
||||
local_ts = 0.0.0.0/0[tcp/ssh]
|
||||
remote_ts = 0.0.0.0/0[tcp]
|
||||
priority = 1
|
||||
|
||||
mode = pass
|
||||
start_action = trap
|
||||
}
|
||||
pass-ssh-out {
|
||||
local_ts = 0.0.0.0/0[tcp]
|
||||
remote_ts = 0.0.0.0/0[tcp/ssh]
|
||||
priority = 1
|
||||
|
||||
mode = pass
|
||||
start_action = trap
|
||||
}
|
||||
pass-http-out {
|
||||
local_ts = 0.0.0.0/0[tcp]
|
||||
remote_ts = 192.168.0.150[tcp/http]
|
||||
priority = 1
|
||||
|
||||
mode = pass
|
||||
start_action = trap
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user