Firewalla Gold - Port forwarding on Docker container port or IP

Comments

7 comments

  • Avatar
    Firewalla

    For docker port mapping, you will need to use docker to map them see this here 

    https://docs.docker.com/config/containers/container-networking/

    After you have done this, you will need to put an allow rule for that particular port.   This will give your traffic a way into the system from the ingress firewall

    0
    Comment actions Permalink
  • Avatar
    Penguin Guru

    Hi,

    I have already setup port mapping by publishing port 2222:2222 and verified the same as below.

    user@firewalla:~# nc -v 192.168.54.1 2222
    Connection to 192.168.54.1 2222 port [tcp/*] succeeded!
    SSH-2.0-OpenSSH_8.3
    ^C

    I need little help to understand where and how to put an allow rule for this particular port. I am looking to allow this port to be accessible from Internet as well as from local network.

    Thank you!!

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    Have tried to open the firewall by allow port 2222 in the rules?

    tap on rules

    tap on + to add rules

    set target to port 2222

    ...

     

    0
    Comment actions Permalink
  • Avatar
    Penguin Guru

    Yes, I tried that as below without any luck.

    tap on rules
    tap on + to add rules
    Action ==> Allow
    Matching ==> Set a Target ==> Report Port ==> 2222
    ON ==> Select a Device ==> All Devices (Not sure if I can try anything else)

    Even after this rule in place, I can't hit port 2222 from internet or LAN.

    Thanks again for your help!!

     

    0
    Comment actions Permalink
  • Avatar
    Graeme Stewart

    That this wasn't ever answered successfully, strongly suggests there's a lack of understanding associated to iptables rules on the firewalla - likely due to complexity. Many folks would appreciate additional details how to get this working.

    1
    Comment actions Permalink
  • Avatar
    Penguin Guru

    Hi Graeme Stewart,

    I do have a working solution. Please let me know your suitable method to contact you.

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Graeme Stewart

    Was able to get it working for the default docker network:

    $ sudo ip route add 172.17.0.0/16 dev docker0 table lan_routable
    2
    Comment actions Permalink

Please sign in to leave a comment.