From owner-freebsd-questions Sat Jun 21 21:02:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA06119 for questions-outgoing; Sat, 21 Jun 1997 21:02:16 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA06111 for ; Sat, 21 Jun 1997 21:02:08 -0700 (PDT) Received: from awfulhak.demon.co.uk (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id DAA04385; Sun, 22 Jun 1997 03:30:57 +0100 (BST) Message-Id: <199706220230.DAA04385@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: Ludwig Pummer cc: questions@FreeBSD.ORG Subject: Re: port to ip:port redirection In-reply-to: Your message of "Fri, 20 Jun 1997 21:14:17 PDT." <3.0.2.32.19970620211417.0089c950@pop1.ibm.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 22 Jun 1997 03:30:56 +0100 From: Brian Somers Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Some background: > I've got a headless system with a modem which runs ppp -alias -auto demand > to provide an internet connection for my (5-user) LAN. I've got a program > which expects to receive data on a certain port. However, because of ppp > -alias, the data never gets through to the client. > > What I'd like to do is make it so a port (for example, 3333) going to the > dialup server (172.16.1.5) is redirected to port 3333 on 172.16.1.1. How > can I do this on a 2.2.1-R system? > Is this what natd used to do? Is this what ipfilter does? Can "ipfw divert > port" accomplish this? > > I've looked at the man page for ipfw and divert, and it looks like those > can't do what I need without some extra help. ppp now does this. Get the latest copy (http://www.freebsd.org/~brian) and read the man page. > Thanks in advance, > --Ludwig Pummer > ------------------------------------------------------------------ > ludwigp@bigfoot.com ICQ UIN: 692441 http://chipweb.home.ml.org > PGP Key & Geek Code available on web page ^-- Updated 04/18/97 -- Brian , Don't _EVER_ lose your sense of humour....