Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Seeking help to route internet connection to dockers.

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 2 Posters 162 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TYzT
      TYz
      last edited by

      I am currently running Proxmox on a dell Poweredge R320 with a pfSense VM as my router.

      I also have another server running Truenas with dockers installed.

      Due to changes with Truenas catalogs I have had to move my VPN setup from the Truenas server to the pfSense server.

      Currently My VPN is doing what I am requiring it to do, and the rest of the network has a working internet connection.

      I am unable to get a internet connection inside any of my dockers. Truenas has internet access at 192.168.1.200. But the dockers IPs start at 172.16.0.0, so im guessing 172. is being block in the pfsense firewall settings.

      I think I will probably need to allow access for the 172.0.0.0 network in pfSense firewall. But i am unsure on how exactly to do this.

      pfSense VPN/Firewall settings:
      354fded8-4c91-4e15-a4f2-68bea6a25fd7-image.png

      6baf2eae-a93c-4fde-9353-563ea77af738-image.png

      Docker Settings:
      3eb0684c-fb33-49d1-b70b-2e3c653f3779-image.png
      66eb79a5-0cf9-4154-8d76-6564cf59bbd6-image.png

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @TYz
        last edited by

        @TYz your docker IP has really nothing to do with it - its natted, you would have to setup docker to port forward, and then hit your docker hosts IP. Or you would have to setup macvlan

        https://docs.docker.com/network/drivers/macvlan/

        This always the docker to have an IP on the hosts network. Which looks look to just be the default pfsense lan network of 192.168.1.0/24

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        TYzT 1 Reply Last reply Reply Quote 0
        • TYzT
          TYz @johnpoz
          last edited by

          @johnpoz Thanks for your reply.

          The host IP I am using for my Truenas server is 192.168.1.200.
          And the ports are how I have been connecting to each of the wubui's. eg http://192.168.1.200:30050/

          This is working as it has previously, I can access my webui's locally. I can do everything I expected to locally, each app is able to communicate with each other over the local network. But non of apps have internet access.

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @TYz
            last edited by

            @TYz your apps can not get to the internet, or you can not get to your apps from the internet?

            For me for example to get to your docker you would need to forward to that port 30050 at 192.168.1.200 on pfsense.

            I would then go to your actual public IP.. pfsense would forward it to 192.168.1.200, which in turn would be sent to your docker 172.16 address.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.