Re: Starting natd
To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Starting natd
At 12:18 AM 10/28/2002 +0200, D. Penev wrote: On Sun, Oct 27, 2002 at 02:18:21PM -0500, Robert Hall wrote: Date: Sun, 27 Oct 2002 14:18:21 -0500 To: [EMAIL PROTECTED] From: Robert Hall <[EMAIL PROTECTED]> Subject: Re: Starting natd At 11:41 PM 10/26/2002 +0300, you wrote: On Sat, Oct 26, 2002 at 02:18:01PM -0500, Robert Hall wrote: Date: Sat, 26 Oct 2002 14:18:01 -0500 To: [EMAIL PROTECTED] From: Robert Hall <[EMAIL PROTECTED]> Subject: Starting natd I'm setting up a FBSD 4.4 box as a gateway. I've got natd_enable="YES" natd_interface="ppp0" in rc.config, but I can't get natd to run without entering natd -interface ppp0 at the comand prompt. I assume this is a configuration problem, but I've been through the files several times and can't find an error. Can someone tell me how to get natd to run automatically? If you use user ppp ( ppp(8) not pppd(8)) I suggest you to use build in nat in rc.conf : ppp_nat="YES" But if you for some reasons want to use natd, then you must first start ppp or pppd before starting natd. Note if you use ppp set interface to tun0 not to ppp0. I'm using kernel ppp (pppd). It is already set up and it runs. I have set up FreeBSD boxes before with this configuration, and natd started automatically and ran without any intervention on my part. For some reason, it doesn't do that this time, and I have to start it manually. I'm hoping someone can tell me why, so I can fix it. Put in rc.conf: natd_flags="-dynamic" Thanks, that did it. But I've never needed that flag before. Bob Hall To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Starting natd
On Sun, Oct 27, 2002 at 02:18:21PM -0500, Robert Hall wrote: Date: Sun, 27 Oct 2002 14:18:21 -0500 To: [EMAIL PROTECTED] From: Robert Hall <[EMAIL PROTECTED]> Subject: Re: Starting natd At 11:41 PM 10/26/2002 +0300, you wrote: On Sat, Oct 26, 2002 at 02:18:01PM -0500, Robert Hall wrote: Date: Sat, 26 Oct 2002 14:18:01 -0500 To: [EMAIL PROTECTED] From: Robert Hall <[EMAIL PROTECTED]> Subject: Starting natd I'm setting up a FBSD 4.4 box as a gateway. I've got natd_enable="YES" natd_interface="ppp0" in rc.config, but I can't get natd to run without entering natd -interface ppp0 at the comand prompt. I assume this is a configuration problem, but I've been through the files several times and can't find an error. Can someone tell me how to get natd to run automatically? If you use user ppp ( ppp(8) not pppd(8)) I suggest you to use build in nat in rc.conf : ppp_nat="YES" But if you for some reasons want to use natd, then you must first start ppp or pppd before starting natd. Note if you use ppp set interface to tun0 not to ppp0. I'm using kernel ppp (pppd). It is already set up and it runs. I have set up FreeBSD boxes before with this configuration, and natd started automatically and ran without any intervention on my part. For some reason, it doesn't do that this time, and I have to start it manually. I'm hoping someone can tell me why, so I can fix it. Put in rc.conf: natd_flags="-dynamic" Bob Hall To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message -- Regards, D. Penev To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Starting natd
On Sun, Oct 27, 2002 at 02:18:21PM -0500, Robert Hall wrote: > I'm using kernel ppp (pppd). It is already set up and it runs. I have set > up FreeBSD boxes before with this configuration, and natd started > automatically and ran without any intervention on my part. For some reason, > it doesn't do that this time, and I have to start it manually. I'm hoping > someone can tell me why, so I can fix it. I have a dialup workstation with no ethernet card & found that starting natd with tun0 down resulted in natd trying to contact ntp servers using a source address of 127.0.0.1. It would not pick up tun0's address when tun0 was brought up. Jeff To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Starting natd
At 11:41 PM 10/26/2002 +0300, you wrote: On Sat, Oct 26, 2002 at 02:18:01PM -0500, Robert Hall wrote: Date: Sat, 26 Oct 2002 14:18:01 -0500 To: [EMAIL PROTECTED] From: Robert Hall <[EMAIL PROTECTED]> Subject: Starting natd I'm setting up a FBSD 4.4 box as a gateway. I've got natd_enable="YES" natd_interface="ppp0" in rc.config, but I can't get natd to run without entering natd -interface ppp0 at the comand prompt. I assume this is a configuration problem, but I've been through the files several times and can't find an error. Can someone tell me how to get natd to run automatically? If you use user ppp ( ppp(8) not pppd(8)) I suggest you to use build in nat in rc.conf : ppp_nat="YES" But if you for some reasons want to use natd, then you must first start ppp or pppd before starting natd. Note if you use ppp set interface to tun0 not to ppp0. I'm using kernel ppp (pppd). It is already set up and it runs. I have set up FreeBSD boxes before with this configuration, and natd started automatically and ran without any intervention on my part. For some reason, it doesn't do that this time, and I have to start it manually. I'm hoping someone can tell me why, so I can fix it. Bob Hall To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Starting natd
On Sat 26 Oct 2002 at 14:18:01, Robert Hall said: > I'm setting up a FBSD 4.4 box as a gateway. I've got > natd_enable="YES" > natd_interface="ppp0" > in rc.config, but I can't get natd to run without entering > natd -interface ppp0 > at the comand prompt. I assume this is a configuration problem, but I've > been through the files several times and can't find an error. Can someone > tell me how to get natd to run automatically? According to the manpage, natd is designed to be used with ethernet-type permanent connections that start at boot. What happens is that natd starts, using ppp0, which isn't active at boot time, and then shuts down. Use the PPP daemon's nat option instead (see 'man natd'). -- Soren Harward [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Starting natd
On Sat, Oct 26, 2002 at 02:18:01PM -0500, Robert Hall wrote: Date: Sat, 26 Oct 2002 14:18:01 -0500 To: [EMAIL PROTECTED] From: Robert Hall <[EMAIL PROTECTED]> Subject: Starting natd I'm setting up a FBSD 4.4 box as a gateway. I've got natd_enable="YES" natd_interface="ppp0" in rc.config, but I can't get natd to run without entering natd -interface ppp0 at the comand prompt. I assume this is a configuration problem, but I've been through the files several times and can't find an error. Can someone tell me how to get natd to run automatically? If you use user ppp ( ppp(8) not pppd(8)) I suggest you to use build in nat in rc.conf : ppp_nat="YES" But if you for some reasons want to use natd, then you must first start ppp or pppd before starting natd. Note if you use ppp set interface to tun0 not to ppp0. Bob Hall To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message -- Regards, D. Penev To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Starting natd
Saturday, October 26, 2002, 9:18:01 PM, you wrote: > I'm setting up a FBSD 4.4 box as a gateway. I've got > natd_enable="YES" > natd_interface="ppp0" > in rc.config, but I can't get natd to run without entering > natd -interface ppp0 > at the comand prompt. I assume this is a configuration problem, but I've > been through the files several times and can't find an error. Can someone > tell me how to get natd to run automatically? Dear Robert, I'm no expert but ppp also comes with a natd build in to it. If i remember right putting in the lines `enable nat` was all it took to enable it. -- Best regards, Alex The FreeBSD handbook http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html How to get the best results from FreeBSD-Questions http://www.lemis.com/questions.html To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Starting natd
From: "Robert Hall" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 26, 2002 2:18 PM Subject: Starting natd > I'm setting up a FBSD 4.4 box as a gateway. I've got > natd_enable="YES" > natd_interface="ppp0" > in rc.config, but I can't get natd to run without entering > natd -interface ppp0 > at the comand prompt. I assume this is a configuration problem, but I've > been through the files several times and can't find an error. Can someone > tell me how to get natd to run automatically? > > Bob Hall > Well, I'm no expert on NAT with FreeBSD, but an oft-overlooked method of starting daemons is via the "@reboot" command in the appropriate crontab. I think I saw it posted here recently, in fact, maybe by Ceri, in regard to some other "how do I start ..." question. You might give it a try, barring a deep quest for true knowledge :-) Kevin Kinsey To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Starting natd
I'm setting up a FBSD 4.4 box as a gateway. I've got natd_enable="YES" natd_interface="ppp0" in rc.config, but I can't get natd to run without entering natd -interface ppp0 at the comand prompt. I assume this is a configuration problem, but I've been through the files several times and can't find an error. Can someone tell me how to get natd to run automatically? Bob Hall To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message