Skip to content

marcoschulte/TeufelHole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Basic Setup

Copy pi image to sd card

diskutil list
diskutil unmountDisk /dev/diskX
sudo dd bs=1m if=/Users/mschulte/Downloads/2020-05-27-raspios-buster-lite-armhf.img of=/dev/rdiskX
sync

Enable SSH

touch /Volumes/boot/ssh
diskutil umountDisk /dev/diskX

Start PI, connect ethernet. Copy your ssh key to pi, default login to pi is pi:raspberry.

Adapt teufelhole-playbook.yml to match your ips, change wifi ssid and password.

Enter raspberry pi IP into ansible/inventories/hosts.

Run ansible playbook

ansible-playbook -i inventories/hosts teufelhole-playbook.yml 

Running docker on pi

Docker will set the default policy for the iptables forward chain to drop. Therefore temporarily we can change the default policy back to ACCEPT

sudo iptables -P FORWARD ACCEPT

Unfortunately this is not persistent. To be fixed after restarts, add following as last rule before COMMIT to /etc/iptables/rules.v4

-A FORWARD -j ACCEPT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published