summaryrefslogtreecommitdiff
path: root/scripts/system
AgeCommit message (Collapse)Author
2021-01-08T671: remove apparently unused scripts.Daniil Baturin
2020-02-05login: T1990: Migrate "system login" to XML/Python representationChristian Poessinger
2019-04-23T1327: Set the serial console speed to 115200 by defaultJohn Estabrook
Set the default serial console speed to 115200 in system update scripts, to accord with the changes in the build scripts.
2019-04-18T1344: rename RADIUS 'system login' nodesChristian Poessinger
In order to prepare for adding a RADIUS source IP address and synchronize the syntax with L2TP/PPTP the nodes have been renamed from: set system login radius-server x.x.x.x to set system login radius server x.x.x.x
2019-02-14T1174: migrate local hostname/DNS handling to vyos-1xChristian Poessinger
2019-01-23T980 and T969 update serial console baud on the flyKim
* update serial console baud on the fly * Update help of console speed, a reboot is not required anymore to set the correct baud rate.
2019-01-21T1172: vyatta_update_sysctl.pl does not support options that have multiple ↵Daniel Pro
values Updated vyatta_update_sysctl.pl, now handles multiple values
2018-06-08T652: remove PERL scripts required for SNMP serviceChristian Poessinger
2018-06-08Revert "T652: remove SNMP perl scripts"Christian Poessinger
This reverts commit 4524181410b68367d91e07552466ef577ac5b0e3.
2018-06-08T652: remove SNMP perl scriptsChristian Poessinger
2018-05-28Ignore nss mapuser when radius is enabled.Kim Hagen
2018-05-17T648: fix custom sysctl setting because of output redirectionChristian Poessinger
2018-05-16T574: remove the old system host-name/domain-name commands, moving to vyos-1x.Daniil Baturin
2018-05-07T623: Rewrite NTP subsystem in new XML style interface definitionChristian Poessinger
2018-04-05Do not restart tty, it will put you back at login screen.Kim
2018-02-20Rename the "client" NTP option to "allow-clients" to make it more clear what ↵Daniil Baturin
it does (fixes T553).
2017-12-09T414: Remove 'telnet' serviceChristian Poessinger
Telnet remote logins have been deprecated for decades. As Debian 'jessie' busybox no longer has a telnetd applet, this service is no longer available.
2017-11-03vyatta_update_console.pl uses systemd, remove inittab referenceChristian Poessinger
2017-06-11Fix to generate correct NTP config when specifying ipv6 servers.sayo
2017-04-29update udev folder location and partially fix T290Kim Hagen
2017-04-23update console settings for systemdKim Hagen
2016-03-20fix "Output Channel" config so logging will workKim Hagen
2015-02-28vyatta-cfg-system: skip over invalid ntp servers rather than exitingAlex Harpin
Skip over either invalid ntp servers, or ntp server hostnames that have failed to resolve correctly, and continue to process the rest of the configuration. Bug #94 http://bugzilla.vyos.net/show_bug.cgi?id=94
2015-02-28vyatta-cfg-system: update new ntp updating routine to work with dhcpAlex Harpin
Update the new NTP updating routines so they operate outside of configuration mode (dhcp triggered updates). This also requires changes to the vyatta-dhcp3 package (see Bug #500) Bug #94 http://bugzilla.vyos.net/show_bug.cgi?id=94
2015-02-26vyatta-cfg-system: rename variable in ntp_format subroutineAlex Harpin
Bug #94 http://bugzilla.vyos.net/show_bug.cgi?id=94
2015-02-26vyatta-cfg-system: redesign the layout and updating of ntpAlex Harpin
When NTP is configured on the system, it not only acts as a client for the configured servers, but also as a server. Although the server is only available as a time source, it still represents a service that the user hasn't specifically enabled. This commit sets the default configuration of NTP to disallow all external access, so the system acts purely as a client by default, and also introduces the ability to configure which addresses / subnets are allowed to both query and use it as a time source. If the servers configured are specified as host names, these are resolved to IP addresses before being added to ntp.conf, with the same process carried out after name server changes. syntax 'set system ntp client address' Bug #94 http://bugzilla.vyos.net/show_bug.cgi?id=94
2015-02-14vyatta-cfg-system: remove blank domain search and expand comment typeAlex Harpin
Tighten the checks for configured search domains to exclude adding unnecessary blank domains and expand the comments added to /etc/resolv.conf to indicate the source of the search domains. Bug #486 http://bugzilla.vyos.net/show_bug.cgi?id=486
2015-02-14vyatta-cfg-system: redesign the layout and updating of /etc/resolv.confAlex Harpin
Following the documentation, /etc/resolv.conf should only have comments inserted that start with # at the beginning of a line, comments in other locations are not supported. The exisiting method of tracking changes in this file (done by both vyatta-system-nameservers and vyatta_update_resolv.pl) relies on this unsupported feature. This commit restructures the updates so they use comments on the preceding line to track changes, along with updating the old style comments to the new ones when the relevant scripts are called. This also fixes a previous issue (which was reverted) where IPv6 nameservers worked incorrectly when the /etc/resolv.conf line ended with a comment. Bug #486 http://bugzilla.vyos.net/show_bug.cgi?id=486
2015-02-09vyatta-cfg-system: invalid resolv.conf format causing extra DNS requestAlex Harpin
The resolv.conf file contains comments at the end of the search and domain entries which cause unexpected behaviour on lookups. Moving these to the line above in each case fixes the issue. Bug #468 http://bugzilla.vyos.net/show_bug.cgi?id=468
2015-01-24vyatta-cfg-system: changes to update_inittab for xen console accessAlex Harpin
Update the update_inittab function so when the system is configured for Xen console (hvc0) access, the correct values are written out to /etc/inittab.
2015-01-24vyatta-cfg-system: formatting changes for style consistencyAlex Harpin
Update scripts/system/vyatta_update_console.pl to have consistent identation levels and style throughout.
2014-10-31Initial import fo vyatta_update_sysctl.plJason Hendry
2014-09-14vyatta-cfg-system: rename allow-dhcp-nameservers and change to typelessAlex Harpin
Rename allow-dhcp-nameservers to disable-dhcp-nameservers and update the logic to take the new meaning into account. The option is now also typeless, so the node is either absent (default) or present (enabled). Format 'set / delete system disable-dhcp-nameservers' Linked to Bug #182 and Bug #308 Bug #314 http://bugzilla.vyos.net/show_bug.cgi?id=314
2014-09-10vyatta-cfg-system: expand 'set system allow-dhcp-nameservers' logicAlex Harpin
Expand the logic in 'set system allow-dhcp-nameservers', so that in addition to either allowing / denying DHCP related updates to resolv.conf when the interface changes state, it will also either add or remove the currently supplied DHCP name-servers depending on it's state. This change in name-servers will take place immediately on commit. Bug #309 http://bugzilla.vyos.net/show_bug.cgi?id=309
2014-09-09vyatta-cfg-system: add 'set system allow-dhcp-nameservers' optionAlex Harpin
Instead of simply allowing / denying DHCP related updates to resolv.conf based on the current values of 'set system name-server', as initially proposed for Bug #182 (http://bugzilla.vyos.net/show_bug.cgi?id=182), this patch replaces that behaviour with a global option to allow / deny these updates. Add 'set system allow-dhcp-nameservers' as a boolean value that has the default value of true, so allowing DHCP nameserver updates by default. Bug #308 http://bugzilla.vyos.net/show_bug.cgi?id=308
2014-09-09vyatta-cfg-system: revert bb71cf5b7b3a48812e28dbefba8c535f9bbf9973Alex Harpin
Reverting commit bb71cf5b7b3a48812e28dbefba8c535f9bbf9973 as it breaks the logic in vyatta_update_resolv.pl for removing name servers when called by dhclient-script. As it stands, the commit causes name server entries to be left behind in resolv.conf when a DHCP interface is deleted, resulting in possibly old or invalid entries remaining indefinitely. Bug #307 http://bugzilla.vyos.net/show_bug.cgi?id=307
2014-09-09vyatta-cfg-system: formatting changes for style consistencyAlex Harpin
Update scripts/system/vyatta_update_resolv.pl to have consistent identation levels and style throughout.
2014-09-07vyatta-cfg-system: prevent dhcp updating dns when statically configuredAlex Harpin
When DNS settings are statically configured, prevent DHCP interfaces from appending to resolv.conf with additional name servers. If the system has been configured with a static name server, just use that instead of accepting ISP provided name servers. These can be accepted again by simply deleting the statically configured name servers. Bug #182 http://bugzilla.vyos.net/show_bug.cgi?id=182
2014-09-07vyatta-cfg-system: formatting changes for style consistencyAlex Harpin
Update scripts/system/vyatta_update_resolv.pl to have consistent identation levels and style throughout.
2014-04-29Added feature to send log message to remote syslog server over UDP or TCP.Abdelouahed Haitoute
See VyOS bug 195 for more information about the feature request.
2014-03-21using a DNS server with an IPv6 address.tea2ka
It seems that immediately the back of an IPv6 address will not be normally recognized if it is not "\n" when using a DNS server with an IPv6 address.
2013-03-06Sync up SNMPv3 supportJames Davidson
SNMP-135 store SNMP superuser password to config file SNMP-130 add engineId for trap-target SNMP-134 use 'stop' and 'start' instead of 'restart' SNMP-141 change engineID syntax checking SNMP-136 Users are lost after changing TSM port SNMP-149 TLS Error: Permission denied SNMP-147 Not correct priority in TSM users SNMP-148 Configuring already use port for TSM is destroying users. SNMP-151 Errors in logs after first snmp configuration SNMP-152 Hide 'No such file or directory' error message SNMP-153 Debug messages after 'delete service snmp' SNMP-157 Run Perltidy for all Perl scripts SNMP-158 change syntax of trap-target engineID SNMP-163: added script to check name, apply it for user, group and view names SNMP-161 Faulty configuration with many trap-target SNMP-160 Look for TSM keys in /config folder SNMP-162 CLI permit not correct oid SNMP-163: typo in script SNMP-160 Look for TSM keys in /config folder SNMP-163: added support of upper case for names in the script SNMP-163: create rule for names, permit only a-zA-Z0-9 SNMP-163: typo
2013-01-29Add ability to restart services when hostname changesJames Davidson
Currently only restart rsyslog but more can be added as needed. Fixes bug 8237.
2012-09-19Set hostname after updating hosts fileJames Davidson
Fixes bug 8380
2012-09-10Update /etc/hosts when host name and domain name changesJames Davidson
2012-09-04Configure logrotate to maintain log file ownershipJames Davidson
logrotate needs the create config option so that it keeps the original log file's permissions and ownership. Fixes bug 8240
2012-04-18Use rsyslog to trigger log rotationJames Davidson
The previous implementation of log rotation used an hourly cron job to check log file size and possibly perform a rotation. If the logging rate is high, this interval may allow for root file system space exhustion. Utilizing rsyslog's outchannel mechanism enables log rotation to be initiated as soon as the log file becomes larger than its configured size. Fixes Bug 7807.
2012-02-21Fix server property optionStephen Hemminger
Bug 7623 Patch provided by Stig.
2011-12-21interfaces: don't add config for missing devicesStephen Hemminger
If device disappears or is renamed between the time udev script is run, and the vyatta-router script is run; then don't add an entry to the config file.
2011-11-22Fix perl deprecated warning with 5.14Stephen Hemminger
Code of the form: for $i qw(a b c) causes the warning: Use of qw(...) as parentheses is deprecated