From owner-freebsd-questions Wed May 16 13: 6:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns-exch05.jccc.net (ns-exch05.jccc.net [198.248.56.5]) by hub.freebsd.org (Postfix) with ESMTP id 7FB0337B422 for ; Wed, 16 May 2001 13:06:36 -0700 (PDT) (envelope-from ndunker@jccc.net) Received: by ns-exch05 with Internet Mail Service (5.5.2653.19) id ; Wed, 16 May 2001 15:03:00 -0500 Message-ID: From: Noah Dunker To: 'Will Mitayai Keeso Rowe' , freebsd-questions@FreeBSD.ORG Subject: RE: Port redirection Date: Wed, 16 May 2001 15:02:51 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I gave up trying to use ipdivert. I couldn't ever get it to work the way I wanted it to, and after reading Greg Lehey's "The Complete FreeBSD", I am convinced it's not meant to divert to another IP address, but just divert one port to a different port on the same interface. What good that does? I don't know either. I use a program called "redirect" I can't remember where I found it, but It was originally something I ran under Linux, and I either ran it with linux emulation on my firewall, or I compiled it from source. it's command line syntax is something like: redirect --lport=22 --cport=22 --caddr=192.168.1.12 (--lport = "listen port" --cport = "connect port" --caddr = "Connect address") If someone knows how to use IPDIVERT to do this, I'm ALL EARS! Noah Dunker Systems Analyst/Technician Johnson County Community College -----Original Message----- From: Will Mitayai Keeso Rowe [mailto:mit@branchmedia.com] Sent: Wednesday, May 16, 2001 2:36 PM To: freebsd-questions@FreeBSD.ORG Subject: Port redirection Hello! I was wondering if it is possivble, with IPDIVERT in the kernel, to have a firewall rull that diverts a range of ports incoming on an interfaces IP, to a range on another IP? Something like... divert 192.168.0.1:7020-7500 to 192.168.0.2:20-500 i don't know the exact syntax of the ipfw divert stuff to test to see if that would work :-( -- =========================================================== Will Mitayai Keeso Rowe (a.k.a. Mit) v:(416)323-0840 xt262 - f:(416)323-0894 =========================================================== Branch Media | The Dreaming Network Director, IT | Reality Engineer mitayai@branchmedia.com | mitayai@dreaming.org http://www.branchmedia.com/ | http://www.dreaming.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message