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

    ÔpenVPN IP Transmitting

    Scheduled Pinned Locked Moved OpenVPN
    11 Posts 3 Posters 1.0k 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.
    • S
      Secarius 0
      last edited by

      Hi all,

      I have a Linux server in the LAN side,
      a client connecting via OpenVPN to pfsense.
      If the client then ssh into the Linux Server its who is IP adress is not the vpn address he got.
      The server sees the LAN IP of the pfsense.

      Is it possible to transmit the client vpn ip instead?

      Kind Regards
      Felix

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @Secarius 0
        last edited by

        TAP ?
        TUN ?
        Tunnel network ?

        When I logging over VPN into pfSense, I see my'OpenVPN tunnel IP' :

        [2.5.1-RELEASE][admin@pfsense.my-network.net]/root:
        Message from syslogd ...
        <32>1 2021-05-21T09:48:47.412799+02:00 pfsense.my-network.net php-fpm 9960                                                                                              3 - - /index.php: Successful login for user 'admin' from: 2001:470:beef:3::1000                                                                                               (Local Database)
        

        88c6f5aa-1a28-4cbd-bbb2-47a75af948bb-image.png

        Same thing when I log in into a NAS, present in one of my LAN : I see the IP of my device I use to login, the device that connects to OpenVPN.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        S 1 Reply Last reply Reply Quote 0
        • S
          Secarius 0 @Gertjan
          last edited by Secarius 0

          @gertjan
          I have a L2tp/IPSec and an OpenVPN running.
          On both i have the following behavior:
          When im connected to VPN and i ssh into a random Ubuntu server in a vlan at the lan side of pfsense (the remote location),
          Ubuntu shows connected from 192.168.1.251 (which is the ip of the pfsense)

          The VPN Client Tunnel Network is 192.168.6.0/24 -> Client gets 192.168.6.2 for example but on login at the Ubuntu server it shows the pfsens IP 192.168.1.251

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @Secarius 0
            last edited by

            @secarius-0 said in ÔpenVPN IP Transmitting:

            When im connected to VPN and i ssh into a random Ubuntu server in a vlan at the lan side of pfsense (the remote location),
            Ubuntu shows connected from 192.168.1.251 (which is the ip of the pfsense)

            Is there a gateway set in the interface settings of the concerened VLAN?
            If so, for what reason?

            Any outbound rules added manually?

            S 1 Reply Last reply Reply Quote 0
            • S
              Secarius 0 @viragomann
              last edited by

              @viragomann sorry i am new to this:

              Firewall:
              d20954c4-b4d1-49e3-9c20-9de14c6e28cf-image.png
              c1b09fb4-0d22-4841-91cc-c2c7c177cb37-image.png
              dabc1210-7669-42bc-87bc-91b59e6e5301-image.png
              7f157a1d-e65f-47b6-bc69-bdee2619757b-image.png
              OpenVPN Settings
              8850b092-485c-4a8a-9ef1-2779e6960728-image.png
              74637674-5cc4-4787-ae79-c45a981b6863-image.png

              Lan Interface:
              4dfaff24-5036-486c-9bd6-e460abf2550c-image.png
              Static Routes to VLANs
              b00b363a-091a-42fe-a66b-4aeffd68c4b7-image.png

              V 1 Reply Last reply Reply Quote 0
              • V
                viragomann @Secarius 0
                last edited by

                @secarius-0
                So the destination VLAN is behind the main switch connectd to LAN and you route the traffic to the switch.
                So LAN is the concerned interface here. So check the LAN interface settings. Is there a gateway set?
                That should not be the case.

                Otherwise post your outbound NAT settings.

                S 1 Reply Last reply Reply Quote 0
                • S
                  Secarius 0 @viragomann
                  last edited by

                  @viragomann
                  do you mean the Upstream gateway should be "none" on Lan Side?

                  0ac8cc72-abec-4844-b2ab-4fee7dc8cd6c-image.png

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    viragomann @Secarius 0
                    last edited by

                    @secarius-0
                    Exactly.

                    S 2 Replies Last reply Reply Quote 0
                    • S
                      Secarius 0 @viragomann
                      last edited by

                      This post is deleted!
                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Secarius 0 @Secarius 0
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • S
                          Secarius 0 @viragomann
                          last edited by

                          @viragomann
                          Hi virgomann thank you very much, that did the trick.
                          :)

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