Date: Sat, 27 Apr 2002 11:24:30 +0000 From: cAsto <cAsto@0x36.org> To: freebsd-questions@FreeBSD.ORG Subject: Jails and natd Message-ID: <20020427112430.A9844@mail.0x36.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020427112430.A9844>