Quick RADIUS server setup using LDAP backend for authentication on Juniper devices
Using a vanilla install of Ubuntu Server install required packages:
apt-get install slapd ldap-utils freeradius-ldap
dpkg-reconfigure slapd
| #!/usr/bin/env python | |
| from scapy.all import * | |
| from scapy.contrib.igmp import IGMP | |
| eth = Ether() | |
| iph = IP(src='1.1.1.1', dst='224.0.0.1', proto=2) | |
| igmp = IGMP(type=0x11, gaddr='0.0.0.0', mrtime=10) | |
| igmp.igmpize(iph,eth) | |
| sendp(eth/iph/igmp, iface="vlan0") | |
| print "IGMP General Query Packet Sent" |
| #!/usr/bin/env python | |
| import graphviz | |
| # Define nodes/edges here... | |
| edges = {('Arista249', 'Gi1/0/12'): ('HP830_LSW', 'Ethernet47'), | |
| ('Arista249', 'Gi2/0/22'): ('HP_5500EI', 'Ethernet48'), | |
| ('Arista249', 'Gi1/0/24'): ('HP_5500EI', 'Management1')} | |
| styles = { | |
| 'graph': { |
| log syslog all; | |
| debug protocols off; | |
| debug commands 0; | |
| router id 1.1.1.1; | |
| protocol static rtbh { | |
| route 99.99.99.99/32 blackhole; | |
| route 88.88.88.88/32 blackhole; | |
| } |
| #!/usr/bin/env python | |
| import random | |
| fh = open('shakespeare.txt') | |
| word1 = [] | |
| word2 = [] | |
| word3 = [] | |
| for line in fh: | |
| line = line.rstrip('\r\n') | |
| a = line.split() | |
| word1.append(a[0]) |