From d00419f6a244eb0f4ca880fb34296ae979d06e2f Mon Sep 17 00:00:00 2001 From: "mp7462@student.uni-lj.si" Date: Fri, 12 Dec 2014 23:16:36 +0000 Subject: Added some TODOs git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@70 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/openvpn_simple_smb/task.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'kpov_judge/tasks/openvpn_simple_smb') diff --git a/kpov_judge/tasks/openvpn_simple_smb/task.py b/kpov_judge/tasks/openvpn_simple_smb/task.py index ef7d48a..1d639ff 100644 --- a/kpov_judge/tasks/openvpn_simple_smb/task.py +++ b/kpov_judge/tasks/openvpn_simple_smb/task.py @@ -147,9 +147,17 @@ def task(IP_NM, DNS_NM, IP_static, DNS_static): # Must return a non-empty string results['is_VPN_running'] = sA.run('ls /sys/class/net | grep "tun0"'); + # TODO # Check if both clients are connected - # - # + #sB.run('sudo apt-get install nmap --assume-yes') + #sB.run('sudo nmap -sP 10.8.0.0/24') + + # TODO + # Check if both clients are connected to the correct VPN (check if first 24 bits of IP addr are the same as the server's) + + # TODO + # Ping each of the clients (10.8.0.6 and 10.8.0.10, these are default incrementing addresses handed by OpenVPN) + sA.logout() -- cgit v1.2.1