Date: Mon, 07 Jun 1999 16:25:37 +0200 From: Thierry Herbelot <Thierry.Herbelot@alcatel.fr> To: "Pavel V. Antipov" <pavel@ikar.elect.ru> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: natd question Message-ID: <375BD661.EBD3B84E@telspace.alcatel.fr> References: <Pine.BSF.3.96.990607174801.456A-100000@ikar.elect.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------8B3DDD03A511D05D64AA6975 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, you do not have to set up a "permanent_link" in the rules of your natd. for recent natd (why don't you upgrade ? - you should at least go to the 2.2.8-Stable version), you filter packets with ipfw, and all allowed packets will be translated (transparently). In this way, you do not have to specify the translation between in and out machines. I use it at home and all outgoing packets get automatically rewritten with the IP address of the outside interface of my router. TfH "Pavel V. Antipov" wrote: > > Hi ! > > I have FreeBSD-2.2.5 internet server and local network which conected to > my internet server. Local hosts has IP as advices in RFC1918. > I want to provide the access to remote machine (194.87.96.134:27500) from > my local host (192.168.32.5) via natd. > See below the natd.conf: > > use_sockets yes > same_ports yes > unregistered_only yes > interface de0 > permanent_link udp 192.168.32.5:25000 194.87.96.134:0 27500 > permanent_link udp 194.87.96.134:27500 192.168.32.5:0 25000 > > In this case when I try to connect to 194.87.96.134 I see (using tcpdump): > .... 192.168.32.5:27901 > 194.87.96.134 UDP (17) > > Of course, remote server will not response me. > > HOW can i alter the source IP of outgouing packets ? > (AND reverse) > > Please answer me via email:pavel@ikar.elect.ru > > Thank you > Pavel > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message --------------8B3DDD03A511D05D64AA6975 Content-Type: text/x-vcard; charset=us-ascii; name="thierry.herbelot.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Thierry Herbelot Content-Disposition: attachment; filename="thierry.herbelot.vcf" begin:vcard n:Herbelot;Thierry tel;work:(+33) 1 46 52 47 23 x-mozilla-html:FALSE url:http://perso.cybercable.fr/herbelot org:CIT Nanterre adr:;;;;;; version:2.1 email;internet:thierry.herbelot@alcatel.fr x-mozilla-cpt:;-22032 fn:Thierry Herbelot end:vcard --------------8B3DDD03A511D05D64AA6975-- 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?375BD661.EBD3B84E>