Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Mar 2002 14:29:22 +1100 (EST)
From:      "Aaron Hill" <fbsdlist@futureuse.net>
To:        <moth21@hotmail.com>
Cc:        <questions@freebsd.org>
Subject:   Re: NATD PCANYWHERE!
Message-ID:  <14981.203.11.225.5.1014953362.squirrel@www.futureuse.net>
In-Reply-To: <F19Tu5S7DcfM871XTzy0000e158@hotmail.com>
References:  <F19Tu5S7DcfM871XTzy0000e158@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Hello,
>
> I have FreeBSD 4.5 with natd/ipfw, all I want to do is redirect
> pcanywhere  traffic.  Internet traffic is routing correctly.
>
> Here is my /etc/natd.conf
> interface dc1
> use_sockets yes
> same_ports yes
>
> redirect_port tcp x.x.x.x:5631 x.x.x.x:5631
> redirect_port tcp x.x.x.x:5632 x.x.x.x:5632
>
> And here is my handy script I wrote
> #!/bin/sh
> natd -f /etc/natd.conf
> /sbin/ipfw -f flush
> /sbin/ipfw add divert natd all from any to any via dc1
> /sbin/ipfw add pass all from any to any
>
> What gives?  I get Connection Refused...

Douglas,

Here's how I've got it working. You need these lines in /etc/natd.conf ...

# Allow incoming traffic on that NAT address
deny_incoming no

# pcAnywhere
redirect_port tcp xxx.xxx.xxx.xxx:5631 5631
redirect_port udp xxx.xxx.xxx.xxx:5632 5632

... where xxx.xxx.xxx.xxx is the IP address of your PC-Anywhere host.

Your firewall rules look OK. I think the problem is you are allowing TCP
5632 when you actually need UDP 5632.


>
> Thanks,
>
> Douglas A. Maske
> Consultant
> All Bases Covered, Inc.
>


Aaron Hill.



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?14981.203.11.225.5.1014953362.squirrel>