Project

General

Profile

Bug #11864

OpenVPN stays bound to previous IP after its inteface changes

Added by Marcos Mendoza about 2 months ago. Updated 7 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
OpenVPN
Target version:
-
Start date:
04/28/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.5.1
Affected Architecture:
All

Description

Setup:
OpenVPN listening on UDP IPv4 on a VIP or physical interface.

Steps to recreate:
  1. While OpenVPN is running, change the IP address on the interface
  2. Check Diagnostics / Sockets - the OpenVPN process is still listening on the old IP

Likely related:
https://redmine.pfsense.org/issues/9660

History

#1 Updated by Marcos Mendoza about 2 months ago

  • Subject changed from OpenVPN stays binded to previous IP after its inteface changes to OpenVPN stays bound to previous IP after its inteface changes

#2 Updated by Viktor Gurov about 2 months ago

Currently only DHCP, SNMP, Gateways Monitoring, RRD Graphing and Syslog services are restarted on interface changes.

We need to create a generic function that checks all system services: OpenVPN, IPsec, L2TP VPN, PPPoE Server, DNS Resolver, IGMP Proxy, uPnP and Captive Portal, to re-binds them to correct IP address.

#3 Updated by Viktor Gurov 7 days ago

We have to create a function `restart_interface_services($interface, $ipproto)` to restart all interface and IPv4/IPv6 related services and also use it to fix #3132

Also available in: Atom PDF