This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## clients.conf -- client configuration directives | |
####################################################################### | |
client localhost { | |
ipaddr = 127.0.0.1 | |
proto = * | |
secret = testing123 | |
require_message_authenticator = no | |
nas_type = other # localhost isn't usually a NAS... | |
limit { | |
max_connections = 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- text -*- | |
## | |
## clients.conf -- client configuration directives | |
## | |
## $Id: 76b300d3c55f1c5c052ddf289b76bf28ac3a370bbb2 $ | |
####################################################################### | |
# | |
# Define RADIUS clients (usually a NAS, Access Point, etc.). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Configuration file for the rlm_files module. | |
# Please see rlm_files(5) manpage for more information. | |
# | |
# This file contains authentication security and configuration | |
# information for each user. Accounting requests are NOT processed | |
# through this file. Instead, see 'accounting', in this directory. | |
# | |
# The first field is the user's name and can be up to | |
# 253 characters in length. This is followed (on the same line) with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Reconfiguring W32Time..." | |
w32tm /config /syncfromflags:MANUAL /manualpeerlist:"0.nl.pool.ntp.org 1.nl.pool.ntp.org" /update | |
echo "" | |
echo "Resyncing clock..." | |
w32tm /resync | |
echo "" | |
echo "Current time source:" | |
w32tm /query /source | |
echo "" | |
echo "All configured time sources:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change the target name and number when you use this Inventory.yaml report. | |
groups: | |
- name: linux | |
config: | |
transport: ssh | |
ssh: | |
user: centos | |
run-as: root | |
private-key: "./student.pem" | |
host-key-check: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Make sure you are in the scripts folder""" | |
"""To change to this folder type cd ~/scripts """ | |
"""This is for the network.py file""" | |
#!/usr/bin/env python3 | |
import requests | |
import socket | |
localhost = socket.gethostbyname('localhost') | |
request = requests.get("http://www.google.com") |