Page MenuHomeVyOS Platform

Need a config option to specify NAS-IP-Address for vpn l2tp
Closed, ResolvedPublicFEATURE REQUEST

Description

It's impossible to specify the IP address to include into NAS-IP-Address Radius attribute for vpn l2tp. While we definitely can do it in [l2tp] section of accel-ppp package used in VyOS.
Need a configuration option for vpn l2tp section so that we can specify nas-ip-address there which will be sent in NAS-IP-Address Radius attribute.
This is the same as for NAS-identifier which IS configurable.
Thank you.
Alexander

Details

Difficulty level
Unknown (require assessment)
Version
1.4
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

aserkin created this object in space S1 VyOS Public.
aserkin changed Version from - to 1.4.

@aserkin Could you send an example of the required accel-ppp section? And how do you see this command in VyOS CLI?

Viacheslav changed the subtype of this task from "Task" to "Feature Request".

Hi Viacheslav
Sorry, i probably misspelled the config option. Actually it's availabe at [radius] section of accel-ppp.conf.
Below is the [radius] section from my /run/accel-pppd/l2tp.conf after i changed
/usr/libexec/vyos/conf_mode/vpn_l2tp.py:

default_config_data = (

‘radius_nas_ip’: ‘10.10.10.1’

}
and reboot:

[radius]
verbose=1
server=10.20.1.18,secret,auth-port=1812,acct-port=1813,req-limit=0,fail-time=0
acct-timeout=3
timeout=3
max-try=3
nas-identifier=vyos-lns-1
nas-ip-address=10.10.10.1
bind=10.10.10.1
gw-ip-address=192.168.0.1

So i guess the config option could be as follows:

set vpn l2tp remote-access authentication radius nas-ip-address '10.10.10.1'

Where the value '10.10.10.1' can be the address of one of the interfaces available on the box - dummy or physical.

Viacheslav changed the task status from Open to In progress.Aug 10 2022, 8:23 PM
Viacheslav claimed this task.
Viacheslav changed the task status from In progress to Needs testing.Aug 11 2022, 11:28 AM

@aserkin Will be present in the next rolling release.

Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.