24 lines
964 B
Plaintext
24 lines
964 B
Plaintext
moon::iptables-restore < /etc/iptables.rules
|
|
carol::iptables-restore < /etc/iptables.rules
|
|
dave::iptables-restore < /etc/iptables.rules
|
|
alice::cat /etc/tnc_config
|
|
carol::cat /etc/tnc_config
|
|
dave::cat /etc/tnc_config
|
|
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::sed -i "s:DEBIAN_VERSION:\`cat /etc/debian_version\`:" /etc/pts/data1.sql
|
|
alice::cd /usr/local/share/strongswan/templates/database/imv; cat tables.sql data.sql /etc/pts/data1.sql | sqlite3 /etc/db.d/config.db
|
|
alice::chgrp -R www-data /etc/db.d/config.db; chmod -R g+w /etc/db.d/config.db
|
|
alice::/var/www/tnc/manage.py setpassword strongSwan strongSwan
|
|
alice::service apache2 start
|
|
alice::ipsec start
|
|
moon::ipsec start
|
|
dave::ipsec start
|
|
carol::ipsec start
|
|
dave::expect-connection home
|
|
dave::ipsec up home
|
|
carol::expect-connection home
|
|
carol::ipsec up home
|
|
carol::sleep 1
|