Page MenuHomeVyOS Platform
Feed Advanced Search

Jul 23 2018

hagbard added a comment to T736: Rewrite remote logging (syslog) to XML/Python.

Hi Guys, @dmbaturin

Jul 23 2018, 7:49 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jul 20 2018

hagbard added a comment to T736: Rewrite remote logging (syslog) to XML/Python.

Syslog rewrite is now almost done, I currently testing everything, so I think if all goes well, I open a pull request next week for it. I'm still not sure how I should handle 'set system syslog user...', the help text states that it logs to the logged in user, but I didn't find anything implemented in the old perl script.

Jul 20 2018, 11:12 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jul 17 2018

hagbard added a comment to T741: move user home to persistent storage.

I never had a look into that, however I found something interesting.
https://github.com/vyos/vyatta-cfg-system/blob/current/scripts/install/install-get-partition, check out save_old_keys() at line 433.
The script you are looking into is, when vyos is already installed.

Jul 17 2018, 11:13 PM · VyOS 1.5 Circinus
hagbard added a comment to T736: Rewrite remote logging (syslog) to XML/Python.

Now I found out the mystery from logrotate, vyatta put the logrotate files into persistent storage since they are triggered by rsyslog itself. I have them currently moved to /etc/logroate.d since they are configured with a size. But this might be prone to a race condition. @c-po I think we need some kind of persistent storage for vyos as well if we want to decom /opt/vyatta at one point. Would be also good for T741.
I'm going to be busy with testing and work this week and I know you are busy as well, so no rush on an answer.

Jul 17 2018, 10:44 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jul 16 2018

hagbard added a comment to T736: Rewrite remote logging (syslog) to XML/Python.

If anyone wants to view the progress, here is the link to the devel version.
https://github.com/hagbard-01/vyos-1x/blob/devel/src/conf_mode/syslog.py

Jul 16 2018, 10:57 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard closed T726: DHCP server statistic is empty in 1.2 as Resolved.

status set to resolved. git repo needs to be merged.

Jul 16 2018, 4:09 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jul 15 2018

hagbard added a comment to T741: move user home to persistent storage.

I would start to look into /opt/vyatta/sbin/install-image*, those are the 'install image' scripts, you can see the mounts there since the OS part is a squashfs mount.

Jul 15 2018, 4:24 PM · VyOS 1.5 Circinus

Jul 13 2018

hagbard claimed T744: VYOS do not start hostapd when channel is set to 0 for ACS.
Jul 13 2018, 4:44 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jul 12 2018

hagbard claimed T743: VYOS do not restart hostapd service once new channel is set for AP.
Jul 12 2018, 5:25 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T736: Rewrite remote logging (syslog) to XML/Python.

Yup, that's what I think too.

Jul 12 2018, 5:02 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jul 11 2018

hagbard changed the status of T736: Rewrite remote logging (syslog) to XML/Python from Open to In progress.

@syncer, @c-po /opt/vyatta/etc/logrotate/global is generated as well (logrotate for syslog files), where should I place the new one just under /etc/logrotate.d? It's going to be generated via the cli config, so an image update wouldn't do anything bad.
Also, I'm going to created different config files, rather than 1 global one. That way, we could later drop in database logging support and the such. As far as I have seen, you can currently only log to a remote host.

Jul 11 2018, 11:05 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jul 10 2018

hagbard added a comment to T696: Rewrite conntrack sync to XML.

Sounds good, I experimented already with it. I can drop in certain functions into the same nodes. So the existing ones will still work. However the implementation of it will take a few weeks, primarily testing will be crucial.
The other option which I think might be a good one, is to implement everything which does currently exist and shift the new functions in for each update. That way rollbacks should be way easier and the overview might be better too.
I really like the functions I read about and played with them already in VMs, you can actually download a file and kill 1 firewall which doesn't affect your connection. So, multiple sync interfaces should be the way to go anyway.
I gotta think about it a bit more, op-mode is way easier :).

Jul 10 2018, 11:25 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hagbard moved T726: DHCP server statistic is empty in 1.2 from Needs Triage to In Progress on the VyOS 1.2 Crux (VyOS 1.2.0-rc1) board.

I implemented the hack I proposed, in my tests it did work quite well. Let me know if there are still issues.

Jul 10 2018, 10:35 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T696: Rewrite conntrack sync to XML.

to give you an idea what I have in mind:

Jul 10 2018, 8:16 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hagbard added a comment to T696: Rewrite conntrack sync to XML.

Oh there is more stuff, like the different modes and IPv6 which I think need to be implemented as well. My concern is if I change the nodes and all that stuff for the cli, it requires migration scripts, otherwise it will break configs from people who update.
How do you usually deal with that stuff?

Jul 10 2018, 8:06 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hagbard added a comment to T696: Rewrite conntrack sync to XML.

Making progress. There is a ton of options not implemented (e.g. multicast with more than 1 interface for HA etc.), if I implement it now I suppose I will need to write migration scripts?
According to https://manpages.debian.org/testing/conntrackd/conntrackd.conf.5.en.html, there are really nice features which I think become very handy once implemented, but I would also have to change the cli interface, probably putting sections in.
e.g.
set multicast default interface ...
set multicast ha1 interface ...
set multicast ha2 interface ...

Jul 10 2018, 7:47 PM · VyOS 1.3 Equuleus (1.3.0-epa1)

Jul 9 2018

hagbard changed the status of T726: DHCP server statistic is empty in 1.2 from In progress to Open.

vyatta deployed their own and modified dhcpd, their modification is to set the shared-networkname in the lease file (https://github.com/vyos/vyatta-dhcp3/blob/lithium/server/db.c#L135), which is parsed by get_active() (/opt/vyatta/share/perl5/Vyatta/DHCPServerOpMode.pm).
It's possible to set variables on a lease event (more events like release are possible as well, or executing scripts on a lease etc.). However, since there are multiple new features available, I think the best is to rewrite the dhcp-server (ipv4) stuff first.

Jul 9 2018, 3:35 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jul 6 2018

hagbard added a comment to T726: DHCP server statistic is empty in 1.2 .

Due to the newer dhcp-server package in jessie, the entries in dhcp.leases have changed and shared-network is not exposed in there, that is where the vyatta parser module fails ( /opt/vyatta/share/perl5/Vyatta/DHCPServerOpMode.pm ) in function get_active().

Jul 6 2018, 11:13 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard changed the status of T726: DHCP server statistic is empty in 1.2 from Open to In progress.

I can replicate it, looking into it.

Jul 6 2018, 10:26 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T696: Rewrite conntrack sync to XML.

All right. op-mode should be ready to go, but I haven't request a pull yet. I'm going to do still some tests and then moving onto cfg-mode.

Jul 6 2018, 10:11 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hagbard closed T721: Rewrite conntrack sync to XML - tracking as Resolved.

I'm gonna close 721 since self-assign does now work. I track via the original T696.

Jul 6 2018, 8:11 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard closed T721: Rewrite conntrack sync to XML - tracking, a subtask of T696: Rewrite conntrack sync to XML, as Resolved.
Jul 6 2018, 8:11 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hagbard moved T696: Rewrite conntrack sync to XML from Need Triage to In Progress on the VyOS 1.2 Crux board.
Jul 6 2018, 8:10 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hagbard changed the status of T696: Rewrite conntrack sync to XML from Open to In progress.
Jul 6 2018, 8:02 PM · VyOS 1.3 Equuleus (1.3.0-epa1)

Jul 5 2018

hagbard added a comment to T696: Rewrite conntrack sync to XML.

Hi Guys,

Jul 5 2018, 11:00 PM · VyOS 1.3 Equuleus (1.3.0-epa1)

Jul 4 2018

hagbard added a comment to T721: Rewrite conntrack sync to XML - tracking.

Please have a look, I changed some logic compared to the original perl script. I read the real set values, while many are set in the perl script itself. The interface definition and everything else is still pending. My ideas was to have the op stuff implemented first and put in place, since the cfg stuff is separate anyway.
Just copy the script into the vyos home directory and call it from there before it makes its way into the vyos-1x package.
I would really appreciate if anyone with a life config could test it, I just configured 2 VMs and test it.

Jul 4 2018, 8:17 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jul 3 2018

hagbard renamed T720: PPTP authentication username and password need to be restricted from PPTP authetication username and pasword need to be restricted to PPTP authentication username and password need to be restricted.
Jul 3 2018, 7:16 PM · VyOS 1.2 Crux (VyOS 1.2.0-rc5), VyOS-1.2.0-GA

Jun 28 2018

hagbard added a comment to T719: SNMP ifAlias Description missing.

@Line2 I tested a RHEL7 (currently at work) and a debian 9. I can only imagine that their either used the patch you mentioned, or do it a similar way like observium does it with their perl script. it looks like the patch never made it into upstream in net-snmp, I haven't checked the source yet.

Jun 28 2018, 8:25 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T719: SNMP ifAlias Description missing.

The only thing I can think about is, to read ifAlias from /sys and insert it into the snmp table. @c-po what do you think about this?

Jun 28 2018, 7:34 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard claimed T719: SNMP ifAlias Description missing.

Did you do that on vyos? I tried and it doesn't work. That alias is usually set under /sys/class/net/<device>/ifalias, but the ip command didn't do it, nor was I successful setting it manually.

Jun 28 2018, 7:26 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T719: SNMP ifAlias Description missing.

I see, yes .1.3.6.1.2.1.31.1.1.1.18 is empty and would have to be updated/set when the interface description is set. I believe it is not set in any Linux distribution, I also checked RHEL and the such, they leave it all empty. So, I would think it's a feature request than, rather than a bug, isn't it?

Jun 28 2018, 5:44 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jun 27 2018

hagbard moved T721: Rewrite conntrack sync to XML - tracking from Need Triage to In Progress on the VyOS 1.2 Crux board.
Jun 27 2018, 11:13 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard changed the status of T721: Rewrite conntrack sync to XML - tracking from Open to In progress.
Jun 27 2018, 11:12 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard moved T720: PPTP authentication username and password need to be restricted from Need Triage to In Progress on the VyOS 1.2 Crux board.
Jun 27 2018, 7:14 PM · VyOS 1.2 Crux (VyOS 1.2.0-rc5), VyOS-1.2.0-GA
hagbard added a comment to T720: PPTP authentication username and password need to be restricted.

possibly affected:
./interfaces/bonding/node.tag/pppoe/node.tag/user-id
./interfaces/bonding/node.tag/vif/node.tag/pppoe/node.tag/user-id
./interfaces/ethernet/node.tag/pppoe/node.tag/user-id
./interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/user-id
./interfaces/openvpn/node.tag/authentication/username
./service/pppoe-server/authentication/local-users/username
./service/snmp/v3/trap-target/node.tag/user
./service/snmp/v3/user
./service/ssh/access-control/allow/user
./service/ssh/access-control/deny/user
./service/webproxy/authentication/ldap/username-attribute
./service/webproxy/url-filtering/squidguard/source-group/node.tag/user
./system/login/user
./system/package/repository/node.tag/username
./system/syslog/user
./vpn/l2tp/remote-access/authentication/local-users/username
./vpn/pptp/remote-access/authentication/local-users/username

Jun 27 2018, 6:54 PM · VyOS 1.2 Crux (VyOS 1.2.0-rc5), VyOS-1.2.0-GA
hagbard changed the status of T720: PPTP authentication username and password need to be restricted from Open to In progress.

does only affect username in pptp and l2tp.

Jun 27 2018, 6:33 PM · VyOS 1.2 Crux (VyOS 1.2.0-rc5), VyOS-1.2.0-GA
hagbard changed the status of T720: PPTP authentication username and password need to be restricted, a subtask of T253: Config nodes containing spaces which have sub-nodes don't work, from Open to In progress.
Jun 27 2018, 6:33 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc5)
hagbard triaged T720: PPTP authentication username and password need to be restricted as Normal priority.
Jun 27 2018, 5:53 PM · VyOS 1.2 Crux (VyOS 1.2.0-rc5), VyOS-1.2.0-GA
hagbard added a comment to T719: SNMP ifAlias Description missing.

Validated OID 1.3.6.1.2.1.2.2.1.2 (ifDescr), I think the task here can be closed as invalid request.

Jun 27 2018, 5:26 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T719: SNMP ifAlias Description missing.

Are you sure?

Jun 27 2018, 5:21 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jun 26 2018

hagbard closed Restricted Maniphest Task, a subtask of T716: SNMP: allow only alphanumerical characters for community, as Resolved.
Jun 26 2018, 10:09 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard changed the status of T716: SNMP: allow only alphanumerical characters for community from Open to In progress.
Jun 26 2018, 7:30 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard changed the status of T716: SNMP: allow only alphanumerical characters for community, a subtask of T253: Config nodes containing spaces which have sub-nodes don't work, from Open to In progress.
Jun 26 2018, 7:29 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc5)
hagbard moved T716: SNMP: allow only alphanumerical characters for community from Need Triage to In Progress on the VyOS 1.2 Crux board.
Jun 26 2018, 7:25 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a subtask for T716: SNMP: allow only alphanumerical characters for community: Unknown Object (Maniphest Task).
Jun 26 2018, 6:37 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T716: SNMP: allow only alphanumerical characters for community.

in vyos-1x:

Jun 26 2018, 5:35 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard triaged T716: SNMP: allow only alphanumerical characters for community as Normal priority.
Jun 26 2018, 5:32 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jun 25 2018

hagbard added a comment to T166: NPTv6 is broken in the rolling release 999.201609170235 .

yes, still an issue in the latest rolling. (VyOS 1.2.0-rolling+201806251824)

Jun 25 2018, 10:32 PM · VyOS 1.2 Crux (VyOS 1.2.1)
hagbard added a comment to T253: Config nodes containing spaces which have sub-nodes don't work.

Other vendors put in restrictions for that (cisco for instance allows only alpha numerical characters), that could be done in the xml with a regex to prevent the issue you have raised. I only had a look into the snmp configuration for now, but I expect that on many other places too.
Any objections about restricting the input?

Jun 25 2018, 10:15 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc5)

Jun 21 2018

hagbard added a comment to T698: Change broke bridging.

Sorry, I'm still not able to reproduce your issue. I used the same config you posted, just changed the IPs and used 19,20 and the rolling from today, everything looks just good.
When you have the issue what is the output of ' sh interfaces detail | match br'.

Jun 21 2018, 9:59 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3)

Jun 20 2018

hagbard added a watcher for VyOS 1.2 Crux: hagbard.
Jun 20 2018, 8:15 PM

Jun 19 2018

hagbard closed T201: Beep When Fully Booted as Resolved.
Jun 19 2018, 10:02 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T696: Rewrite conntrack sync to XML.

Thanks for your comment. I read the wiki page already, but wasn't sure how to proceed. How do I assign myself to a task? I didn't find an option in phabricator to do it. I think I don't have permissions for it unless I created the task, I suppose.
I did dive through the majority of the existing code and am about to do some cleanups and therefore rewriting major parts. As far as I understand, that's the long term plan anyway until 2.0 can be released.
Let me know if it doesn't make sens to do surgery on the open heart, since it's going to be remove at one point anyway. Otherwise, I would check and see how I can become most useful to the entire project in general.

Jun 19 2018, 9:56 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hagbard added a comment to T698: Change broke bridging.

@mb300sd Can you please share your config for the bridged interfaces?
I did a few tests and can't find any issues.

Jun 19 2018, 9:44 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3)
hagbard added a comment to T696: Rewrite conntrack sync to XML.

I looked into ti, the xml is fairly easy, the perl code pretty nasty, it also refers (hardcoded) to sysV initd.
In my opinion it's almost impossible to convert the perl code into python without getting eye cancer, I think the python code needs to be written from scratch (will be invisible to the enduser on the cli, options will be the same)
Let me know if you need more details, I'm more than happy to discuss my finding.
The complete rewrite won't too long either, but hard to estimate due to the fact that the original code used libs and has different scripts for config and op commands.

Jun 19 2018, 8:18 PM · VyOS 1.3 Equuleus (1.3.0-epa1)

Jun 18 2018

hagbard added a comment to T696: Rewrite conntrack sync to XML.

I'm looking into it. (not sure how I could assign the task to myself?)

Jun 18 2018, 6:06 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hagbard moved T201: Beep When Fully Booted from In Progress to Finished on the VyOS 1.2 Crux board.
Jun 18 2018, 5:49 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jun 13 2018

hagbard added a comment to T201: Beep When Fully Booted.

Thanks Christian, that helps a lot. I was assuming I only need to generate configs if I really write config data int oa local file, so I have something to compare.
Thanks again, still need to play with it a little, but I think I understand now the parts of it.

Jun 13 2018, 5:52 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jun 12 2018

hagbard added a comment to T201: Beep When Fully Booted.

Sorry I got stuck a little.
I have the interface definition written, using the new recommended style. However, create/delete and the such need to be handled in a script.

Jun 12 2018, 8:25 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Jun 6 2018

hagbard moved T201: Beep When Fully Booted from Backlog to In Progress on the VyOS 1.2 Crux board.
Jun 6 2018, 4:22 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard changed the status of T201: Beep When Fully Booted from Open to In progress.

Interface definition is the last piece which needs to be done, should happen this week.

Jun 6 2018, 4:09 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

May 26 2018

hagbard added a comment to T201: Beep When Fully Booted.

I'll take it on.

May 26 2018, 9:09 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)