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

    NAT from VPN network to LAN network with out gateway

    Scheduled Pinned Locked Moved NAT
    5 Posts 3 Posters 987 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.
    • C
      comeback1106
      last edited by

      Hi everyone.
      I have problem when connect from VPN network to LAN network. If device on LAN network can set default route, I can access from VPN network to LAN, every ok. But problem is device on LAN network can't set default gateway. This problem come from firmware, so that if I add static route on this device manual, I can access. But when this device reboot, the static gone, I can't not access on this.
      Here is my network desgin.
      Thanks for help me.
      I think this problem can resolve by that way. I can create SNAT on pfsense. When request come from VPN network, pfsense will translation source request from VPN Network to from one IP on LAN network. That mean source request will translation source from VPN network to LAN network, and destination is Access Point. After Access Point recive the request, with source from LAN network, this can reply to pfsense, the pfsense can reply to client on VPN network. I think problem can resolve on this way. But I don't know how to config pfsense like this.
      If anyone think this solution can work, help me how to config this. So If you have any solution to resolve this problem, help me.
      Thanks alots.

      ![1-12-2015 3-17-41 PM.png](/public/imported_attachments/1/1-12-2015 3-17-41 PM.png)
      ![1-12-2015 3-17-41 PM.png_thumb](/public/imported_attachments/1/1-12-2015 3-17-41 PM.png_thumb)

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

        What AP are using.  So you can set the GW, but on reboot it is lost?  Why not contact the maker and have them fix that clearly serious flaw!!

        Your other option would be to use TAP vs TUN on your openvpn setup, this would put your remote client the actual lan your AP is on.

        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
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • C
          comeback1106
          last edited by

          @johnpoz:

          What AP are using.  So you can set the GW, but on reboot it is lost?  Why not contact the maker and have them fix that clearly serious flaw!!

          Your other option would be to use TAP vs TUN on your openvpn setup, this would put your remote client the actual lan your AP is on.

          Thanks for your reply. I have contact the maker but He said that is fixing now. Wait and wait. I have wait along time so he don't anything. I think problem is diffrent network. Anyway can create vpn tunnel network have same IP range with LAN network. If can, this can resovle my problem.

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

            That is what TAP does..

            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
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • C
              cmb
              last edited by

              Manual outbound NAT on LAN (or the internal interface where the AP resides) is what you need there.

              OpenVPN tap is another option. NAT is easier since the VPN's already up and running from the sounds of it.

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