Hi,
I’ve been trying to setup my network to support IPv6. I can’t seem to figure it out, however. Here’s a quick network diagram to help illustrate things:

I’m trying to set up IPv6 so I can port forward on the webserver and VPN server (preferably others, though) and have outside connectivity, while also remaining secure. The webserver and VPN will remain connected directly to the Hap AC2 directly, on the same ports if that matters. I already have the following config after following this guide, however, at the current moment I do not have internet access on any device (Arch Linux, Debian, Windows 10 with IPv6 enabled). How would I go about doing all of this? I am very new to networking in general, and IPv6 is completely foreign to me. I know it is a very specific use case, and as such, any and all help would be much appreciated. I already have 2 IPv6 capable VPN servers, and can set up a DHCPv6 server if needed to do this.
There is no /ipv6 firewall nat, you just permit the desired protocol/port(s) with /ipv6 firewall filter add add action=accept chain=forward … rules to the public IPv6 address assigned to the web (or other) server before the drop foward from external interface rule. Blocking ICMP is a bad idea, it breaks PMTUD.
Ah. How would I go about giving a device a static IPv6 address if the prefix changes? So far, not only is connectivity entirely broken, but the prefixes change frequently too. That is why I was unsure of how to go about this. Thanks for replying!
How to deal with variable prefixes: http://forum.mikrotik.com/t/updating-the-firewall-when-a-dynamic-ipv6-prefix-delegation-changes/144361/1
How to set a static interface identifier is device dependent. The key words to search for are EUI-64 or, preferably, “tokenized interface identifier”.
Thanks for the help! Definitely going to take a look at this. Hadn’t heard of this before so this is a huge step in the right direction.
I'm really hoping someone can help me Set-up IPV6 as my ISP has changed from IPV4, so now my port-forwarding has stopped working.
# nov/19/2026 09:28:55 by RouterOS 6.49.23
# software id = PSVA-E617
#
# model = 951G-2HnD
# serial number = 642E06148829
/interface bridge
add admin-mac=6C:3B:6B:95:3F:C5 auto-mac=no comment=defconf name=bridge-lan
add name=loopback0
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-g/n channel-width=20/40mhz-XX \
country="south africa" disabled=no distance=indoors frequency=auto \
installation=indoor mode=ap-bridge ssid=MikroTik wireless-protocol=802.11
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk,wpa2-eap mode=\
dynamic-keys supplicant-identity=MikroTik
/ip pool
add name=dhcp ranges=192.168.0.10-192.168.0.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge-lan lease-time=8h name=\
dhcp1
/interface bridge port
add bridge=bridge-lan comment=defconf interface=ether2
add bridge=bridge-lan comment=defconf interface=ether3
add bridge=bridge-lan comment=defconf interface=ether4
add bridge=bridge-lan comment=defconf interface=ether5
add bridge=bridge-lan comment=defconf interface=wlan1
/ip neighbor discovery-settings
set discover-interface-list=all
/interface list member
add comment=defconf interface=bridge-lan list=LAN
add comment=defconf interface=ether1 list=WAN
/ip address
add address=192.168.0.2/24 comment=defconf interface=bridge-lan network=\
192.168.0.0
/ip cloud
set ddns-enabled=yes ddns-update-interval=5m
/ip dhcp-client
add comment=defconf disabled=no interface=ether1
/ip dhcp-server alert
add disabled=no interface=bridge-lan
/ip dhcp-server lease
add address=192.168.0.15 mac-address=DC:A6:32:76:88:7D
add address=192.168.0.19 client-id=1:b4:2e:99:f0:51:55 comment=HOMEPC \
mac-address=B4:2E:99:F0:51:55 server=dhcp1
/ip dhcp-server network
add address=192.168.0.0/24 comment=defconf dns-server=192.168.0.2 gateway=\
192.168.0.2 netmask=24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip firewall filter
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related
add action=accept chain=input comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,untracked in-interface-list=WAN
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1 \
in-interface=loopback0 src-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN
/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="dietpi server" dst-port=28 \
in-interface-list=WAN protocol=tcp to-addresses=192.168.0.15 to-ports=22
add action=dst-nat chain=port-forward comment=cloud33 dst-port=27 \
in-interface-list=WAN protocol=tcp to-addresses=192.168.0.33 to-ports=22
add action=dst-nat chain=port-forward comment=HOMEPC dst-port=3389 \
in-interface-list=WAN protocol=tcp to-addresses=192.168.0.19 to-ports=\
3389
add action=jump chain=dstnat dst-address=!192.168.0.15 dst-address-type=local \
jump-target=port-forward
add action=dst-nat chain=port-forward comment=rustdesk dst-port=21115-21117 \
protocol=tcp to-addresses=192.168.0.15 to-ports=21115-21117
add action=dst-nat chain=port-forward comment=rustdesk dst-port=21116 \
protocol=udp to-addresses=192.168.0.15 to-ports=21116
add action=dst-nat chain=port-forward comment=FTP dst-port=21 protocol=tcp \
to-addresses=192.168.0.15 to-ports=21
add action=dst-nat chain=port-forward comment=http dst-port=80 protocol=tcp \
to-addresses=192.168.0.15 to-ports=80
add action=dst-nat chain=port-forward comment=https dst-port=443 protocol=tcp \
to-addresses=192.168.0.15 to-ports=443
add action=dst-nat chain=port-forward dst-port=3670 in-interface-list=WAN \
protocol=tcp to-addresses=192.168.0.33 to-ports=3670
add action=dst-nat chain=dstnat dst-port=143 in-interface-list=WAN protocol=\
tcp to-addresses=192.168.0.33 to-ports=143
add action=dst-nat chain=dstnat dst-port=30 in-interface-list=WAN protocol=\
tcp to-addresses=192.168.0.33 to-ports=21
add action=masquerade chain=srcnat comment="Hairpin NAT" dst-address=\
192.168.0.15 dst-port=21116 out-interface=bridge-lan protocol=udp \
src-address=192.168.0.0/24
add action=masquerade chain=srcnat comment="Hairpin NAT" dst-address=\
192.168.0.15 dst-port=21,80,443,21115-21117 out-interface=bridge-lan \
protocol=tcp src-address=192.168.0.0/24
/ip service
set telnet disabled=yes
set ftp disabled=yes
set ssh disabled=yes
/ip upnp
set enabled=yes
/ip upnp interfaces
add interface=bridge-lan type=internal
add interface=ether1 type=external
With IPv6 you do not do "port forwarding". You give every internal server a unique address and permit access to it in your firewall. The external connections do not have to be translated, only allowed/denied.
First make the IPv6 working towards outside. It depends on the methods your ISP uses how it has to be configured.