Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Mar 2018 13:49:03 +0100
From:      Joerg Surmann <joerg_surmann@elektropost.org>
To:        freebsd-stable-request@freebsd.o, freebsd-current@freebsd.org
Subject:   two NIC's in a jail
Message-ID:  <63ecbccc-48e2-4c67-fbf5-0a73094f29be@elektropost.org>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--5qRRAuPezem2k4WrQxyBfqeveiyeg572F
Content-Type: multipart/mixed; boundary="Z6IwXXvgzv6zmBTAYHdbugxcEAhaygVxP";
 protected-headers="v1"
From: Joerg Surmann <joerg_surmann@elektropost.org>
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 (<VirtualHost *:80>)
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?63ecbccc-48e2-4c67-fbf5-0a73094f29be>