Bug #11864
closed
OpenVPN stays bound to previous IP address after interface changes
Added by Marcos M over 3 years ago.
Updated over 2 years ago.
Plus Target Version:
22.05
Affected Architecture:
All
Description
Setup:
OpenVPN listening on UDP IPv4 on a VIP or physical interface.
Steps to recreate:
- While OpenVPN is running, change the IP address on the interface
- Check Diagnostics / Sockets - the OpenVPN process is still listening on the old IP
Likely related:
https://redmine.pfsense.org/issues/9660
- Subject changed from OpenVPN stays binded to previous IP after its inteface changes to OpenVPN stays bound to previous IP after its inteface changes
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.
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
- Status changed from New to Pull Request Review
- Assignee set to Viktor Gurov
- Target version set to CE-Next
- Plus Target Version set to 22.05
- Status changed from Pull Request Review to Feedback
- % Done changed from 0 to 100
- Target version changed from CE-Next to 2.7.0
- Status changed from Feedback to Resolved
Tested on 22.05.a.20220227.0100
; working correctly now.
- Subject changed from OpenVPN stays bound to previous IP after its inteface changes to OpenVPN stays bound to previous IP address after interface changes
Updating subject for release notes.
Also available in: Atom
PDF