Community discussions

MikroTik App
 
alecutheman
just joined
Topic Author
Posts: 2
Joined: Thu Dec 09, 2021 8:43 pm

Failing to port forward

Thu Dec 09, 2021 8:59 pm

Hi,

I have a pi-hole and pivpn setup with wireguard and I'm having trouble connecting to it from outside my network.

My setup is as follows:
1. pihole/pivpn: 192.168.88.105
2. connected to internet through PPPOE
3. trying to access pivpn through dynamic DNS provided by my ISP since they don't give out static IPs
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf dns-server=192.168.88.105 gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=192.168.88.105
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
add action=dst-nat chain=dstnat comment="pihole stuff 1" dst-address=!192.168.88.105 dst-port=53 in-interface=bridge protocol=udp src-address=!192.168.88.105 to-addresses=192.168.88.105
add action=masquerade chain=srcnat comment="pihole stuff 2" dst-address=192.168.88.105 dst-port=53 protocol=udp src-address=192.168.88.0/24
add action=dst-nat chain=dstnat comment="pivpn port forward" dst-port=51820 in-interface=pppoe-out1 protocol=tcp to-addresses=192.168.88.105
The first NAT entry is something that was setup by default.
The following two entries are me trying to make all the clients on the local network use the PiHole even if they don't want to.
The third is my attempt at port forwarding port 51820 for WireGuard.

Anyone have any idea what I'm doing wrong?

Thanks!
 
alecutheman
just joined
Topic Author
Posts: 2
Joined: Thu Dec 09, 2021 8:43 pm

Re: Failing to port forward

Thu Dec 09, 2021 10:59 pm

I found my mistake: needed to forward UDP

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot], jh1 and 43 guests