NAT from VPN network to LAN network with out gateway



  • 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)


  • LAYER 8 Global Moderator

    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.



  • @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.


  • LAYER 8 Global Moderator

    That is what TAP does..



  • 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.


Log in to reply