Page MenuHomeVyOS Platform

Command show log vpn display wrong information
Closed, ResolvedPublicBUG

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
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

syncer changed the task status from Open to Needs testing.Jan 27 2019, 4:16 AM
syncer assigned this task to zsdc.
syncer triaged this task as Low priority.

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.

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.

Unknown Object (User) added a subscriber: Unknown Object (User).Aug 20 2020, 6:03 PM

We need some expressions like

eval $(lesspipe) 
    less $_vyatta_less_options \
    --prompt=".log?m, file %i of %m., page %dt of %D" \
    -- `printf "%s\n" /var/log/messages* | sort -nr` | grep -e charon -e pluto -e xl2tp -e pptp -e l2tp -e sstp

https://github.com/vyos/vyos-1x/blob/current/op-mode-definitions/show-log.xml#L15

dmbaturin added a subscriber: dmbaturin.

This isn't reproducible in either up-to-date LTS or 1.3, so I assume the issue was fixed.

dmbaturin set Is it a breaking change? to Perfectly compatible.Sep 29 2021, 1:28 PM
dmbaturin set Issue type to Bug (incorrect behavior).
dmbaturin edited projects, added VyOS-1.2.0-GA; removed VyOS 1.3 Equuleus (1.3.0-epa1).