Advertisement
Guest User

Pi-hole Wireless Bridge

a guest
Oct 26th, 2018
2,411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. sudo nano /etc/dhcpcd.conf
  4. ----
  5. interface eth0
  6. static ip_address=192.168.2.1/24
  7.  
  8. sudo nano /etc/sysctl.conf
  9. sudo iptables -t nat -A POSTROUTING -o wlan0 -s 192.168.2.2 -j MASQUERADE
  10. sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
  11. sudo nano /etc/rc.local
  12. ----
  13. iptables-restore < /etc/iptables.ipv4.nat
  14.  
  15. sudo reboot
  16. curl -sSL https://install.pi-hole.net | bash
  17. sudo reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement