Port forward for two source addresses

Hi.

I have a port forwarding rule on firewall which allows communication on a specified port only from one ip address. But I'd like to allow the communication from two different ip addresses. Specifically the addresses are both public static IP addresses which are completely independent - not from the same subnet.

How to do that? Can I have two source ip addresses in one redirect rule? Do I need two redirect rules for the same port?

Not it looks like this:

config redirect
        option target 'DNAT'
        option src 'wan'
        option dest 'lan'
        option proto 'tcp'
        option src_dport '4444'
        option dest_ip '192.168.89.240'
        option dest_port '4444'
        option name 'Server-4444'
        option src_ip '123.123.123.123'

But I need something like this:

config redirect
        option target 'DNAT'
        option src 'wan'
        option dest 'lan'
        option proto 'tcp'
        option src_dport '4444'
        option dest_ip '192.168.89.240'
        option dest_port '4444'
        option name 'Server-4444'
        option src_ip '123.123.123.123'
        option src_ip '12.12.12.12'

Add one more redirect for the second source IP-address.

1 Like

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