Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get update
- sudo apt-get upgrade
- sudo nano /etc/dhcpcd.conf
- ----
- interface eth0
- static ip_address=192.168.2.1/24
- sudo nano /etc/sysctl.conf
- sudo iptables -t nat -A POSTROUTING -o wlan0 -s 192.168.2.2 -j MASQUERADE
- sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
- sudo nano /etc/rc.local
- ----
- iptables-restore < /etc/iptables.ipv4.nat
- sudo reboot
- curl -sSL https://install.pi-hole.net | bash
- sudo reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement