Navigation

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

    Sit to site vpn and portforwarding

    OpenVPN
    2
    3
    3136
    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.
    • J
      jleipert last edited by

      Hi i have a site to site vpn which works great!

      mainsite(vpn) has port forwarding just say 192.168.20.x:46001(which is a camera sits on the remote side of the vpn)

      this is the setup

      (me at home)===(internet)==(pfsense router w/ vpn and portf)==(vpn tunnel)==(pfsensevpnrouter)=(192.168.20.x)

      the problem is if i 'm home i can't access that camera over the vpn tunnel  - the pfsensevpnrouter show my outside ipaddress from home and blocks me by the default rule. I would think it would go over the vpn tunnel and not show my outside ip adress.

      i hope this isn't confusing

      any help would be great!!!!!

      1 Reply Last reply Reply Quote 0
      • J
        jleipert last edited by

        this shows up in the log being blocked- remote end of the vpn
        Mar 12 14:17:48 LAN 192.168.20.XX:46008 173.15.XX.XX:3525 TCP

        the 173 number is my house

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

          I assume the site on which the camera is has it's own internet connection?
          The request TO the camera arrive correctly.
          The problem is, that the answer goeas directly to the cameras default gateway and not back over the VPN tunnel.

          What you can do is:

          • Disable automatically generated rules for the VPN.
          • Assign the VPN interface.
          • Enable advanced outbound NAT and create a NAT rule for the VPN interface.
            –> Set as destination the IP of the camera.

          Like this , from the camera seen, the requests originate from the pfSense on the other side of the VPN tunnel
          --> The answer will go back over the VPN.

          We do what we must, because we can.

          Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

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