From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 13:33:15 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C47E616A4BF for ; Tue, 7 Oct 2003 13:33:15 -0700 (PDT) Received: from buffnet4.buffnet.net (buffnet4.buffnet.net [205.246.19.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id B153E43F85 for ; Tue, 7 Oct 2003 13:33:13 -0700 (PDT) (envelope-from mtech@buffnet.net) Received: from mohsin (mohsin.buffnet.net [205.246.19.98]) by buffnet4.buffnet.net (8.12.8/8.8.7) with SMTP id h97KWrqV041817; Tue, 7 Oct 2003 16:33:07 -0400 (EDT) (envelope-from mtech@buffnet.net) Message-ID: <000601c38d33$ae40d9c0$6213f6cd@mohsin> From: "Mohsin Rahman" To: "Tech Support" , "freebsd-questions" References: <5E833948-F8F3-11D7-8478-000A95A05832@skilltreeconsulting.com><012401c38d07$76b95210$e400a8c0@ape> <06b101c38d0f$97710c20$0a00a8c0@a> Date: Tue, 7 Oct 2003 20:32:37 -0400 Organization: BuffNET X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: Gateway / Port redirection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mohsin Rahman List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2003 20:33:16 -0000 Perhaps this will help. /usr/ports/net/bounce pkg-descr: A little program to bounce tcp connections to another machine/port. By default it listens on port 1523. /usr/ports/net/rinetd pkg-descr: rinetd redirects TCP connections from one IP address and port to another. rinetd is a single-process server which handles any number of connections to the address/port pairs specified in the file /etc/rinetd.conf. Since rinetd runs as a single process using nonblocking I/O, it is able to redirect a large number of connections without a severe impact on the machine. This makes it practical to run TCP services on machines inside an IP masquerading firewall. rinetd does not redirect FTP, because FTP requires more than one socket. rinetd also supports basic allow/deny access control and logging. Good Luck! --Mohsin Rahmanmtech@buffnet.net ----- Original Message ----- From: "Tech Support" To: "freebsd-questions" Sent: Tuesday, October 07, 2003 4:14 PM Subject: Gateway / Port redirection > Background > > I am currently running freeBSD 4.8 on a box as > a) a gateway for the house for internet access on dialup permanant IP > , domain etc > b) using apache for a web server hosting a domain and virtual domains > c ) Qmail for mail > d ) Squid proxy for the childrens computers access ( saves on > bandwidth ) > e) ProFtp as FTP Server > f ) DNS > g ) Ssh > h) All on a dial up account > i ) port Sentry > j ) etc > > I need to run a couple of programs inside the lan where ports are > directed to them from outside the lan eg all the above services are > located on the Bsd box ( 192.168.x.x ) and i need to direct port 5060 > to 192.168.0.7 ( for arguments sake ) > > Not being very knowlegable about the inner workings of FreeBSD ( but > learning slowly ) I have decided that seeing as this is really only a > temporary exercise ( perhaps a month , and to compound everything in a > couple of months the BSD box will also be shifting to broadband ), > that I would use FreeSCO ( www.freesco.org) as a NEW gateway / port > redirector . I am going to forward my current services above to my > current BSD box and the NEW PORTS direct to the Win box(s) that I need > to test this software on . My thoughts were to leave the current > gateway as 192.160.0.1 and the FreeSCO box name it 192.168.0.254 . I > would like to direct outbound web surfing via the BSD box as current > as it would be a PITA to change all the machines on the LAN > > My question(s) > > a) is this overkill ( is there an EASIER way to do what I want ( port > redirecting ) ( bearing in mind that although the lights are on in the > attic they are at times low wattage :-) ) > > b ) WHAT do I need to change on my BSD box ( rc.conf etc ) to make it > work the way described ? Remembering that this is only temporary . > > Thanks in advance for any advice > > Regards > > Benny > > > > > > > _______________________________________________ > 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" >