Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 2003 08:10:59 -0700
From:      =?unknown-8bit?Q?S=EAr=EAciya_Kurdistan=EE?= <sereciya@kurdistan.ath.cx>
To:        freebsd-questions@freebsd.org
Subject:   Re: add permanent route
Message-ID:  <20030414151059.GC33167@kurdistan.ath.cx>
In-Reply-To: <20030414125318.C5CC.FREEBSD@euro.net.mk>
References:  <20030414125318.C5CC.FREEBSD@euro.net.mk>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

> How do I make a "route add" permanent (meaning that the static route
> will remain when I reboot) ?

  You'll need to edit your /etc/rc.conf, the config should look something
  like this:

  static_routes="private public"
  route_private="   -net 10.0.0.0      -interface 10.0.0.1"
  route_public="    -net 212.1.2.0     -interface 212.1.2.1"

  "private" and "public" are just names, you can have only one, or
  you can have twenty, change the names as you please.
 
> How do I set "sysctl net.inet.ip.forwarding=1" in the kernel?  I cant
> seem to find the the option to set ip.forwarding in the kernel.

  easy ;)

  try:  "sysctl net.inet.ip.forwarding=1"

You're welcome in advance,
--$êrêciya Kurdistanî
+--------------------------------------------------------------+
| Welat xwe ava nake, dest bidin hevdu, pist nedin tu dijminî  |
|   Riya azadiyê ne hêsan e, hêviya xwe bernedin, dema me      |
|     nêzîk e.                                                 |
|                                                              |
| Hevaltî bi kesên du rû nekin, hevaltî bi hevdu ra bikin      |
|   Ne ji hevaltiya wan kesên pêxwas û rû dirêj, ne bi wan     |
|     kesên xwînperest, ne jî ji yên din.                      |
|                                                              |
|                                   -$êrêciya Kurdistanî       |
+--------------------------------------------------------------+
  translation provided on request: sereciya@kurdistan.ath.cx



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