Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Bind to more than one CARP IP
« previous
next »
Print
Pages: [
1
]
Author
Topic: Bind to more than one CARP IP (Read 1866 times)
random1104
Jr. Member
Posts: 79
Karma: 0
Bind to more than one CARP IP
«
on:
July 13, 2021, 04:20:50 am »
Hello!, is it possible to bind an OpenVPN server to more than one CARP IP? (One for IPv4 and one for IPv6)
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Bind to more than one CARP IP
«
Reply #1 on:
July 13, 2021, 08:56:23 am »
Dual stack support in OpenVPN is almost nonexistent except for the default that listens to all addresses (IPv4 and IPv6). As soon as you give it an address it switches to that particular address family.
For an ancient feature request see
https://community.openvpn.net/openvpn/ticket/556
Cheers,
Franco
Logged
random1104
Jr. Member
Posts: 79
Karma: 0
Re: Bind to more than one CARP IP
«
Reply #2 on:
July 19, 2021, 03:08:09 am »
So, instead of setting up two servers, can I bind to all and only allow access to the CARP address via firewall rules?.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Bind to more than one CARP IP
«
Reply #3 on:
July 19, 2021, 10:08:26 am »
Yes, correct.
Logged
random1104
Jr. Member
Posts: 79
Karma: 0
Re: Bind to more than one CARP IP
«
Reply #4 on:
July 27, 2021, 12:01:41 pm »
Will that hinder functionality in a CARP setup? (Wondering if the openvpn implementation makes anything different when set to bind only to a CARP IP)
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Bind to more than one CARP IP
«
Reply #5 on:
July 27, 2021, 12:05:00 pm »
Not really. You can even use port forwards to make it work across different interfaces. In that case you don't even strictly need CARP.
The OpenVPN limitation is just that when you bind to a VIP you have to choose if your service is IPv4 or IPv6. You need two instances if you want to support both IPv4 and IPv6.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Bind to more than one CARP IP