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

OpenVPN interface IP is being used as gateway IP

Scheduled Pinned Locked Moved OpenVPN
openvpndpingergateway
4 Posts 2 Posters 1.1k 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.
  • R
    rpthms
    last edited by Dec 20, 2018, 8:06 PM

    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
    • R
      Rico LAYER 8 Rebel Alliance
      last edited by Dec 20, 2018, 8:19 PM

      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 Dec 20, 2018, 8:45 PM Dec 20, 2018, 8:44 PM

        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 Dec 20, 2018, 9:44 PM

          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
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received