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

    Trying to connect two devices behind two interfaces

    Scheduled Pinned Locked Moved Routing and Multi WAN
    6 Posts 2 Posters 778 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.
    • T
      testcb00
      last edited by testcb00

      Currently I am trying to build a home lab (Proxmox VE as Host), it will have a pfSense VM, a NAS VM and other application VMs. The NAS VM is behind the pfSense VM.

      To protect my data from blackout or voltage surge/drop, I buy a UPS. Since a low end UPS doesn't have a Network Interface, I have to build a NUT server to send the UPS information to my VM and the hypervisor. The NUT server connects to pfSense VM directly. pfSense VM use the NUT package to receive UPS information.

      0644.png

      However, I don't know how to connect my NAS VM to the NUT server. Using pfSense as a NUT forwarder might be an option but the dummy-ups driver might be broken when the service restart.

      Under this condition, is it possible to do routing so that the NAS VM can receive the NUT server?

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

        @testcb00 just create a rule vlan 11 that lets the nas talk to the nut server IP on whatever port that uses, not sure off the top of my head.

        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

        T 1 Reply Last reply Reply Quote 0
        • T
          testcb00 @johnpoz
          last edited by

          @johnpoz

          May you provide a photo of the rule setting?

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

            @testcb00

            So lets say the nut server was on 192.168.9.100, and this was your vlan 11 network interface.

            rule.jpg

            That rule would allow anything on my test network to talk to 192.168.9.100 on tcp or udp port 3493 which I believe is the default port nut uses.

            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

            T 1 Reply Last reply Reply Quote 0
            • T
              testcb00 @johnpoz
              last edited by

              @johnpoz
              Thank you, john.

              I have a rule that pass traffic of LAN net (Some Ports Include NUT 3493) to local subnets (Some Ports Include NUT 3493).

              In Firewall Log, I see the traffic is passed, but I still cannot connect to the NUT server.

              Finally, I find that I have to set up a static route in the NUT server.

              ip route add 192.168.11.0/24 via 192.168.10.2

              This fix the problem. The NAS can ping / connect to the NUT Server.

              However, I find that the NUT server cannot ping to NAS VM (192.168.11.2). It can ping to NIC 2 (192.168.11.1).

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

                @testcb00 said in Trying to connect two devices behind two interfaces:

                Finally, I find that I have to set up a static route in the NUT server.

                You shouldn't have to do that in a normal setup.. That would only make sense if this nut sever was not using pfsense as its gateway.

                If you can ping the pfsense IP of this vlan interface, but not devices on this vlan. That normally screams host firewall not allowing remote IPs, or again this device not using pfsense as its gateway either.

                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.