Port Forwarding not respecting Selected Sources

Comments

7 comments

  • Avatar
    Firewalla

    When you are port forwarding, you can't port forward to firewalla itself, you will need to port forward to a device on the LAN. Is this what you are doing?

    " used the Port Forwarding setting and set source/dest port 443 from my WAN to 192.168.5.1, the IP of the Firewalla in one of my VLANs."

    Is this a new firewalla?

    0
    Comment actions Permalink
  • Avatar
    sedimentary

    Thanks for the quick reply! Yes, I am port forwarding to the Firewalla itself. It does work, because it does route, it just does not respect the selected sources and instead allows everything ingress. This is a Firewalla Gold SE.

    0
    Comment actions Permalink
  • Avatar
    sedimentary

    Here is the port forward itself out of iptables:

    Chain FW_PRERT_PORT_FORWARD (1 references)
    target     prot opt source               destination
    DNAT       tcp  --  anywhere             anywhere             tcp dpt:https to:192.168.5.1:443

    And again, in the Firewalla app I set my personal Cloudflare IPs as a selected source for ingress. It does not appear to have respect that at all, given "source anywhere" in the iptables rule.

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    If you are trying to use raw Linux (iptable), the tables are extremely complex, and we can't guarantee each version they will be the same. 

    0
    Comment actions Permalink
  • Avatar
    sedimentary

    I'm not, I was just showing the rule the Firewalla app created as proof that it is not respecting my target list. This appears to be a bug.

    0
    Comment actions Permalink
  • Avatar
    Firewalla Team

    It's normal that the source is 'anywhere' for the DNAT rule. No worries. If you want to do port forwarding for your Docker, you need to port forward to your Docker IP, not Firewalla.

    0
    Comment actions Permalink
  • Avatar
    sedimentary

    Where can I find the filtering being performed in that case? I can't find the Cloudflare subnets in any table in the rules, and as far as port forwarding, the docker container does not have an IP, it is using the host network so it is residing on the Firewalla interfaces.

    0
    Comment actions Permalink

Please sign in to leave a comment.