natd redirected ports from LAN
Brian Candler
B.Candler at pobox.com
Tue Nov 29 13:07:31 GMT 2005
On Tue, Nov 29, 2005 at 12:46:10PM +0200, asko wrote:
> I'm searching for a better, faster solution..
> Does it exist?
Do your constraints allow you switch to 'pf' instead of 'ipfw'? I think you
may be able to do it that way. I had a similar situation where I wanted
traffic originating from the local host to be processed specially. The case
in point was redirection rather than NAT, but the same principles probably
apply. Using pf I forced the traffic back through the loopback interface so
it was treated as 'incoming' traffic. e.g. see thread around
http://lists.freebsd.org/pipermail/freebsd-pf/2005-September/001495.html
Maybe in your case you just need two rdr rules: one bound to the internal
interface, and one to the external one.
I stopped using ipfw several years ago because of a number of issues with
NAT, especially some horrible scenarios with multiple external interfaces,
IPSEC tunnels, and needing to run multiple instances of natd :-{
Regards,
Brian.
More information about the freebsd-net
mailing list