Navigation

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

    Help understanding - Will this work

    General pfSense Questions
    3
    7
    784
    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.
    • 4
      4Qman last edited by

      Hi,

      I have an APU2C4

      I am playing around at the moment but need to see if this will work.

      MODEM - APU2C4  WAN
                                  LAN1 - SWITCH - Unifi AP (using public IP)
                                  OPT1 - SWITCH (Configured to use VPN Provider IP

      That way all wireless devices are via my ISP IP address and whatever is plugged into the OPT1 switch will be under the VPN providers IP

      1 Reply Last reply Reply Quote 0
      • jahonix
        jahonix last edited by

        @4Qman:

        LAN1 - SWITCH - Unifi AP (using public IP)
        OPT1 - SWITCH (Configured to use VPN Provider IP

        Your description is misleading
        using public IP: use default gateway
        Configured to use VPN Provider IP: use gateway of VPN tunnel

        1 Reply Last reply Reply Quote 0
        • 4
          4Qman last edited by

          @jahonix:

          @4Qman:

          LAN1 - SWITCH - Unifi AP (using public IP)
          OPT1 - SWITCH (Configured to use VPN Provider IP

          Your description is misleading
          using public IP: use default gateway
          Configured to use VPN Provider IP: use gateway of VPN tunnel

          thanks for the reply Jahonix,

          I have spent several more hours playing with this and i now have the VPN connection UP

          VPN UDP up Tue Jul 25 17:30:24 2017 20.5.5.244 116.282.192.78 5 KiB 5 KiB

          However when i connect the PC into the Switch it doesnt get a valid IP address.

          Issues found
          "Ethernet" doesn't have a valid IP configuration"Ethernet" doesn't have a valid IP configuration Not fixed Not Fixed

          The default gateway is not available The default gateway is not available

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

            "Unifi AP (using public IP)"

            Huh??  How is that?  You mean your clients that connect to your wifi are natted to the public IP that is on pfsense wan?

            " OPT1 - SWITCH (Configured to use VPN Provider IP"

            This is misleading.  You mean the network you have setup on pfsense opt1 is set to go out pfsense vpn client connection?  What network did you setup on this opt1 interface?  You could then setup its rules to send all traffic out the vpn connection.

            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
            2440 2.4.5p1 | 2x 3100 2.4.4p3 | 2x 3100 22.01 | 4860 22.01

            1 Reply Last reply Reply Quote 0
            • 4
              4Qman last edited by

              @johnpoz:

              "Unifi AP (using public IP)"

              Huh??  How is that?  You mean your clients that connect to your wifi are natted to the public IP that is on pfsense wan?

              " OPT1 - SWITCH (Configured to use VPN Provider IP"

              This is misleading.  You mean the network you have setup on pfsense opt1 is set to go out pfsense vpn client connection?  What network did you setup on this opt1 interface?  You could then setup its rules to send all traffic out the vpn connection.

              Hi Johnpoz, thanks for the reply.

              Huh??  How is that?  You mean your clients that connect to your wifi are natted to the public IP that is on pfsense wan?
              yes thats correct, this is working fine

              " OPT1 - SWITCH (Configured to use VPN Provider IP"
              When i check stats/openVPN it is showing connection is working.

              But when i plug my laptop into the switch thats on OPT1 it doesnt give me a valid IP address.
              OPT1 is setup as
              Static
              192.168.240.1 / 24

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

                "But when i plug my laptop into the switch thats on OPT1 it doesnt give me a valid IP address."

                What does this have to do with vpn client connection on pfsense?

                Did you enable dhcp on your opt1 interface on pfsense?

                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
                2440 2.4.5p1 | 2x 3100 2.4.4p3 | 2x 3100 22.01 | 4860 22.01

                1 Reply Last reply Reply Quote 0
                • 4
                  4Qman last edited by

                  @johnpoz:

                  "But when i plug my laptop into the switch thats on OPT1 it doesnt give me a valid IP address."

                  What does this have to do with vpn client connection on pfsense?

                  Did you enable dhcp on your opt1 interface on pfsense?

                  Hi, thank you for bearing with me on this.. I am learning :)

                  I have followed this guide for OPT1
                  https://airvpn.org/topic/17444-how-to-set-up-pfsense-23-for-airvpn/

                  When i check system logs/gateways i get
                  sendto error: 65

                  I have OPT1 setup on static IP as per that guide. I have also changed it to DHCP with not luck.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post