Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2011 21:31:39 +0000
From:      Pete <pete@nrth.org>
To:        freebsd-net@freebsd.org
Subject:   Restarting Network Services Without Rebooting
Message-ID:  <1321911099.6148.11.camel@purity.nrth.lab>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
(Apologies for the incorrect post to mailing.freebsd.questions
newsgroup :( )


Hello,

Occasionally I'm disconnected from my cable ISP (Virginmedia) which is
making me wonder whether or not it's my fault most of the time or just
occasional 'glitches' with the cable connection.

I have a FreeBSD 8.2 firewall/router box (a Pentium 4 2.8GHz PC clone)
which has two NICs installed. PF is running on this box.

I've recently added the following two rules to my /etc/pf.conf in order
to help with DHCP allocations.


pass in quick log (all) on $ext_if inet proto tcp from any port 67:68 to
any port 67:68 keep state flags S/SA 

pass in quick log (all) on $ext_if inet proto udp from any port 67:68 to
any port 67:68 keep state


I have to say that 90% of the time this firewall/router box runs
flawlessly. The above DHCP 'additions' to the /etc/pf.conf have only
been made today so time will tell whether there's any noticeable
difference.

Today I had another outage (before the firewall DHCP additions were
made) and I got to thinking about how I could restart the network
services on my firewall/router box without rebooting the machine itself.

After some searching I found the following commands which didn't produce
any errors, but I was left with no IP address assigned to my Internet-
facing NIC ($ext_if, which is actually 'sis0').

/etc/rc.d/netif restart && /etc/rc.d/routing restart

If I reboot this machine it *always* configures the network correctly,
providing that there's no problem with the ISP's connection.

Does anyone know what I'm doing wrong here ? Are there more or fewer
commands needed to simulate the effect a reboot of a FreeBSD 8.2 box
would have on general networking ? Should I have
included /etc/rc.d/dhclient in the above command line as well ?

Thanks for your time.

Regards,

Pete.


[-- Attachment #2 --]
0	*H
010	+0	*H
0400
	*H
0}10	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1)0'U StartCom Certification Authority0
071024210155Z
171024210155Z010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0"0
	*H
0
	-).2AUGo#G
B|NDRpM-B=o-we5JQpa>O.#._<V
[~**pz~3WG.ᘟMlr[<Ce6fqO"uxfWN#uicgkv$Lb%y`_{`xK'GN00U00U0USr풜\|~5NԸQ0U#0N@[i04hCA0f+Z0X0'+0http://ocsp.startssl.com/ca0-+0!http://www.startssl.com/sfsca.crt0[UT0R0'%#!http://www.startssl.com/sfsca.crl0'%#!http://crl.startssl.com/sfsca.crl0U y0w0u+70f0.+"http://www.startssl.com/policy.pdf04+(http://www.startssl.com/intermediate.pdf0
	*H

}x,\c^#wMq}>UK/^yX֏y	frMIŲB61ymQ󸟆ҨݬZ0&;@#13qۑ&	̢o	6r_;GO>*I(	74XS1r3)!LJy6Kotˆ#
_wSr
;B
ADp(fs䰷6%.W0J3:bC<8t X1<Cn=t==wST~\wkBf|15zUP)(IjVB!OfI=bb\4-*em/нSJm7N[]'@ڽD9Kr>R7/|o^I@ټ'Pa$ z9a'L)(
I}vcH]۸D*W}
m>Q|C.(,lQ0a0Ib0
	*H
010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0
110405132639Z
120405052459Z01 0U
397038-0DPULc6F3ic21JEg10U
Persona Not Validated1)0'U StartCom Free Certificate Member10	*H
	
pete@nrth.org0"0
	*H
0
rB'K%Y#:铮B{/&,)vc^7P:09zzzS	G@-^^;+vͱ(jjJ
ULS=n$%5;X2L’r_Ev<\V^FcXٓ;ot[Id&м
{NūL4
bd|OO^Ll˯r ~X{8ja6-y00	U00U0U%0++0U!5]'.3ZOuM0U#0Sr풜\|~5NԸQ0U0
pete@nrth.org0BU 90501+70 0.+"http://www.startssl.com/policy.pdf04+(http://www.startssl.com/intermediate.pdf0+00
StartCom Ltd.0Limited Liability, see section *Legal Limitations* of the StartCom Certification Authority Policy available at http://www.startssl.com/policy.pdf06U/0-0+)'%http://crl.startssl.com/crtu1-crl.crl0+009+0-http://ocsp.startssl.com/sub/class1/client/ca0B+06http://aia.startssl.com/certs/sub.class1.client.ca.crt0#U0http://www.startssl.com/0
	*H
!zJdᝡLfC2}uʠr"4ˁōɠ'ʝ0TB*Ux;	&N>S{O?ϺZ^b:Ҭ*"Tj`rFh(:܈kFځ̱iĤg([Fi\s!ńnԪM˵9݆qz“~YzZQ;`s<ͽ%؁zx~Ds+/NBR/50a0Ib0
	*H
010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0
110405132639Z
120405052459Z01 0U
397038-0DPULc6F3ic21JEg10U
Persona Not Validated1)0'U StartCom Free Certificate Member10	*H
	
pete@nrth.org0"0
	*H
0
rB'K%Y#:铮B{/&,)vc^7P:09zzzS	G@-^^;+vͱ(jjJ
ULS=n$%5;X2L’r_Ev<\V^FcXٓ;ot[Id&м
{NūL4
bd|OO^Ll˯r ~X{8ja6-y00	U00U0U%0++0U!5]'.3ZOuM0U#0Sr풜\|~5NԸQ0U0
pete@nrth.org0BU 90501+70 0.+"http://www.startssl.com/policy.pdf04+(http://www.startssl.com/intermediate.pdf0+00
StartCom Ltd.0Limited Liability, see section *Legal Limitations* of the StartCom Certification Authority Policy available at http://www.startssl.com/policy.pdf06U/0-0+)'%http://crl.startssl.com/crtu1-crl.crl0+009+0-http://ocsp.startssl.com/sub/class1/client/ca0B+06http://aia.startssl.com/certs/sub.class1.client.ca.crt0#U0http://www.startssl.com/0
	*H
!zJdᝡLfC2}uʠr"4ˁōɠ'ʝ0TB*Ux;	&N>S{O?ϺZ^b:Ҭ*"Tj`rFh(:܈kFځ̱iĤg([Fi\s!ńnԪM˵9݆qz“~YzZQ;`s<ͽ%؁zx~Ds+/NBR/51o0k0010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CAb0	+0	*H
	1	*H
0	*H
	1
111121213139Z0#	*H
	18FK˶s0	+710010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CAb0*H
	1010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CAb0
	*H
-ݽJL2:GbJXKE6or$+bLKr3(5`t
Nz'H(iU^3!K?B;vl108Q
PYㄕdL³ڸvfr.
KE6F2Z^29u^6)vɞ.%D}d
7N
^$E:`rk+<!l

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1321911099.6148.11.camel>