Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2001 19:06:35 +0100
From:      Chris Hastie <lists@oak-wood.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: Port redirection with natd
Message-ID:  <uABoE0ArGVg7EwB6@chris.oak-wood.co.uk>
In-Reply-To: <Pine.BSF.4.21.0108200951070.88303-100000@cody.jharris.com>
References:  <Zr%2BV%2B$FUjPg7EwEX@chris.oak-wood.co.uk> <Pine.BSF.4.21.0108200951070.88303-100000@cody.jharris.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 20 Aug 2001, Nick Rogness <nick@rogness.net> wrote
>On Mon, 20 Aug 2001, Chris Hastie wrote:
>
>> I'm trying to set up an internet gateway with NAT and some port
>> redirection using Free BSD 4.3-CURRENT. The machine has two nics, xl0
>> faces the internet and sis0 faces my LAN.
>>
>> So far the NAT works fine, but I can't get the port redirection going at
>> all.
>       Have you turned on logging to see what is going on?

Time to own up to my totally clueless credentials. I've been using 
FreeBSD, my first venture away from Mr Gates, since, oh, Saturday 
afternoon, and I haven't figured out this logging thing yet. Lots of 
things tell me how to log stuff, but I can't figure out where to find 
the logs they generate :(

Instructions on 1) how to tell natd to log activity and 2) where to find 
the logs would be very much appreciated
>
>>
>> # natd -n xl0 -f /etc/natd.conf
>>
>> returns
>>
>> |natd: Unable to bind socket.: Address already in use.
>>
>
>       natd is already running and bound to port 8668 [from the startup].

Right, so it is not the three sockets I'm trying to divert that are 
already bound.
>
>> Additionally, I can get no response from any of those ports by
>> telnetting to them with another machine.
>>
>
>       The redirect_port stuff will only work from the outside with your
>       setup.  Try going to an outside machine and telnetting.

Best I can manage at the moment is to log into a shell account on a 
remote machine and then try and telnet back to myself from there. To 
port 23 this is fine and I can then log into my FreeBSD no probs. But to 
the supposedly redirected ports I get no response.
-- 
Chris Hastie

http://www.oak-wood.co.uk/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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