Hi all,
I’ve been struggling with a problem for days now.
It looks like this:
pppoe (WANIP Deutsche Telekom)
|
RB3011 192.168.247.30
| 192.168.247.0/24
Ubiquiti UDM 192.168.247.1
| 192.168.119.0/24
Nextcloud 192.168.119.7
These are the filter and NAT rules:
/ip firewall filter
add action=accept chain=input comment=“defconf: accept established,related,untracked” connection-state=
established,related,untracked in-interface=ether1
add action=drop chain=input 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
add action=drop chain=input comment=“defconf: drop all not coming from LAN” in-interface-list=!LAN
add action=accept chain=forward comment=“Allow dst-nat forward connection state new” connection-nat-state=dstnat connection-state=
new in-interface-list=WAN
add action=accept chain=forward comment=“nextcloud dst-nat” dst-address=192.168.247.1 dst-port=443 in-interface=ether1 protocol=
tcp
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=forward comment=“defconf: accept established,related, untracked” connection-state=
established,related,untracked
add action=drop chain=forward comment=“defconf: drop invalid” connection-state=invalid
add action=drop chain=forward comment=“defconf: drop all from WAN not DSTNATed” connection-nat-state=!dstnat connection-state=new
in-interface-list=WAN
/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=“Forwarding rule” disabled=yes dst-address=WANIP dst-port=443 in-interface=bridge
protocol=tcp to-addresses=192.168.247.1 to-ports=443
add action=dst-nat chain=dstnat disabled=yes dst-address=WANIP dst-port=10002 in-interface=ether1 protocol=tcp
to-addresses=192.168.247.1 to-ports=10002
add action=dst-nat chain=dstnat comment=nextcloud dst-address=WANIP dst-port=443 in-interface=ether1 protocol=tcp
to-addresses=192.168.247.1 to-ports=443
So I guess you already know, what the problem is - the portforwarding doesn’t work. ![]()
What am I doing wrong!?
Thank you for your help in advance.
Best,
Markus