Page MenuHomeVyOS Platform

It's not possible to configure openvpn client ip address in server mode
Closed, ResolvedPublicBUG

Description

if i try to define a client ip address i receive the following:

vyos@vyos# show
mode server
server {
+ client test {
+ ip 10.0.0.11
+ }

subnet 10.0.0.0/28

}
tls {

ca-cert-file /config/auth/ca.crt
cert-file /config/auth/vyos.crt
dh-file /config/auth/dhfile.pem
key-file /config/auth/vyos.pem

}
[edit interfaces openvpn vtun0]
vyos@vyos# commit
[ interfaces openvpn vtun0 ]
Can't use string ("0") as a HASH ref while "strict refs" in use at /usr/lib/x86_64-linux-gnu/perl5/5.20/NetAddr/IP/Lite.pm line 1355.

Details

Difficulty level
Unknown (require assessment)
Version
vyos-999.201710232137
Why the issue appeared?
Issues in third-party code

Event Timeline

syncer edited projects, added VyOS 1.2 Crux; removed VyOS 1.2 Crux (VyOS 1.2.0-rc1).
syncer changed the visibility from "Subscribers" to "Public (No Login Required)".
syncer changed the subtype of this task from "Task" to "Bug".Oct 20 2018, 4:51 AM

This issue appears to no longer be reproducible.

I've successfully created this config.

dmbaturin@vyos# show interfaces openvpn vtun5
 local-port 1195
 mode server
 server {
     client Foo {
         ip 10.0.0.11
     }
     subnet 10.0.0.0/28
 }
 tls {
     ca-cert-file /config/auth/ovpn/ca.crt
     cert-file /config/auth/ovpn/srv.crt
     dh-file /config/auth/ovpn/dh2048.pem
     key-file /config/auth/ovpn/srv.key
 }

dmbaturin@vyos# cat /opt/vyatta/etc/openvpn/ccd/vtun5/Foo 
ifconfig-push 10.0.0.11 255.255.255.240

I'm retroactively moving this to rc1.

dmbaturin changed Why the issue appeared? from Will be filled on close to Issues in third-party code.
dmbaturin moved this task from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.0-rc1) board.