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

CREATE RULE NAT OVER OPEN VPN CLIENT.

Scheduled Pinned Locked Moved OpenVPN
3 Posts 2 Posters 709 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
    charneval
    last edited by Jun 1, 2022, 3:42 PM

    Hello everybody.
    I made a client server vpn between a mikrotik routerboard (openvpn client) and a pfsense with version 2.5.2 (openvpn server).
    The network is thus configured.
    lan pfsense 192.168.10.50/24 (WAN: 92.245.173.69)
    mikrotik routerboard 192.168.88.1 connected via openvpn to pfsense.
    Photovoltaic Web Server: 192.168.88.2 (responds on port 80.

    If I connect to the 192.168.10.0/24 network via openvpn client and try to reach the photovoltaic webserver, the pfsense then re-routes me correctly on 192.168.88.2:80

    What I fail to realize is this.

    I should do a Hybrid Outbound NAT rule generation.
    (Automatic Outbound NAT + rules below))
    to be able from the public ip 92.245.173.69 configured on the pfsense wan to reach the webserver 192.168.88.2 and then reach it through the vpn.

    I am attaching some screenshots of the configuration.gor1.jpg gor2.jpg gor3.jpg gor4.jpg gor6.jpg

    V 1 Reply Last reply Jun 2, 2022, 3:04 PM Reply Quote 0
    • V
      viragomann @charneval
      last edited by Jun 2, 2022, 3:04 PM

      @charneval
      There is the same mistake as in your other thread. You must not state a translation port in the outbound NAT rule. Leave the port field blank.

      And you should state WAN address as destination in the port forwarding rule.

      C 1 Reply Last reply Jun 6, 2022, 8:00 AM Reply Quote 0
      • C
        charneval @viragomann
        last edited by Jun 6, 2022, 8:00 AM

        @viragomann
        Thanks very much for your support.

        Now I have been able to understand well how nat outbound works and how to set the rules.
        The passage to the rule works perfectly through the openvpn and my problem was related to the insertion of the door in the translation part.
        The pfsense forum is the place where thanks to very competent people you can find all the solutions.

        THANK YOU

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received