Page MenuHomePhabricator

Command show log vpn display wrong information
Needs testing, LowPublicBUG

Description

Hi,

When I want to check vpn log. and run show log vpn all display wrong information. I think that pppoe like information.

vyos@vyos:~$ show log vpn all
Jan 20 15:54:07 vyos systemd[1]: Starting LSB: Cleans up pppoe peers files...
Jan 20 15:54:07 vyos systemd[1]: Started LSB: Cleans up pppoe peers files.
Jan 20 16:56:38 vyos systemd[1]: Starting LSB: Cleans up pppoe peers files...
Jan 20 16:56:38 vyos systemd[1]: Started LSB: Cleans up pppoe peers files.

Details

Difficulty level
Unknown (require assessment)
Version
1.2.0 EPA3
Why the issue appeared?
Will be filled on close
bjtangseng updated the task description. (Show Details)Sun, Jan 20, 4:54 PM
pasik added a subscriber: pasik.Mon, Jan 21, 9:41 PM
syncer assigned this task to zsdc.
syncer changed the task status from Open to Needs testing.
syncer triaged this task as Low priority.
zsdc added a comment.Thu, Feb 7, 4:40 PM

Hello, @bjtangseng!
Can you recheck this with fresh versions? Seems that in 1.2.0-LTS and rolling everything is OK. Also, if there is no VPN logs at all (for example, VPN is not configured), you can see output like in first message and then this will be not a issue.

danpro added a subscriber: danpro.Fri, Feb 8, 5:53 PM

Hi @zsdc

currently the command run under the hood is

cat $(printf "%s\n" /var/log/messages* | sort -nr) | grep -e pluto -e xl2tpd -e pptpd -e ppp

that wrongly catches also pppoe messages because of the "grep -e ppp"

I submitted a pull request to fix the issue.