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

    pfSense not routing connection's traffic to OpenVPN

    Scheduled Pinned Locked Moved OpenVPN
    10 Posts 2 Posters 2.8k 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.
    • P
      PintsizedSix40
      last edited by PintsizedSix40

      I'm kinda a noob with pfSense. I have an OpenVPN Server on a Ubuntu VPS and I'm trying to proxy (ik its the wrong term but idk the right one for vpn) a single IP. My configuration for the VPN seems to be correct (I can see connections from my IP in the status). For the other configs, I have setup (and enabled) the VPN interface (VPN1) and it currently has no firewall rules. The only rules I've set are my nat rules (the IP I want to proxy is 192.168.1.100). Heres an image of the config I've set to route traffic. When I go onto the machine that should be proxied, it isn't. Looking up my ip gives the same result. If anyone could point out what I'm doing wrong, it would be great!

      EDIT: I also tried setting a lan rule for the machine (source 192.168.1.100) and setting the gateway in advanced. Same result.

      V 2 Replies Last reply Reply Quote 0
      • V
        viragomann @PintsizedSix40
        last edited by

        Is pfSense the default gateway on the machine with 192.168.1.100?
        Does not seem so. If it was, there should be an additional outbound NAT rule for the WAN gateway.

        1 Reply Last reply Reply Quote 0
        • P
          PintsizedSix40
          last edited by

          Yes, pfSense is the default gateway. I can access pfSense's control panel (192.168.1.1) and ipconfig (this is a windows machine) says the default gateway is 192.168.1.1.

          1 Reply Last reply Reply Quote 0
          • V
            viragomann @PintsizedSix40
            last edited by

            So that
            @PintsizedSix40 said in pfSense not routing connection's traffic to OpenVPN:

            EDIT: I also tried setting a lan rule for the machine (source 192.168.1.100) and setting the gateway in advanced. Same result.

            should do the trick.
            Ensure that that rule is on the top of the LAN rule set, so it matches at first.

            Otherwise post the whole LAN rule set, please.

            1 Reply Last reply Reply Quote 0
            • P
              PintsizedSix40
              last edited by PintsizedSix40

              It is at the top and all the other rules are the default ones (expect the anti-lockout). NAT is set to only use custom rules.
              EDIT: WAN, LAN, my VPN Interface (VPN1) and OpenVPN have no rules, NAT.

              1 Reply Last reply Reply Quote 0
              • P
                PintsizedSix40
                last edited by

                My VPN settings are:
                P1 P2 P3 P4 P5

                1 Reply Last reply Reply Quote 0
                • P
                  PintsizedSix40
                  last edited by

                  When I disable the LAN to WAN, I lost all internet connection (I also changed the source of my VPN LAN rule so that it accepts any source from 192.168.1.0/24 instead of 192.168.1.100/32). When I check the status of the OpenVPN server though, it's getting connections from my IP. I'm not quite sure what the problem is from.

                  1 Reply Last reply Reply Quote 0
                  • V
                    viragomann
                    last edited by

                    You wrote in your first post above, you've set up an OpenVPN server on Ubuntu VPS, but your screen-shots show the a server set up on pfSense.
                    An OpenVPN server cannot connect to another one. I can't believe, that the connection is shown as up.

                    If you're running the server on Ubuntu you have to set up a client on pfSense to connect to it.

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      PintsizedSix40 @viragomann
                      last edited by PintsizedSix40

                      @viragomann I did setup a client. My screenshots show it on the client tab.

                      EDIT: I checked the box to not allow the VPN to set it's own routing and now I'm getting no network on the machine (ping 8.8.8.8 doesn't work either). It seems to be routing it, but I'm not sure why it has no connection.

                      1 Reply Last reply Reply Quote 0
                      • P
                        PintsizedSix40
                        last edited by

                        Checking OpenVPN staus, I get Bad compression stub (swap) decompression header byte: 42. My settings are right.

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