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 178.23.85.210 -j DNAT --to 192.168.9.4

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

Is this something you can manage through a redirect rule?

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

Results in:

chain dstnat_lan {
   ip daddr 178.23.85.210 tcp dport 443 counter dnat 192.168.1.4:443 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
Philipp

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