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

    OpenVPN interface IP is being used as gateway IP

    OpenVPN
    openvpn dpinger gateway
    2
    4
    1.1k
    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.
    • R
      rpthms
      last edited by

      Hi all,

      After I added an OPT1 interface to use the ovpnc1 interface, I noticed that the gateway address for OPT1 is the same as the ovpnc1's IP (172.27.120.2), instead of it using the OpenVPN server's address (172.27.120.1). Since, the gateway and the interface IP are the same, dpinger is just sending ICMP packets to the local interface giving me 0.1ms as the response time.

      In the screenshots, I have renamed OPT1 to VPN.

      0_1545336125454_Screenshot_2018-12-20 pfsense lan themindsmaze com - Status Interfaces.png

      0_1545336169864_Screenshot_2018-12-20 pfsense lan themindsmaze com - System Routing Gateways.png

      0_1545336222703_Screenshot_2018-12-20 pfsense lan themindsmaze com - Status Dashboard.png

      Have I made any errors in my configuration for this to happen?

      1 Reply Last reply Reply Quote 0
      • RicoR
        Rico LAYER 8 Rebel Alliance
        last edited by

        You can monitor any IP you like: System -> Routing -> Edit your OpenVPN Gateway
        0_1545337178220_gwmonitor.png

        -Rico

        1 Reply Last reply Reply Quote 0
        • R
          rpthms
          last edited by rpthms

          Yeah, I know I can monitor any IP. I just wanted to know, why is the gateway using the interface's IP? Is it a bug? When I use ifconfig to check ovpnc1's status, it show's that the proper gateway IP (172.27.120.1)

          ifconfig output (My reply is getting marked as spam when I post the ifconfig output here, for some reason) : https://pastebin.com/5DPZN3JJ

          1 Reply Last reply Reply Quote 0
          • R
            rpthms
            last edited by

            Even in the logs, I can see that the server is pushing its own address as the gateway, yet pfSense does not use it as the gateway IP:

            Dec 21 02:45:36 	openvpn 	67745 	PUSH: Received control message: 'PUSH_REPLY,route-gateway 172.27.120.1,topology subnet,ping 10,ping-restart 120,ifconfig 172.27.120.2 255.255.255.0,peer-id 0,cipher AES-256-GCM' 
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.