Test SWID REST API ins tnc/tnccs-20-pdp scenarios
This commit is contained in:
@@ -1,21 +1,28 @@
|
||||
carol::cat /var/log/daemon.log::authentication of 'moon.strongswan.org' with RSA signature successful::YES
|
||||
carol::cat /var/log/daemon.log::PDP server.*aaa.strongswan.org.*is listening on port 271::YES
|
||||
carol::cat /var/log/daemon.log::PB-TNC access recommendation is .*Access Allowed::YES
|
||||
carol::cat /var/log/daemon.log::EAP method EAP_TTLS succeeded, MSK established::YES
|
||||
carol::cat /var/log/daemon.log::CHILD_SA home{1} established.*TS 192.168.0.100/32 === 10.1.0.0/28::YES
|
||||
dave:: cat /var/log/daemon.log::authentication of 'moon.strongswan.org' with RSA signature successful::YES
|
||||
dave:: cat /var/log/daemon.log::PDP server.*aaa.strongswan.org.*is listening on port 271::YES
|
||||
dave:: cat /var/log/daemon.log::collected 372 SWID tags::YES
|
||||
dave:: cat /var/log/daemon.log::PB-TNC access recommendation is .*Quarantined::YES
|
||||
dave:: cat /var/log/daemon.log::EAP method EAP_TTLS succeeded, MSK established::YES
|
||||
dave:: cat /var/log/daemon.log::CHILD_SA home{1} established.*TS 192.168.0.200/32 === 10.1.0.16/28::YES
|
||||
moon:: cat /var/log/daemon.log::received RADIUS attribute Filter-Id: 'allow'::YES
|
||||
moon:: cat /var/log/daemon.log::RADIUS authentication of 'carol' successful::YES
|
||||
moon:: cat /var/log/daemon.log::authentication of '192.168.0.100' with EAP successful::YES
|
||||
carol::cat /var/log/daemon.log::authentication of 'moon.strongswan.org' with RSA signature successful::YES
|
||||
carol::cat /var/log/daemon.log::PDP server.*aaa.strongswan.org.*is listening on port 271::YES
|
||||
carol::cat /var/log/daemon.log::collected 373 SWID tag IDs::YES
|
||||
carol::cat /var/log/daemon.log::collected 1 SWID tag::YES
|
||||
carol::cat /var/log/daemon.log::PB-TNC access recommendation is .*Access Allowed::YES
|
||||
carol::cat /var/log/daemon.log::EAP method EAP_TTLS succeeded, MSK established::YES
|
||||
carol::cat /var/log/daemon.log::CHILD_SA home{1} established.*TS 192.168.0.100/32 === 10.1.0.0/28::YES
|
||||
alice::cat /var/log/daemon.log::user AR identity.*dave.*authenticated by password::YES
|
||||
alice::cat /var/log/daemon.log::IMV 2 handled SWIDT workitem 3: allow - received inventory of 0 SWID tag IDs and 372 SWID tags::YES
|
||||
alice::cat /var/log/daemon.log::user AR identity.*carol.*authenticated by password::YES
|
||||
alice::cat /var/log/daemon.log::IMV 2 handled SWIDT workitem 9: allow - received inventory of 373 SWID tag IDs and 1 SWID tag::YES
|
||||
moon:: cat /var/log/daemon.log::received RADIUS attribute Filter-Id: 'isolate'::YES
|
||||
moon:: cat /var/log/daemon.log::RADIUS authentication of 'dave' successful::YES
|
||||
moon:: cat /var/log/daemon.log::authentication of '192.168.0.200' with EAP successful::YES
|
||||
moon:: ipsec statusall 2>/dev/null::rw-allow.*10.1.0.0/28 === 192.168.0.100/32::YES
|
||||
moon:: cat /var/log/daemon.log::received RADIUS attribute Filter-Id: 'allow'::YES
|
||||
moon:: cat /var/log/daemon.log::RADIUS authentication of 'carol' successful::YES
|
||||
moon:: cat /var/log/daemon.log::authentication of '192.168.0.100' with EAP successful::YES
|
||||
moon:: ipsec statusall 2>/dev/null::rw-isolate.*10.1.0.16/28 === 192.168.0.200/32::YES
|
||||
moon:: ipsec statusall 2>/dev/null::rw-allow.*10.1.0.0/28 === 192.168.0.100/32::YES
|
||||
carol::ping -c 1 PH_IP_ALICE::64 bytes from PH_IP_ALICE: icmp_req=1::YES
|
||||
carol::ping -c 1 PH_IP_VENUS::64 bytes from PH_IP_VENUS: icmp_req=1::NO
|
||||
dave:: ping -c 1 PH_IP_VENUS::64 bytes from PH_IP_VENUS: icmp_req=1::YES
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
WSGIPythonPath /var/www/tnc
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName tnc.strongswan.org
|
||||
ServerAlias tnc
|
||||
ServerAdmin webmaster@localhost
|
||||
|
||||
DocumentRoot /var/www/tnc
|
||||
|
||||
<Directory /var/www/tnc/config>
|
||||
<Files wsgi.py>
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Files>
|
||||
</Directory>
|
||||
|
||||
WSGIScriptAlias / /var/www/tnc/config/wsgi.py
|
||||
WSGIApplicationGroup %{GLOBAL}
|
||||
WSGIPassAuthorization On
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/tnc/error.log
|
||||
LogLevel warn
|
||||
CustomLog ${APACHE_LOG_DIR}/tnc/access.log combined
|
||||
</VirtualHost>
|
||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
||||
[debug]
|
||||
DEBUG=1
|
||||
TEMPLATE_DEBUG=1
|
||||
DEBUG_TOOLBAR=0
|
||||
|
||||
[db]
|
||||
DJANGO_DB_URL=sqlite:////etc/strongTNC/django.db
|
||||
STRONGTNC_DB_URL = sqlite:////etc/pts/config.db
|
||||
|
||||
[localization]
|
||||
LANGUAGE_CODE=en-us
|
||||
TIME_ZONE=Europe/Zurich
|
||||
|
||||
[admins]
|
||||
Your Name: [email protected]
|
||||
|
||||
[security]
|
||||
SECRET_KEY=strongSwan
|
||||
|
||||
@@ -11,7 +11,7 @@ charon {
|
||||
max_message_count = 0
|
||||
}
|
||||
eap-tnc {
|
||||
max_message_count = 20
|
||||
max_message_count = 0
|
||||
}
|
||||
tnc-pdp {
|
||||
server = aaa.strongswan.org
|
||||
@@ -26,4 +26,10 @@ libimcv {
|
||||
debug_level = 3
|
||||
database = sqlite:///etc/pts/config.db
|
||||
policy_script = ipsec imv_policy_manager
|
||||
|
||||
plugins {
|
||||
imv-swid {
|
||||
rest_api_uri = http://admin-user:[email protected]/api/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ charon {
|
||||
max_message_count = 0
|
||||
}
|
||||
eap-tnc {
|
||||
max_message_count = 20
|
||||
max_message_count = 0
|
||||
}
|
||||
tnccs-20 {
|
||||
max_batch_size = 32754
|
||||
@@ -16,4 +16,3 @@ charon {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ charon {
|
||||
max_message_count = 0
|
||||
}
|
||||
eap-tnc {
|
||||
max_message_count = 20
|
||||
max_message_count = 0
|
||||
}
|
||||
tnccs-20 {
|
||||
max_batch_size = 32754
|
||||
@@ -23,6 +23,7 @@ libimcv {
|
||||
push_info = no
|
||||
}
|
||||
imc-swid {
|
||||
swid_directory = /usr/share
|
||||
swid_pretty = no
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ moon::ipsec stop
|
||||
carol::ipsec stop
|
||||
dave::ipsec stop
|
||||
alice::ipsec stop
|
||||
alice::service apache2 stop
|
||||
alice::rm /etc/pts/config.db
|
||||
moon::iptables-restore < /etc/iptables.flush
|
||||
carol::iptables-restore < /etc/iptables.flush
|
||||
|
||||
@@ -8,11 +8,13 @@ carol::echo 0 > /proc/sys/net/ipv4/ip_forward
|
||||
dave::echo aabbccddeeff11223344556677889900 > /var/lib/dbus/machine-id
|
||||
alice::sed -i "s/NOW/`date +%s`/g" /etc/pts/data1.sql
|
||||
alice::cd /usr/local/share/strongswan/templates/database/imv; cat tables.sql data.sql /etc/pts/data1.sql | sqlite3 /etc/pts/config.db
|
||||
alice::chgrp www-data /etc/pts/config.db; chmod g+w /etc/pts/config.db
|
||||
alice::service apache2 start
|
||||
alice::ipsec start
|
||||
moon::ipsec start
|
||||
carol::ipsec start
|
||||
dave::ipsec start
|
||||
carol::ipsec start
|
||||
carol::sleep 1
|
||||
carol::ipsec up home
|
||||
dave::ipsec up home
|
||||
dave::sleep 1
|
||||
carol::ipsec up home
|
||||
carol::sleep 1
|
||||
|
||||
Reference in New Issue
Block a user