From owner-freebsd-questions@FreeBSD.ORG Mon Nov 30 15:46:01 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63973106566B for ; Mon, 30 Nov 2009 15:46:01 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id E4F248FC1D for ; Mon, 30 Nov 2009 15:46:00 +0000 (UTC) Received: by fxm10 with SMTP id 10so3143271fxm.14 for ; Mon, 30 Nov 2009 07:46:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=HPn8Rq46YVeU9AQTkAgnlSrbyiZyYJTofKq25wGzCxE=; b=pUD+WcV9uxLajJcF/d6pGGj+PQiOhsrGFW9cj4rdEmZPAZcQywQT0EcO0FefefQOrI 95EK2eJS9KP/mjsHFWCWK06wP0BKOQ7pRpDTf8CJhkvRk/08CV/zex1ctxLC8N3liP+d iaihG793c+FHAbvr1kQeuw8zn3soFbHhqqTWE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=VcQQ0HffuYqgpdlP8qucaaVfiQFkPO7Wt8lWcc0DHpjdbergWOrhps8lwXoj/7hmHj 19hfLmtZC6uAaPwhNyAexnuGWmW4gl+G3kTuY/O6zQf2bww8Y9DkUoopo6PFSfk3EpJR T/xO24m09VQjsq0Zh1oIODemomNjUNP5WyV4w= MIME-Version: 1.0 Received: by 10.239.144.102 with SMTP id n38mr413908hba.176.1259595959964; Mon, 30 Nov 2009 07:45:59 -0800 (PST) In-Reply-To: <2043.203.153.106.5.1259577899.squirrel@muliahost.com> References: <2043.203.153.106.5.1259577899.squirrel@muliahost.com> Date: Mon, 30 Nov 2009 15:45:59 +0000 Message-ID: From: krad To: kalpin@muliahost.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org Subject: Re: Transparent proxy using IPFW X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2009 15:46:01 -0000 2009/11/30 > Dear All, > > Is it possible to do like my requirement below? > > 1. Setup portfwd in my server listen on port 555 and forward all > connection through this port to another server with same port or different > port > 2. All client which connected through this port, then remote server which > landed to the end can see the client's IP. > > example: > > Client IP: 202.15.15.16 > FreeBSD IP: 202.16.17.18 listen on port 555 > Remote Server IP: 202.89.89.90 > > Client IP connect to 202.16.17.18 on port 555, and then FreeBSD forward it > to 202.89.89.90 with same port or different port. Server with IP > 202.89.89.90 can see Client's IP 202.15.15.16. > > I am using FreeBSD 7.2-stable. > > Thank you > > Kalpin Erlangga Silaen > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > you can but you will need to do some natting otherwise the return traffic will go direct to host a from c and not via your box host b or you could use nc via inetd eg some_service stream tcp nowait root /usr/local/bin/nc nc -n -w 3 hostC port_on_hostc