From owner-freebsd-current@freebsd.org Fri Mar 23 12:50:04 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 702A7F694AA for ; Fri, 23 Mar 2018 12:50:04 +0000 (UTC) (envelope-from joerg_surmann@elektropost.org) Received: from elektropost.org (elektropost.org [217.115.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DAB6172280 for ; Fri, 23 Mar 2018 12:50:03 +0000 (UTC) (envelope-from joerg_surmann@elektropost.org) Received: (qmail 98791 invoked from network); 23 Mar 2018 12:50:01 -0000 Received: from elektropost.org (HELO elektropost.org) (joerg?surmann) by elektropost.org with ESMTPS (DHE-RSA-AES128-SHA encrypted); 23 Mar 2018 12:50:01 -0000 To: freebsd-stable-request@freebsd.o, freebsd-current@freebsd.org From: Joerg Surmann Subject: two NIC's in a jail Message-ID: <63ecbccc-48e2-4c67-fbf5-0a73094f29be@elektropost.org> Date: Fri, 23 Mar 2018 13:49:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5qRRAuPezem2k4WrQxyBfqeveiyeg572F" X-Mailman-Approved-At: Fri, 23 Mar 2018 14:04:32 +0000 X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2018 12:50:04 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5qRRAuPezem2k4WrQxyBfqeveiyeg572F Content-Type: multipart/mixed; boundary="Z6IwXXvgzv6zmBTAYHdbugxcEAhaygVxP"; protected-headers="v1" From: Joerg Surmann To: freebsd-stable-request@freebsd.o, freebsd-current@freebsd.org Message-ID: <63ecbccc-48e2-4c67-fbf5-0a73094f29be@elektropost.org> Subject: two NIC's in a jail --Z6IwXXvgzv6zmBTAYHdbugxcEAhaygVxP Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, I have a Problem to understund how to manage 2 Networks inside a Jail. i have create a jail (using ezjail) with a alias IP. in rc.conf (on Host): ifconfig_vmx0=3D"inet 192.168.100.1 netmask 255.255.255.0" ifconfig_vmx0_alias0=3D"inet 192.168.100.2 netmask 255.255.255.0"=C2=A0 <= - this is the jail ip Inside the jail running apachhe24. Now i add a new NIC to the System. in rc.conf (on Host): ifconfig_em0=3D"inet 213.70.80.92 netmask 255.255.255.0" in /usr/local/etc/ezjail/myjail.conf: i add the new ip export jail_myjail_ip=3D"192.168.100.2,213.70.80.92" Restart the jail and ifconfig looks fine. vmx0 -> inet 192.168.100.2 em0=C2=A0 -> inet 213.70.80.92 Apache Listen on all NIC's () But i can see my Website only via 192.168.100.2 from intern Network. The Host is behind a Firewall. The IP=C2=A0 213.70.80.92 is enabled for incomming Traffic. When i give the Hostname in a Browser i become "connection Timeout". What is to do that the Host is accessable from Inet? Thanks Holm =C2=A0 =C2=A0 --Z6IwXXvgzv6zmBTAYHdbugxcEAhaygVxP-- --5qRRAuPezem2k4WrQxyBfqeveiyeg572F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKgIE1afOeXZNzpBEGHz25TAa4ssFAlq09/UACgkQGHz25TAa 4su8ehAAgVkUlFnnFNzCrLFtz3TyYa5EjV9wenerzj2yXGaHSeDMmLotSuTLxrHt zM/726jTrEX1EC9nOm/Hu/x9vp9S9O1Lg5a52JM8vRI9ukolB8DJXZ0E7VEa6/Za wzCF42ufjmHw/B+tWk/TUGvWsoENNoMqEr/bMFsHXP2HqsEanMJUsPYD4Ch0qVsL F9akNhe2Y3Ry45dGudxYm7nVf2TOAP6mZu1/JyBRs2xliwLZUZHsmZ4BXBHYSgPR 1m6oeedL0BuKFszzIScVi04fAkfufDY7L+Qf58+ChDS8MmPMb/FmISp0lnV1It3j h6XAZ1ipQZWMmhkd2+06X70MgqqNVRyR9bVBe6QxpMpsIdTrOL/wKiwKQk77LuA0 ekkrAq375rm0Hfem6AeCH/3i2Wi+XqGNjyYbco5CepTvC7mB/bjKhfn1MpuyOnNM JaPu+v2z4TGpoX6102qz3ui1JnyYz9aWwtCGj5iogsfSpLxt5NOFcnK3+40Qb06M v4o773HqzxV0gefc+1dx5yyZex8IYEvrlDfloGUAM6U3TYqR4EdcQrhXZlGUhMa7 jKO0ZJNcHrHUOWXAlXWH7kIcOm/It9wgLgxyBGBl6S/TMLf2qJeNV6sl5P4LJ/Tf Nwhdb3DigxfjVrEAmRQZaiW/tYX8DD2vcXIWSD9B+rS8cMeIENY= =Qod6 -----END PGP SIGNATURE----- --5qRRAuPezem2k4WrQxyBfqeveiyeg572F--