OpenWrt 22.03.0 - Nextcloud - fw4 ruleset

Dear all :slight_smile:
First of all, thank you for the awesome release and the move to nftables!
As I am using nextcloud (@ DMZ) on my homeserver, I am having a challenge, as the old firewall.user is not working anymore.
I'd like to rewrite the following ruleset from my firewall.user file:
iptables -t nat -A PREROUTING -p tcp --dport 443 -d -j DNAT --to

Many thanks in advance for your feedback and your help! :wink:
Best regards

Is this something you can manage through a redirect rule?

config redirect
        option dest 'wan'
        option target 'DNAT'
        option src 'lan'
        option src_dip ''
        option src_dport '443'
        option dest_ip ''
        option name 'Test'
        list proto 'tcp'

Results in:

chain dstnat_lan {
   ip daddr tcp dport 443 counter dnat comment "!fw4: Test"
1 Like

Hey there dave14305! :blush:
Many thanks for your reply - Your help is appreciated and your answer was the solution :slight_smile:

Have a great day / afternoon / night and best regards

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.