Date: Fri, 08 Oct 1999 13:06:48 -0500 From: "Jonathan E. Lyons" <parrothd@midwest.net> To: Sean Noonan <snoonan@cx952600-a.fed1.sdca.home.com> Cc: freebsd-questions@freebsd.org Subject: Re: need help with natd Message-ID: <3.0.5.32.19991008130648.009a7320@midwest.net> In-Reply-To: <Pine.BSF.4.10.9910081053060.626-100000@cx952600-a.fed1.sdc a.home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I think you'r missing some of the redirect command? I just created a config file with the following, and start NATD by; natd -interface ed1 -dynamic -config /etc/natd.conf $ more natd.conf redirect_port tcp 192.168.1.20:2000 2000 redirect_port tcp 192.168.1.20:2001 2001 redirect_port tcp 192.168.1.20:2002 2002 redirect_port tcp 192.168.1.20:2003 2003 redirect_port tcp 192.168.1.20:2004 2004 redirect_port tcp 192.168.1.20:2005 2005 redirect_port tcp 192.168.1.20:2006 2006 redirect_port tcp 192.168.1.20:2007 2007 redirect_port tcp 192.168.1.20:2008 2008 redirect_port tcp 192.168.1.20:2009 2009 redirect_port tcp 192.168.1.20:2010 2010 redirect_port tcp 192.168.1.20:2011 2011 redirect_port tcp 192.168.1.20:2012 2012 redirect_port tcp 192.168.1.20:2013 2013 redirect_port tcp 192.168.1.20:2014 2014 redirect_port tcp 192.168.1.20:2015 2015 redirect_port udp 192.168.1.20:2213 2213 redirect_port tcp 192.168.1.20:21 2121 redirect_port udp 192.168.1.20:21 2121 redirect_port tcp 192.168.1.20:47624 47624 This redirects all TCP traffic to 192.168.1.20 port 20??, for my ICQ stuff... At 10:56 AM 10/8/99 +0000, you wrote: >Greetings Wise FreeBSD Gurus: > >I can't seem to figure out how to accomplish what I want to do. Can any >one help? > >I'm running 3.2-RELEASE. The machine is multihomed. NIC1 = xl0 = RFC1918 >internal net (192.168.1/24). NIC2 = xl1 = cable modem IP (24.4.90.90). > >I want to be able to connect to PCAnywhere running on an internal NT >machine (192.168.1.2) from my workstation at work (e.f.g.h). > >I'm running natd and ipfw. > >PCAnywhere apparently uses UDP ports 5631 and 5632 (but I've also seen >connection traffic on UDP port 22 which I thought was for SSH, but I >digress). > >I thought all I would have to do is: > >natd -n -xl1 -l -redirect_port udp 192.168.1.2:22 >natd -n -xl1 -l -redirect_port udp 192.168.1.2:5631 >natd -n -xl1 -l -redirect_port udp 192.168.1.2:5632 > >There we no errors from entering these commands. > >IPFW started complaining about Denying packets, so I [temporarily] >alleviated that problem by issuing: > >ipfw add 5 allow ip from any to any > >Still no luck though. PCAnywhere on my work machine just times out trying >to find a connection. > >Can anyone shed some light on what I've done wrong? I'm still pretty much >a newbie, so if I forgot to include some information necessary for >figuring out the puzzle please forgive me in advance. > >And yes, I'm aware of other alternatives such as VNC. I really want this >particular scenario to work, though. > >Thanks in advance, > >-Sean Noonan >snoonan@cx952600-a.fed1.sdca.home.com > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > > Jonathan E. Lyons parrothd@midwest.net Nucleus Consulting ICQ # 14226912 www.nucleusconsulting.com Cell # 773-251-1967 A+, MCSE, CCNA, FreeBSD! Pager # 7732511967@mobile.att.net 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?3.0.5.32.19991008130648.009a7320>