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

    How do I VPN only 1 host device?

    Scheduled Pinned Locked Moved OpenVPN
    29 Posts 4 Posters 4.3k 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.
    • S
      seitys
      last edited by

      its my WAN IP. It says the actual IP instead of WAN because that is the default setting. If I were to remove it and add it again, it would show up as WAN, not the actual IP in numerical form. The only 3 choices in the translation section are interface IP, host alias and other subnet.

      1 Reply Last reply Reply Quote 0
      • K
        kejianshi
        last edited by

        I'd make it WAN.

        Then I would delete those first two firewall rules you added on the LAN where you modified the gateway.

        Then try it.

        1 Reply Last reply Reply Quote 0
        • S
          seitys
          last edited by

          Still the same result.

          Why are the firewall rules and NAT outbound rules redundant?

          From my understanding:

          NAT rules translates my internal IP to an externally registered IP.

          Firewall rules dictate what traffic can be allowed into my network.

          Aren't those 2 different functions?

          1 Reply Last reply Reply Quote 0
          • K
            kejianshi
            last edited by

            perhaps this is a 2.2 weirdness.

            1 Reply Last reply Reply Quote 0
            • S
              seitys
              last edited by

              okay here is something.

              Before, every how-to guide mentioned the VPN as another gateway but with the settings in how-to stickied above, the gateway was always offline. BUT, if I remove "redirect-gateway def1" from the advanced setting when configuring vpn, the gateway now shows as online.

              Now that I've done that, the opposite thing happens. Only some of the traffic is going through the VPN but my desktop IP is not showing the VPN IP. And I'm not sure what traffic is going through the VPN but its much less than before.

              1 Reply Last reply Reply Quote 0
              • K
                kejianshi
                last edited by

                Are you opposed to posting your vpn config?

                1 Reply Last reply Reply Quote 0
                • S
                  seitys
                  last edited by

                  http://i.imgur.com/t5R0NNB.png

                  http://i.imgur.com/Lz20eYt.png

                  Here's what I learned in the last 5 minutes.

                  If I have the NAT outbound settings like before and I have the firewall settings as before (on the LAN interface) OR if I create a firewall rule to allow any traffic in on the VPN interface, then my traffic goes directly to the VPN. I tested it by running trace routes to google.

                  However, my IP still doesn't show as my VPN IP.

                  Edit: my last 2 posts on this forum logged my VPN IP but for some reason, when I run whoer.net/ext, my VPN ip doesn't show up.

                  1 Reply Last reply Reply Quote 0
                  • K
                    kejianshi
                    last edited by

                    You know…  Mine was set up really different than this.

                    The server side was set up to tunnel all traffic across the vpn.

                    The client side was set as remote access.

                    There were no rules on the firewall set at all.

                    And just a manual outbound NAT rule for the IP(s) I wanted tunneled.

                    1 Reply Last reply Reply Quote 0
                    • S
                      seitys
                      last edited by

                      Was your setup the same or similar to mine ie. using a external VPN service?

                      Or were you connecting to another pfsense box running a openvpn server?

                      Do you mind sharing your config?

                      1 Reply Last reply Reply Quote 0
                      • K
                        kejianshi
                        last edited by

                        I set it up with another of my pfsense openvpn at the server side.
                        I will pull up my VM that is set up this way, verify its functioning correctly and post something here.

                        1 Reply Last reply Reply Quote 0
                        • A
                          ambsace
                          last edited by

                          Hi,

                          Been working with Seitys on the same problem at the /r/PFSENSE sub-reddit.

                          He mentioned that this is appears to be a bug in the pfSense 2.2 beta. It's been solved for IPv4 traffic and they will probably get this working for IPv6 soon.

                          https://forum.pfsense.org/index.php?topic=80607.msg457724#msg457724
                          https://redmine.pfsense.org/issues/3760

                          Just thought I should update this thread.

                          1 Reply Last reply Reply Quote 0
                          • K
                            kejianshi
                            last edited by

                            Could be - I know there is a problem with replies going out pver the same interfaces they come in on.
                            I'm pretty excited about 2.2 once the bugs are worked out. 
                            A well threaded pfsense will make a huge difference.

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