Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Raspberry Pi/configuration/db/blockedexpressions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(^|[-\?+=/_])(sex|xxx+|playboy?!porn|m.facebook)([-\?+=/_]|$)
1 change: 1 addition & 0 deletions Raspberry Pi/configuration/db/testdomains
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added Raspberry Pi/configuration/db/testdomains.db
Binary file not shown.
42 changes: 42 additions & 0 deletions Raspberry Pi/configuration/dhcpcd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel

# Inform the DHCP server of our hostname for DDNS.
hostname

# Use the hardware address of the interface for the Client ID.
clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
#duid

# Persist interface configuration when dhcpcd exits.
persistent

# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit

# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
# Some interface drivers reset when changing the MTU so disabled by default.
#option interface_mtu

# A ServerID is required by RFC2131.
require dhcp_server_identifier

# Generate Stable Private IPv6 Addresses instead of hardware based ones
slaac private

# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname
denyinterfaces wlan0
8 changes: 8 additions & 0 deletions Raspberry Pi/configuration/dnsmasq.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
interface=wlan0 # Use interface wlan0
listen-address=172.24.1.1 # Explicitly specify the address to listen on
bind-interfaces # Bind to the interface to make sure we aren't sending things elsewhere
server=8.8.8.8 # Forward DNS requests to Google DNS
domain-needed # Don't forward short names
bogus-priv # Never forward addresses in the non-routed address spaces.
dhcp-range=172.24.1.50,172.24.1.150,12h # Assign IP addresses between 172.24.1.50 and 172.24.1.150 with a 12 hour lease time
log-facility=/etc/dnsmasq.log
16 changes: 16 additions & 0 deletions Raspberry Pi/configuration/hostapd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
interface=wlan0
driver=nl80211
ssid=My_Pi3
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=myraspi3b
wpa_key_mgmt=WPA-PSK
#wpa_pairwise=TKIP # You better do not use this weak encryption (only used by old client devices)
rsn_pairwise=CCMP
ieee80211n=1 # 802.11n support
wmm_enabled=1 # QoS support
ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]
25 changes: 25 additions & 0 deletions Raspberry Pi/configuration/interfaces
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
auto eth0

iface lo inet loopback
iface eth0 inet static
address 192.168.137.12
netmask 255.255.255.0
network 192.168.137.0
broadcast 192.168.137.255

allow-hotplug wlan0
iface wlan0 inet static
address 172.24.1.1
netmask 255.255.255.0
network 172.24.1.0
broadcast 172.24.1.255
wireless-power off
20 changes: 20 additions & 0 deletions Raspberry Pi/configuration/rc.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
iptables-restore < /etc/iptables.ipv4.nat
exit 0
Loading