Skip to content

Port forwarding (DNAT Access) not working #2

@rimsky57

Description

@rimsky57

Local acces to router working
But NAT Access throu fw to local RDP server not: rules in forward chain not created, only in INPUT chain
External port TCP/50900 (on router), internal TCP/3389 (on RDP server)

After port knok rules appears

        chain input_fwknop {
                ip saddr 93.174.229.63 tcp dport 50900 accept
                return
        }

config

cat /etc/config/fwknopd

config global
        option uci_enabled '1'

config network
        option network 'wan'

config access
        option SOURCE 'ANY'
        option KEY_BASE64 'remove due to security'
        option HMAC_KEY_BASE64 'remove due to security'
        option FW_ACCESS_TIMEOUT '30'
        option DESTINATION 'ANY'
        option CMD_CYCLE_OPEN '/etc/fwknop/cmd-open.sh $SRC $PORT $PROTO'
        option CMD_CYCLE_TIMER '5'
        option CMD_CYCLE_CLOSE '/etc/fwknop/cmd-close.sh $SRC $PORT $PROTO'
        option REQUIRE_SOURCE_ADDRESS 'Y'

config config
        option ENABLE_IPT_FORWARDING 'Y'
        option ENABLE_NAT_DNS 'Y'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions