Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Aug 2020 14:39:37 +0100
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Ernie Luzar <luzar722@gmail.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: can a domain name config point to a vlan tag at the host
Message-ID:  <9a027a2c-3575-25ac-6ccc-0f186a3d6820@qeng-ho.org>
In-Reply-To: <5F37E329.3000903@gmail.com>
References:  <5F37E329.3000903@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15/08/2020 14:29, Ernie Luzar wrote:
> I set up vlan for the host interface cabled to the public internet.
> How do I drive internet traffic to the desired vlan name on the host
> using a registered domain name?
> 
> My rc.conf has this
> 
> ifconfig_re0="DHCP"
> gateway_enable="YES"
> 
> vlans_re0="1 2 3"
> 
> # vlan_1  is for the host
> # vlan_2  is for vnet jailA
> # vlan_3  is for vnet jailB
> 
> Final goal is to drive traffic from the public internet using a fqdn to
> the vnet jailA.

I strongly suggest you read up more about networking because it's
obvious you don't really understand it. All network traffic goes to *IP
addresses* not domains. DNS says what addresses to use for a specific
domain, but *all* connection attempts, whatever the protocol, are to a
specific numeric IP address. Yes, protocols like HTTP then accept a host
specification for further "routing" but that happens *after* the initial
connection is made.

If you want to run N jails with N different domains, all with their own
traffic to arbitrary ports, you are going to need at least N different
IP addresses.

-- 
The number of people predicting the demise of Moore's Law doubles
every 18 months.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9a027a2c-3575-25ac-6ccc-0f186a3d6820>