Wireguard with Pi-Hole: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Created initial page)
 
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 184: Line 184:


8.  Edit the /etc/rc.local script, making the following changes:
8.  Edit the /etc/rc.local script, making the following changes:
* Change the INET_IF to match the public interface name of your system
* Change the '''''INET_IF''''' to match the public interface name of your system
* Change the IP address in LocalIP to that of the public IP of your system
* Change the IP address in '''''LocalIP''''' to that of the public IP of your system
9.  Since our /etc/rc.local script sets the rules needed for Wireguard, disable the Wireguard Road Warrior iptable rules installer:
9.  Since our /etc/rc.local script sets the rules needed for Wireguard, disable the Wireguard Road Warrior iptable rules installer:
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
Line 199: Line 199:


==Disable UFW==
==Disable UFW==
10.  If UFW is installed, disable it with ufw disable
10.  If UFW is installed, disable it:
<syntaxhighlight lang="text">
ufw disable
Firewall stopped and disabled on system startup
</syntaxhighlight>
<syntaxhighlight lang="text">
ufw status
Status: inactive
</syntaxhighlight>
 
==Reboot==
==Reboot==
11.  Reboot
11.  Reboot
Line 232: Line 241:
13. Check to ensure the iptables rules for Wireguard were installed:
13. Check to ensure the iptables rules for Wireguard were installed:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
iptables -L -n -v -t
iptables -L -n -v -t nat
</syntaxhighlight>
</syntaxhighlight>


Navigation menu