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

Port Forward over VPN interface?

NAT
7
32
9.4k
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.
  • D
    Derelict LAYER 8 Netgate
    last edited by Aug 12, 2015, 2:49 PM

    @Derelict:

    From that it looks like the target NAT host isn't responding.  Or is responding out another gateway.

    Rereading my post, you can't tell any of that from those firewall logs.  All that shows is the port is actually being forwarded to you and your NAT translation / firewall rule is correct.

    What you need is a packet capture on AIRVPN_LAN for port 32400.

    Chattanooga, Tennessee, USA
    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
    Do Not Chat For Help! NO_WAN_EGRESS(TM)

    1 Reply Last reply Reply Quote 0
    • J
      JimPhreak
      last edited by Aug 12, 2015, 2:50 PM

      @Derelict:

      @Derelict:

      From that it looks like the target NAT host isn't responding.  Or is responding out another gateway.

      Rereading my post, you can't tell any of that from those firewall logs.  All that shows is the port is actually being forwarded to you and your NAT translation / firewall rule is correct.

      What you need is a packet capture on AIRVPN_LAN for port 32400.

      Haha, funny timing.  Check the edit on my above post.

      1 Reply Last reply Reply Quote 0
      • J
        JimPhreak
        last edited by Aug 12, 2015, 9:11 PM

        OK finally got a chance to review the packet captures I posted earlier today.

        So what I'm seeing (during these tests) is that packets are coming in the AIRVPN_WAN interface but nothing is coming back out.  It appears the packets are going out my regular WAN interface during these tests.

        However if I do a test by starting a ping directly from the host (10.0.100.210) while doing a packet capture I see the data going out the AIRVPN_WAN interface properly and nothing going out the WAN.

        I see what's happening, but unfortunately don't have a clue why it's happening.  If packets originating from the AIVPN_LAN are going out the AIRVPN_WAN, why wouldn't packets being sent TO the AIRVPN_LAN be routed back out the AIRVPN_WAN?

        1 Reply Last reply Reply Quote 0
        • D
          Derelict LAYER 8 Netgate
          last edited by Aug 13, 2015, 4:07 AM

          You're going to have to post your interface configs, NAT rules, Port Forwards, Firewall rules.  Something isn't making any sense.

          You've got some policy routing issues or some NAT issues or both.  This makes no sense:

          And here is the packet capture on my regular WAN looking for port 32400.

          11:06:11.939126 IP 10.4.24.119.32400 > 184.72.12.38.25297: tcp 0
          11:06:12.940138 IP 10.4.24.119.32400 > 184.72.12.38.25297: tcp 0
          11:06:13.940484 IP 10.4.24.119.32400 > 184.72.12.38.25297: tcp 0
          11:06:14.944159 IP 10.4.24.119.32400 > 184.72.12.38.25297: tcp 0
          11:06:17.340642 IP 10.4.24.119.32400 > 184.72.12.38.25297: tcp 0

          10.4.24.119 is the virtual address of my OpenVPN client connection to my VPN service.

          pfSense would not be forwarding traffic sourced from your VPN address out WAN unless it was told to do so somehow.  And none of the other captures show 184.72.12.38 so where is that coming from?

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • J
            JimPhreak
            last edited by Aug 13, 2015, 4:15 AM

            @Derelict:

            You're going to have to post your interface configs, NAT rules, Port Forwards, Firewall rules.  Something isn't making any sense.

            You've got some policy routing issues or some NAT issues or both.  This makes no sense:

            pfSense would not be forwarding traffic sourced from your VPN address out WAN unless it was told to do so somehow.  And none of the other captures show 184.72.12.38 so where is that coming from?

            Both 54.241.28.69 and 184.72.12.38 is Plex.tv which is where I'm trying to publish my server to.

            I will take some SS's of all my configs and hopefully you can spot my error.

            1 Reply Last reply Reply Quote 0
            • D
              Derelict LAYER 8 Netgate
              last edited by Aug 13, 2015, 4:56 AM

              Right, but there is absolutely no reason for traffic to be directed out WAN with a source address of your OpenVPN client interface.

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              • J
                JimPhreak
                last edited by Aug 13, 2015, 1:49 PM

                @Derelict:

                Right, but there is absolutely no reason for traffic to be directed out WAN with a source address of your OpenVPN client interface.

                PM'd.

                1 Reply Last reply Reply Quote 0
                • J
                  JimPhreak
                  last edited by Aug 17, 2015, 3:37 PM

                  Just wanted to post and update that my issue has been resolved.  With the help of Derelict (huge thanks to you), we were able to determine that my issue was an Any/Any rule on the OpenVPN tab (which has since been removed and replaced with a more strict rule on an interface I created for my home VPN server network) as well as the fact that I had the AIRVPN_WAN gateway selected on my NAT port forward rule instead of leaving it as default.

                  Now everything is working just like I'd expect.  Big thanks again to Derelict who spotted the problem and was patient in working with me.

                  P 1 Reply Last reply Jan 20, 2022, 7:37 PM Reply Quote 2
                  • B
                    Bluedragon
                    last edited by Sep 4, 2015, 4:25 AM

                    Thanks for coming back here to post what was wrong, I was getting much the same issue and seeing the same results in the capture… It was the any/any in the OpenVPN tab.

                    1 Reply Last reply Reply Quote 2
                    • P
                      pfsenseuser1 @JimPhreak
                      last edited by pfsenseuser1 Jan 20, 2022, 7:40 PM Jan 20, 2022, 7:37 PM

                      @jimphreak

                      Just wanted to say thank you so much for posting this, even 6 years later I ran into this issue and was banging my head against why I couldnt get something like portchecker.co to report a forwarded port open.

                      I guess I need to go back and read more on why the any/any on the openvpn interface broke things

                      F 1 Reply Last reply Nov 21, 2023, 11:43 AM Reply Quote 0
                      • F
                        FoolCoconut @pfsenseuser1
                        last edited by Nov 21, 2023, 11:43 AM

                        I seem to be having the literal same issue.

                        VPN works from the desired VM. Outbound packets work properly, but it seems inbound packets are not being properly routed back through AIRVPN_WAN.

                        Can anyone provide a more detailed solution?

                        I don't have no any/any rules, only a single rule (created automatically by nat) in the AIRVPN_WAN that allows any tcp/udp to the VM with the port I want exposed.

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