gateway_enable=YES without a restart
Hi, I'm new to FreeBSD, I've had my box running for about 3-4 weeks now. Anyway I've decided to enable it as a gateway by editing the /etc/rc.conf file. I previously had it running as a gateway but I commented the gateway_enable=YES line. Now I want to uncomment this line so it routes my traffic, but I don't want to actually restart my box because its got a 17 day uptime, and I want to see how high I can get it, and the past 17 days would of been wasted if I reboot :) Sorry if this sounds a bit lame, but I'm trying to beat my 21day uptime on Windows 2k. So what command could I type, or which process could I kill/restart so that my box will function as a gateway? I had a quick scan through the man page on rc.conf, but didn't find anything of relevance, but I did find many other useful lines I might add to my rc.conf file later (just to play around with).. Anyway I'll be very gratefull if someone could tell me how to keep this uptime :) thanks Andrew To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: gateway_enable=YES without a restart
Thus spake Andrew Brampton ([EMAIL PROTECTED]): Hi, I'm new to FreeBSD, I've had my box running for about 3-4 weeks now. Anyway I've decided to enable it as a gateway by editing the /etc/rc.conf file. I previously had it running as a gateway but I commented the gateway_enable=YES line. Now I want to uncomment this line so it routes my traffic, but I don't want to actually restart my box because its got a 17 day uptime, and I want to see how high I can get it, and the past 17 days would of been wasted if I reboot :) # sysctl net.inet.ip.forwarding=1 Nick -- We demand rigidly defined areas of doubt and uncertainty. -- Douglas Adams To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: gateway_enable=YES without a restart
On Sun, Nov 03, 2002 at 11:06:04PM -, Andrew Brampton wrote: Hi, I'm new to FreeBSD, I've had my box running for about 3-4 weeks now. Anyway I've decided to enable it as a gateway by editing the /etc/rc.conf file. I previously had it running as a gateway but I commented the gateway_enable=YES line. Now I want to uncomment this line so it routes my traffic, but I don't want to actually restart my box because its got a 17 day uptime, and I want to see how high I can get it, and the past 17 days would of been wasted if I reboot :) Sorry if this sounds a bit lame, but I'm trying to beat my 21day uptime on Windows 2k. So what command could I type, or which process could I kill/restart so that my box will function as a gateway? sysctl net.inet.ip.forwarding=1 is the command you are looking for. (This is most easily figured out by looking in /etc/rc.network and seeing what command is executed when rc.conf contains gateway_enable=yes ) I had a quick scan through the man page on rc.conf, but didn't find anything of relevance, but I did find many other useful lines I might add to my rc.conf file later (just to play around with).. -- Insert your favourite quote here. Erik Trulsson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: gateway_enable=YES without a restart
On Sun, Nov 03, 2002 at 11:06:04PM -, Andrew Brampton wrote: So what command could I type, or which process could I kill/restart so that my box will function as a gateway? Just run: sysctl net.inet.ip.forwarding=1 In general, if you're setting a variable in rc.conf and what to see what it actually does, then you can run: grep gateway_enable /etc/rc* and then look in each file to see which commands are invoked. Ceri -- Remember the mines of the legions! To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: gateway_enable=YES without a restart
Hi, I'm new to FreeBSD, I've had my box running for about 3-4 weeks now. Anyway I've decided to enable it as a gateway by editing the /etc/rc.conf file. I previously had it running as a gateway but I commented the gateway_enable=YES line. Now I want to uncomment this line so it routes my traffic, but I don't want to actually restart my box because its got a 17 day uptime, and I want to see how high I can get it, and the past 17 days would of been wasted if I reboot :) Sorry if this sounds a bit lame, but I'm trying to beat my 21day uptime on Windows 2k. So what command could I type, or which process could I kill/restart so that my box will function as a gateway? sysctl -w net.inet.ip.forwarding=1 I had a quick scan through the man page on rc.conf, but didn't find anything of relevance, but I did find many other useful lines I might add to my rc.conf file later (just to play around with).. Anyway I'll be very gratefull if someone could tell me how to keep this uptime :) thanks Andrew To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: gateway_enable=YES without a restart
On Sun, Nov 03, 2002 at 11:06:04PM -, Andrew Brampton wrote: I'm new to FreeBSD, I've had my box running for about 3-4 weeks now. Anyway I've decided to enable it as a gateway by editing the /etc/rc.conf file. I previously had it running as a gateway but I commented the gateway_enable=YES line. Now I want to uncomment this line so it routes my traffic, but I don't want to actually restart my box because its got a 17 day uptime, and I want to see how high I can get it, and the past 17 days would of been wasted if I reboot :) Sorry if this sounds a bit lame, but I'm trying to beat my 21day uptime on Windows 2k. So what command could I type, or which process could I kill/restart so that my box will function as a gateway? sysctl net.inet.ip.forwarding=1 That, and appropriate entries in your routing tables are all you need to make your machine route packets between interfaces. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: gateway_enable=YES without a restart
Well thankyou all for your replies, that one line did the trick, and now I know where to look in future for rc.conf settings. Andrew - Original Message - From: Andrew Brampton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 03, 2002 11:06 PM Subject: gateway_enable=YES without a restart Hi, I'm new to FreeBSD, I've had my box running for about 3-4 weeks now. Anyway I've decided to enable it as a gateway by editing the /etc/rc.conf file. I previously had it running as a gateway but I commented the gateway_enable=YES line. Now I want to uncomment this line so it routes my traffic, but I don't want to actually restart my box because its got a 17 day uptime, and I want to see how high I can get it, and the past 17 days would of been wasted if I reboot :) Sorry if this sounds a bit lame, but I'm trying to beat my 21day uptime on Windows 2k. So what command could I type, or which process could I kill/restart so that my box will function as a gateway? I had a quick scan through the man page on rc.conf, but didn't find anything of relevance, but I did find many other useful lines I might add to my rc.conf file later (just to play around with).. Anyway I'll be very gratefull if someone could tell me how to keep this uptime :) thanks Andrew To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message