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

    Pfsense on Virtualbox's Guest + Emby(Plex) on VirtualBox's Host

    Scheduled Pinned Locked Moved General pfSense Questions
    30 Posts 2 Posters 2.6k Views 2 Watching
    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.
    • D Offline
      didiosn
      last edited by

      They use the captive portal that i've enabled for them.
      I've not test port forward because I can't even reach that IP with port 80.
      Tell me how to do the port forward, I'll try.

      Thank You.

      1 Reply Last reply Reply Quote 0
      • D Offline
        didiosn
        last edited by

        I confirm access to Emby, if Emby is in LAN (192.168.100.), but if it's in no access WAN (192.168.1.).
        there is no way to access ip 192.168.1.* from 192.168.100.* ?

        Plz help.

        1 Reply Last reply Reply Quote 0
        • stephenw10S Offline
          stephenw10 Netgate Administrator
          last edited by stephenw10

          So the clients trying to access it are coming from the 192.168.100.0/24 subnet? Is that not internal to VBox only?

          Which subnet is inside VBox? Usually it would be the LAN.

          Steve

          1 Reply Last reply Reply Quote 0
          • D Offline
            didiosn
            last edited by

            Yes they are coming from 192.168.100.0/24 subnet and is internal to the virtualBox. and that subnet is the LAN. You get it correctly.

            1 Reply Last reply Reply Quote 0
            • D Offline
              didiosn
              last edited by

              I've tried to access via internet (Emby) but I think Pfsense do not like loopback. I'm out of ideas.

              1 Reply Last reply Reply Quote 0
              • stephenw10S Offline
                stephenw10 Netgate Administrator
                last edited by

                pfSense will route traffic from LAN to WAN by default and will NAT the traffic to the WAN IP. Any host on LAN should be able to connect to 192.168.1.68 as long as there is a firewall rule on LAN to allow it.

                I'm still unsure how your 'friends' are connecting from the LAN subnet when it's an internal VBox subnet.

                Steve

                1 Reply Last reply Reply Quote 0
                • D Offline
                  didiosn
                  last edited by

                  In the config of my VBox, I've enabled 2 Network adapters, the first one is in brigde mode with the wifi physical adapter, and the second with the RJ45 physical adapter. So Internet is coming from the wifi and the RJ45 is the LAN for my friends. RJ45 is connnected to a router as simple AP (DHCP disabled).

                  Maybe my config is not good for such thing ? But it's working to share internet access.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S Offline
                    stephenw10 Netgate Administrator
                    last edited by

                    Ah OK, I see now!

                    So, yes, that should work with the default config. The Emby server is WAN side so pfSense will route/NAT all LAN traffic to it as long as the firewall rules allow it.

                    If it is not reachable it's probably a problem with the captive portal setup.

                    Check for blocked traffic in the firewall logs.

                    Check for states opened to the Emby server in Diag > States.

                    If you're using policy routing you might be bypassing local networks which would break that.

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      didiosn
                      last edited by

                      I've tried again just now, see what log shows me :
                      7ae0a304-c1b9-4602-99a9-e07fdfd15e08-image.png

                      IP 192.168.1.65 is the target, but as you see, it's blocked.
                      I've checked also states, i've seen no reference to that IP.

                      Thank you.

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S Offline
                        stephenw10 Netgate Administrator
                        last edited by stephenw10

                        That's incoming netbios broadcasts from Emby. That should be blocked on WAN.

                        If you see no states when you are trying to connect to it from LAN then you have something misconfigured. Probably captive portal. Maybe DNS if you are not trying to connect by IP address.

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          didiosn
                          last edited by

                          I know its a long image, but please let me show you my CP settings :
                          3ef375d6-5aa1-42be-aeb2-ff865ef90869-image.png

                          I'm using DNS Resolver :
                          ed2473c2-668e-4e60-b8f0-02f2e8c21a0f-image.png

                          What can I change ? since I'm using Pfsense, I did not touch DNS settings.

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S Offline
                            stephenw10 Netgate Administrator
                            last edited by

                            What are your LAN firewall rules?

                            How exactly are clients trying to connect to Emby?

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              didiosn
                              last edited by

                              here is my LAN firewall rules :
                              b78b378a-b5f8-4cf5-b4ae-3b14f2aac722-image.png

                              I will like to let them access my media server after logged via the Captive Portal.
                              For now they're just using it for internet.

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S Offline
                                stephenw10 Netgate Administrator
                                last edited by

                                Right, but how are they trying to access it? What error are they seeing?

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  didiosn
                                  last edited by

                                  The browser says Adress Unreachable...

                                  1 Reply Last reply Reply Quote 0
                                  • stephenw10S Offline
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    What address are they trying to go to? What does Emby expect?

                                    If there are no states it looks like the clients are not even trying so I would guess what's happening is clients are tryting to fo to emby.local.lan or some such but that is not resolvable behind pfSense.

                                    Steve

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      didiosn
                                      last edited by

                                      Emby is on 192.168.1.65:8960 so I tried to connect to it from browser with that IP, no hostname. About states, I swear that I've tried with my phone. Clients are not trying because Its not working yet to tell them.
                                      How can I make that IP to be resolvable behind pfsense ? Its too weird for me...

                                      1 Reply Last reply Reply Quote 0
                                      • stephenw10S Offline
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        OK if you're trying to connect by IP address that should work. pfSense will route that traffic to the WAN because it is in that subnet directly.
                                        It sounds like maybe clients are not using pfSense as the route to that subnet? You should be seeing states opening from clients if they were.

                                        Steve

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          didiosn
                                          last edited by

                                          Hello, Thank you for all our replies. I'm on the way o fix my issue but please, is that a way to hide the access to an IP (LAN) behind the captive portal ?

                                          1 Reply Last reply Reply Quote 0
                                          • stephenw10S Offline
                                            stephenw10 Netgate Administrator
                                            last edited by

                                            Yes, you can just block/reject connections from that IP to the server using a firewall rule on WAN. Just put of above the pass rule(s).

                                            Steve

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