aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-post
Commit message (Collapse)AuthorAgeFilesLines
* ifup-post: fix incorrect condition for RESOLV_MODSDavid Kaspar [Dee'Kej]2018-08-241-1/+1
| | | | | | | | | | This was causing the /etc/resolv.conf file to be always updated when RESOLV_MODS was not set... Before the commit 5d6156454bf8f6dab4a5fdd7e1bf6 we were not updating the /etc/resolv.conf file if the RESOLV_MODS was empty. See https://bugzilla.redhat.com/show_bug.cgi?id=1610411 for more info.
* network-scripts: setting of firewall ZONE fixedDavid Kaspar [Dee'Kej]2018-06-071-2/+2
| | | | | | | | | | | | | For currently unknown reason the dbus-send calls will fail to set the firewall zone for the given interface if we omit the --print-reply option... This looks like some kind of race-condition in dbus-send, since the --print-reply makes the call synchronous and slower. Hopefully this is only a temporary workaround until DBus is fixed. Resolves: #1586284
* network-functions: use POSIX forwarding instead of bash-ismDavid Kaspar [Dee'Kej]2017-11-091-1/+1
|
* ifup-post: always update nameserver & search entries in /etc/resolv.confDavid Kaspar [Dee'Kej]2017-11-021-57/+84
| | | | | | | | | | | | | | | | | | | | This is complete rework of how we generate the /etc/resolv.conf. Fixes: * always update 'nameserver' & 'search' entries when DNS* & DOMAIN options (respectively) were updated in ifcfg-* files * always update the order of 'nameserver' entries when the order of DNS* options was updated Enhancements: * added support for DNS3 option (equals to MAXNS value in GLIBC) * added logic to process duplicate DNS* options * added logic to process randomly omitted DNS* options (e.g. omitting DNS1 while specifying DNS2 and/or DNS3 will still work now) This work was based on these two RHEL-7.5 BZs: https://bugzilla.redhat.com/show_bug.cgi?id=1364895 https://bugzilla.redhat.com/show_bug.cgi?id=1357658
* network-scripts: forward DBus calls to /dev/nullDavid Kaspar [Dee'Kej]2017-10-311-1/+2
|
* network-scripts: firewall-cmd replaced with DBus callsDavid Kaspar [Dee'Kej]2017-10-311-3/+6
| | | | | To speed things up. Based on patch & comments from: https://bugzilla.redhat.com/show_bug.cgi?id=1497759
* 9.70-sync: sysconfig/network-scripts/* updated - part 2David Kaspar [Dee'Kej]2017-03-221-72/+77
| | | | | This commit contains a lot of whitespace changes. Use 'git diff --ignore-all-space' to display the relevant changes.
* ifup-post: check resolve.conf also with DNS2Lukas Nykryn2016-05-261-1/+8
| | | | | Cherry-picked from: da08727f3bbcc419096b160968aee83104bb7cf6 Resolves: #1316019
* Readd missing shebang. (#885821)Bill Nottingham2012-12-101-1/+1
|
* Fix calling of firewall-cmd in ifup-post/ifdown-post.Jiri Popelka2012-10-081-1/+1
| | | | firewall-cmd has been using combined longopts since 0.2.6
* Add quotes to device/zone in the firewalld support.Bill Nottingham2012-03-161-2/+2
|
* Add support for firewalld zones. (#802415, from <jpopelka@redhat.com>)Bill Nottingham2012-03-131-0/+5
| | | | | | | | | | ZONE in an ifcfg file describes the zone an interface should belong to. Zones can be configured in the firewalld configuration file. When interfaces are brought up, tell firewalld, if running, to add them to the proper zone. Similarly, remove them when they're brought down. Modified from a patch from Jiri Popelka.
* Use $() instead of `` for process expansion.Bill Nottingham2009-07-301-2/+2
| | | | Adapted from <victor.lowther@gmail.com>.
* only use the first address (#230157, <michal@harddata.com>)Bill Nottingham2007-04-161-2/+2
|
* fix logic thinko that can trip up when lookup fails (#220318)Bill Nottingham2007-01-171-4/+3
| | | | also, clean up ifconfig usage
* pass path to '.' always (#206035)Bill Nottingham2006-09-111-1/+1
|
* Provide the underlying device name to ip-up (and thus ifup-routes) for PPPMiloslav Trmac2006-03-201-1/+9
| | | | devices (#92023)
* remove support for the old firewall typeBill Nottingham2005-04-151-13/+0
|
* remove wackycommentBill Nottingham2004-08-201-2/+0
|
* fix for bug 125712: added change_resolv_conf function to network-functions; ↵Jason Vas Dias2004-07-301-2/+2
| | | | made ipup-post and ipdown-post invoke it
* revertBill Nottingham2004-07-301-1/+1
|
* fix for bug 125712: added change_resolv_conf function to network-functions; ↵Jason Vas Dias2004-07-301-1/+1
| | | | made ipup-post and ipdown-post invoke it
* support randomly named network devices, part 1Bill Nottingham2003-06-241-8/+0
| | | | | | | - use nameif - determine device type from file first, and from device name as a fallback - ditto for aliases
* fix DNS punching in the case of other rules for the DNS server (#97686, ↵Bill Nottingham2003-06-191-1/+1
| | | | <martin@zepler.org>)
* - make usernetctl use the nickname instead of the device nameBill Nottingham2003-05-281-2/+1
| | | | | | | - don't look in /etc/sysconfig/networking - fix calling of nameif before the device was loaded - clean up route handling (<harald@redhat.com>)
* revert. chain name change was reverted.Bill Nottingham2003-03-131-3/+3
|
* handle changed chain nameBill Nottingham2003-02-241-3/+3
|
* redhat-config-network writes $NAME.route, not $DEVICE.route. HandleBill Nottingham2003-02-201-1/+1
| | | | that. (#84193)
* don't write multiple search lines (#79107, <redhat-com-box@dndtales.org>)Bill Nottingham2003-01-141-3/+3
|
* switch to -I (#71201)Bill Nottingham2002-08-151-1/+1
|
* look at the right file (#68368)Bill Nottingham2002-08-131-1/+1
|
* fix iptables invocation (#71201)Bill Nottingham2002-08-121-1/+1
|
* use -n with iptables -L (#70807)Bill Nottingham2002-08-121-1/+4
|
* use iptables & our lokkit chainBill Nottingham2002-07-171-4/+4
|
* - speed up FIREWALL_MODS=no caseFlorian La Roche2002-07-051-7/+2
|
* fix invocation of need_hostname (#58946)Bill Nottingham2002-02-071-6/+7
|
* added \ on the end of the multiline ifHarald Hoyer2001-11-191-4/+4
|
* better nickname handlingHarald Hoyer2001-11-191-1/+1
|
* don't run logger if /usr isn't mountedBill Nottingham2001-10-161-1/+1
|
* need_hostname now returns true or false, doesn't set NEEDHOSTNAME. Some ↵Preston Brown2001-09-251-2/+5
| | | | reformatting fixes.
* only allow dest port 1025-65535 for DNS replies (#40833, #44038)Bill Nottingham2001-08-091-1/+1
|
* log that we're punching something through the firewallBill Nottingham2001-02-271-0/+1
|
* ifup-post could be called from places other than ifup, so recheck $FWACTIVE hereBill Nottingham2001-02-121-0/+6
|
* modify the firewall to allow any (new) DNS servers through on ifupBill Nottingham2001-02-061-9/+21
|
* fix scoping isuse (#22547)Bill Nottingham2000-12-261-1/+4
|
* fix more ifconfig greps (patch from Conectiva)Bill Nottingham2000-12-121-1/+1
|
* check for RESOLV_MODS before testingBill Nottingham2000-04-121-1/+1
|
* fix overwrite problem of resolv.conf on ippp/ppp/slip connectionsThan Ngo2000-04-041-1/+4
|
* set umask before writing /etc/resolv.confBill Nottingham2000-03-201-0/+4
|
* allow for spaces in lines that are readBill Nottingham2000-02-241-1/+1
|