route how to?

David van Geyn webformsNOSPAM at noc.peon.net
Fri Nov 11 20:10:21 GMT 2005


> On 11 Nov 2005 12:29:00 -0500, Lowell Gilbert
> <freebsd-questions-local at be-well.ilk.org> wrote:
>>
>> Perttu Laine <plaine at gmail.com> writes:
>>
>> I usually do this kind of thing with a firewall, but the routing table
>> is a good way too.
>>
>> "man route" will explain everything you need to do.
>>
>
> I asked because I'm not very familiar with route and don't want to broke
> everything. :)
> But is this ok: route add 192.168.10.1 <http://192.168.10.1>
> 127.0.0.1<http://127.0.0.1>
> or does it matter what I put as gateway?
>

Try this:

route add 192.168.10.1/32 localhost -reject

You don't want to put those <http://whatever> things in there.

regards, David



More information about the freebsd-questions mailing list