From owner-freebsd-questions Mon Apr 29 3:33:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from 0x36.org (plok.0x36.org [81.19.226.253]) by hub.freebsd.org (Postfix) with SMTP id 2FBB337B42A for ; Mon, 29 Apr 2002 03:33:33 -0700 (PDT) Received: (qmail 9986 invoked by uid 1000); 27 Apr 2002 11:24:30 -0000 Date: Sat, 27 Apr 2002 11:24:30 +0000 From: cAsto To: freebsd-questions@FreeBSD.ORG Subject: Jails and natd Message-ID: <20020427112430.A9844@mail.0x36.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Problem describtion: I can't connect to external IP's on the server within a jail, needed to send mail from one to another jail. I have setup a server 4.5-STABLE with jails. The server has 2 external IP's: 111.222.333.444 and a alias 111.222.333.555/32 All the jails have IP's in the private range like: 172.16.0.1/32 , 172.16.0.2/32 ... To make this work i have set up natd.conf with the following rules: alias_address 111.222.333.444 same_ports yes redirect_port tcp 172.16.1.3:25 111.222.333.444:25 redirect_port tcp 172.16.1.1:25 111.222.333.555:25 redirect_port tcp 172.16.1.3:25 111.222.333.444:25 172.16.1.1 redirect_port tcp 172.16.1.1:25 111.222.333.555:25 172.16.1.3 When i log into a jail (172.16.1.1) and try to connect to 111.222.333.444 25, i get refused. But its possible to connect to the other internal IP's telnet: connect to address 111.222.333.444: Connection refused telnet: Unable to connect to remote host Other configrution settings: net.inet.ip.forwarding: 1 the ipfw rules is set to open. Regarding the jail enviroment, its possible to get information about the disk structure with df. I don't if thats the idear or not. /cAsto To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message