diff --git a/Pi-hole---OpenVPN-server.md b/Pi-hole---OpenVPN-server.md index f393bdd..b668a2c 100644 --- a/Pi-hole---OpenVPN-server.md +++ b/Pi-hole---OpenVPN-server.md @@ -123,21 +123,22 @@ sudo iptables -A INPUT -p udp --destination-port 80 -j DROP Your configuration should look like
-Chain INPUT (policy ACCEPT) -num target prot opt source destination -1 ACCEPT tcp -- anywhere anywhere tcp dpt:domain -2 ACCEPT tcp -- anywhere anywhere tcp dpt:http -3 ACCEPT udp -- anywhere anywhere udp dpt:domain -4 ACCEPT udp -- anywhere anywhere udp dpt:http -5 DROP tcp -- anywhere anywhere tcp dpt:domain -6 DROP tcp -- anywhere anywhere tcp dpt:http -7 DROP udp -- anywhere anywhere udp dpt:domain -8 DROP udp -- anywhere anywhere udp dpt:http +sudo iptables -L -v --line-numbers +Chain INPUT (policy ACCEPT 104 packets, 8691 bytes) +num pkts bytes target prot opt in out source destination +1 0 0 ACCEPT tcp -- tun0 any anywhere anywhere tcp dpt:domain +2 0 0 ACCEPT tcp -- tun0 any anywhere anywhere tcp dpt:http +3 0 0 ACCEPT udp -- tun0 any anywhere anywhere udp dpt:domain +4 0 0 ACCEPT udp -- tun0 any anywhere anywhere udp dpt:http +5 0 0 DROP tcp -- any any anywhere anywhere tcp dpt:domain +6 0 0 DROP tcp -- any any anywhere anywhere tcp dpt:http +7 0 0 DROP udp -- any any anywhere anywhere udp dpt:domain +8 0 0 DROP udp -- any any anywhere anywhere udp dpt:http -Chain FORWARD (policy ACCEPT) -num target prot opt source destination +Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) +num pkts bytes target prot opt in out source destination -Chain OUTPUT (policy ACCEPT) -num target prot opt source destination +Chain OUTPUT (policy ACCEPT 83 packets, 11305 bytes) +num pkts bytes target prot opt in out source destinationwhile there might be other rules in your table. Note that the order of the list entries matters! \ No newline at end of file