todd
99a25686c3
fix lies in netstart; replacement wording from halex@
pointed out by Ryan Kavannagh rak at debian dot org
11 years ago
rpe
5fcaf72d6d
remove "Invalid interface name" message
requested by krw@
ok halex@
12 years ago
rpe
a78a8d94ea
use the more compact version of the check for ifconfig'able interfaces
from install.sub
with feedback from and ok halex
12 years ago
rpe
d83e309127
- remove isalphanumeric() and replace it with a shell pattern, that
tries a bit harder to identify invalid interface names and in
this case emit an error message.
- use [[ $1 == autoboot ]] to avoid a shell error message due to
possible spaces in first argument
- no change in functionality
discussed with krw and halex
ok ("I like this") krw
12 years ago
deraadt
e73b0d38a5
The new ypbind changes requires that the domainname be set before
rc.conf is run. There's no real downside.
ok aja
13 years ago
guenther
a87068f040
Eliminate some $? tests by rolling the command into the condition
ok halex@
13 years ago
mpf
9b6c17e435
Add svlan(4) startup bits.
From markus@. OK naddy, claudio, reyk.
13 years ago
sobrado
f7849bd797
fix an unbalanced parenthesis in a comment; while here, split the comment
in a better place to make it more readable.
ok jmc@ and miod@
14 years ago
todd
a1bd980ea1
permit e.g. -inet6 syntax by slurping all lines not just some
noticed by rhsv6 at hushmail dot com, ok sthen@
14 years ago
henning
91aac1a47c
when setting up lo0 use 127.0.0.1/8 instead of 127.0.0.1 for clarity and
correctness. it's not 1992 any more, kids. ok mcbride dlg krw
15 years ago
todd
564c480e70
o stop reordering ifconfig arguments (e.g. after 'up ..')
o only stop processing if inet or inet6 lines are malformed
o everything not a specially handled bit is passed to ifconfig unmangled
noticed by several after the move from bridgename.bridge0 -> hostname.bridge0
prodded by deraadt@, tested by and feedback from several
man page bits 'look fine' jmc@
15 years ago
deraadt
315ece0432
Stop supporting bridgename.bridge* files, and move to hostname.bridge*
files. To cope with this change, read about the mv command.
ok claudio todd
15 years ago
simon
deb468f678
change variable i to $i in an expression of ifstart() for consistency
with the rest of the file. no functional change.
feedback from sthen@, ok krw@
15 years ago
jdixon
be9938a1c6
Delay creation of tun(4) interfaces until the underlying interface and
routes are available. This fixes usage for some OpenVPN users that start
it from hostname.tun*.
Tested by Johan Huldtgren. ok sthen@, johan@.
15 years ago
markus
c80ee407db
delay /etc/netstart until IPv6-DAD (dup-address-detection) is completed.
ok fries, hshoexer, claudio
16 years ago
sthen
009f476425
Tools from /usr may not be used in netstart since it may be NFS-mounted
and not available at that time. Rewrite the hostname.if permission check
to use only /bin/ls and the shell. Requested by deraadt.
ok todd, "Twisted." deraadt
16 years ago
sthen
eca03c4660
Prevent warning about insecure hostnames where no /etc/hostname.*
exists. From wcmaier@.
Check target of symbolic links to avoid noise at boot and in
seucrity output where you have several interfaces symlinked to one
config file.
"If you think this is the right thing to do" deraadt@
16 years ago
todd
038173408e
warn once not 3 times in case of a non existent file, discussed with deraadt
originally pointed out by Johan Torin
16 years ago
deraadt
4fe23d02f0
Ensure that hostname.* files are also re-chowned to root.wheel at each
boot as discussed with claudio while eating tasty donairs. ok todd
16 years ago
deraadt
d5af9ca8a2
before using them, force hostname.* files to be unreadable by world
first version from todd, ok millert
16 years ago
brad
57a5c786db
Execute rtsol after turning up trunk(4) and vlan(4) interfaces so they're
taken into consideration for rtsol.
ok reyk@ dlg@
17 years ago
mpf
871544b3fe
Do not bring up pfsync(4) before the working ruleset
has been loaded. Otherwise, states that are received during the
initial bulk update mismatch the correct pf-checksum and
do not attach to the rules.
Problem identified by david@. Fix done in collaboration.
OK henning@
17 years ago
david
708e7bdd1d
move the delay for IPv6 DAD to after all interfaces have started
fixes problems with daemons being unable to bind to all addreses at boot
ok itojun@ hshoexer@
17 years ago
itojun
e160d6de4a
reject multicast packet without scope identifier specified.
18 years ago
todd
bd81c371ae
do not add an extra space; nwid and description come out wrong
fix as proposed by maja@, thanks!
18 years ago
david
66c3296c0e
nuke extra whitespace
19 years ago
reyk
287879a1b9
multicast_host=YES only works if a valid default gateway is available.
validate this condition and reject multicast traffic on failure.
ok todd@ naddy@
19 years ago
todd
8a9448cddd
fix inspired by pr#4590
ok krw@
19 years ago
todd
ab8afdab6a
better logic from krw@:
- do not process mygate for v4 if dhcp
- do not process mygate for v6 if rtsol
this also makes the mygate processing logic more readable
ok krw@
19 years ago
todd
3b5bf93ce3
add v6 support for /etc/mygate
ok deraadt@ mickey@ krw@
same functionality tested/ok'ed by by mickey, brad, matthieu, and me
with this one may now put a v6 IP in /etc/mygate on a separate line from
the v4 default gateway and netstart will do the right thing
19 years ago
todd
b408cf70af
shrink stripcom(), sync with install.sub
ok krw@
19 years ago
todd
d5fb505239
trunk must be started after physical ethernet devices, but before vlan.
populate ifmstart lines accordingly.
prodded/tested by brad@
ok reyk@
19 years ago
todd
ab12acee53
use eval consistently, fixes description quotes on rtsol and dhcp
fix inspired by and closes pr 4495
ok krw@
19 years ago
todd
65954c79fd
Introduce 'ifmstart' to deal with starting multiple interfaces minus a list
of interfaces.
This reduces the netstart script by 174 chars, 13 words, and 19 lines, but
more importantly, makes it more simple and less cluttered should more special
case/orderings be needed.
ok brad@ and pr 4197 submitter, inspired by and closes pr 4197
19 years ago
djm
188f234dcf
unbreak; ok pval@
20 years ago
deraadt
bd9da8ca6c
if dhcp is used to get an address on any interface, ignore /etc/mygate
ok krw
(this lets us do something rather cool with the zaurus in particular)
20 years ago
mcbride
ab1de5501f
Bring up the carp(4) interface before default route.
ok pascoe@ mpf@
20 years ago
millert
d40f10d2ee
Add a copy of stripcom so /etc/netstart can be run standalone again.
OK deraadt@
20 years ago
millert
47476e71f8
Allow comments in /etc/{myname,mygate,defaultdomain}; OK deraadt@
20 years ago
itojun
77867ecd27
remove "route $hostname 127.0.0.1" line. deraadt ok
*** please update /etc/netstart and test if it works ok for you ***
20 years ago
deraadt
04be0693ac
make all route commands use -qn; ok mcbride henning
20 years ago
deraadt
a35bfe5a7a
one last route command lacking -qn
20 years ago
mcbride
61ebadc6fe
Make sure pfsync is brought up before carp.
ok deraadt@
21 years ago
mcbride
e97abdaff5
Delay pfsync(4) configuration, as the syncif has to be configured in
advance. From Thorsten Lockert.
21 years ago
deraadt
b95ae6b3be
ok, it took quite a bit of prodding but itojun finally explained why the
extra sleep 1 is in here, and we came to the conclusion it is safe to
delete it. whee.
21 years ago
deraadt
d1616a3325
repair v6 lo0 documentation
21 years ago
deraadt
8b665c17b7
add loopback routes late
21 years ago
deraadt
45879fe336
create all routes with -q; markus ok
21 years ago
millert
94da5d3f87
Need to do "ifconfig create" for bridge interfaces too.
21 years ago
markus
61d17c5794
add support for ifconfig clone; from netbsd; ok deraadt, henning
21 years ago