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

    Access 4G modem GUI behind pfsense over vpn

    Scheduled Pinned Locked Moved OpenVPN
    12 Posts 3 Posters 881 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.
    • I
      ismurdegus
      last edited by

      Hey guys, hope everyone is well and safe!

      I need access the GUI interface of a modem that provide internet to my parents home.
      My home and my parents is linked with a OPENVPN on two Pfsense router.

      From my home I can have access to every network device locate to my parents house without problem.
      I would like to manage the modem as well.... .

      The network look like:

      SITE1
      LAN : 192.168.3.1
      OpenVpn Server - VPN TUNNEL IP 10.0.8.1/24

      SITE2
      LAN: 192.168.2.1
      OpenVpn Client - VPN TUNNEL IP 10.0.8.2/24
      WAN: 192.168.5.5 (STATIC IP)
      4G MODEM: 192.168.5.1

      I did some test as well using the Pfsense PING utility. I tried to PING the 4G Modem IP 192.168.5.1:

      SITE2
      From LAN: PING Yes.
      From VPN SITE-to-SITE: PING Yes.

      SITE1
      From LAN: PING No.
      From VPN SITE-to-SITE: PING Yes.

      This is the tracert from my computer that is locate on SITE1

      C:\Users\Dell-Desk>tracert 192.168.5.1

      Tracing route to 192.168.5.1 over a maximum of 30 hops

      1 <1 ms <1 ms 2 ms 192.168.3.1
      2 286 ms 286 ms 285 ms 10.0.8.2
      3 * * * Request timed out.
      4 * * * Request timed out.
      5 * * * Request timed out.
      6 * * * Request timed out.

      Anyone can give me some help with it?

      Thanks

      Bob.DigB 1 Reply Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @ismurdegus
        last edited by

        @ismurdegus Have you tried System - Routing - Static Routes?

        1 Reply Last reply Reply Quote 0
        • I
          ismurdegus
          last edited by

          Nop, I didn't.....
          If I can be honest,I am not an super expert with Pfsense

          Can you give me some help please?

          Thanks

          Bob.DigB 1 Reply Last reply Reply Quote 0
          • Bob.DigB
            Bob.Dig LAYER 8 @ismurdegus
            last edited by Bob.Dig

            @ismurdegus said in Access 4G modem GUI behind pfsense over vpn:

            If I can be honest,I am not an super expert with Pfsense

            Me either. 😆

            Maybe something like this?
            123.PNG

            Give it a try at your place (but with your VPN-Connection) and if it doesn't work, I shut my mouth.

            1 Reply Last reply Reply Quote 0
            • I
              ismurdegus
              last edited by ismurdegus

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • I
                ismurdegus
                last edited by

                On my system, I don't have the OPENVPN for GATEWAY

                Capture.PNG

                N 1 Reply Last reply Reply Quote 0
                • N
                  netblues @ismurdegus
                  last edited by

                  Routing alone won't make it work.
                  The issue is that the 4g modem only knows directly connected network, and sends everything else to internet (or nowhere).
                  Create an outbound nat rule on wan intearface, with target ip the wan network.
                  Use the wan interface as source.

                  1 Reply Last reply Reply Quote 0
                  • I
                    ismurdegus
                    last edited by ismurdegus

                    I tried to follow your instruction, like I say I am not an expert....

                    I create the rule on the SITE2, but is not working :-(

                    Capture.PNG

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      netblues @ismurdegus
                      last edited by

                      @ismurdegus Source should be any, and certainly not 2.0
                      Put at least 192.168.0.0/16 as source.

                      As for routing in openvpn , it is handled via openvpn server config page, NOT static routes.
                      You need sto add 192.168.5.0/24 as an ipv4 local network there.

                      I 1 Reply Last reply Reply Quote 0
                      • I
                        ismurdegus @netblues
                        last edited by

                        @netblues

                        I don't fully understand your comment, so I hope I did this right....
                        On SITE2 I setup the follow but still doesn't work :-(

                        Capture.PNG

                        Also what you say before:
                        "As for routing in openvpn , it is handled via openvpn server config page, NOT static routes.
                        You need sto add 192.168.5.0/24 as an ipv4 local network there."

                        This is doesn't make sense at all for me.

                        Can you give me more details please?

                        Thanks

                        1 Reply Last reply Reply Quote 0
                        • N
                          netblues
                          last edited by

                          nat rule is ok.

                          As for routing, you should go to the pfsense acting as client config page
                          near the bottom, tunnel settings
                          IPv4 Remote network(s)

                          IPv4 networks that will be routed through the tunnel, so that a site-to-site VPN can be established without manually changing the routing tables. Expressed as a comma-separated list of one or more CIDR ranges. If this is a site-to-site VPN, enter the remote LAN/s here. May be left blank for non site-to-site VPN.

                          put 192.168.5.0/24 , 192.168.2.0/24 save, reestablish and retry

                          1 Reply Last reply Reply Quote 0
                          • I
                            ismurdegus
                            last edited by

                            Already done this on the SITE2 (VPN Client) but still no working

                            Capture1.PNG

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