public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Mol <mikemol@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] VPN vs LAN address hostname resolution
Date: Wed, 22 May 2013 13:52:09 -0400	[thread overview]
Message-ID: <519D05C9.8000308@gmail.com> (raw)
In-Reply-To: <519D021D.2050006@orlitzky.com>

[-- Attachment #1: Type: text/plain, Size: 1247 bytes --]

On 05/22/2013 01:36 PM, Michael Orlitzky wrote:
> On 05/22/13 12:36, Samuraiii wrote:
>> Hello,
>>
>> I am trying to get hostname address resolution on my LAN and VPN with
>> one serious problem:
>> I have two "networks" eg. 10.1.1.0 and 10.2.2.0 which are representing
>> local address space for LAN (10.1.1.0/8) and VPN address space (10.2.2.0/8).
> This isn't two networks, it's one network and you've got the VPN space
> overlapping the LAN space. To oversimplify a little, Don't Do That.
>
> Use a separate subnet for the VPN. Then traffic to the VPN will be
> routed over the VPN interface as intended, but traffic to the LAN will
> be routed over the LAN interface. This is what you want, but right now
> the VPN and the LAN are the same network, so "routing to the LAN" is the
> same as "routing to the VPN", and your network stack doesn't know what
> to do with it.
>
>

To be clear, replacing /8 with /24 would do this:

10.1.1.0/8, as a "network", is really just 10.0.0.0/8. This is also true
of 10.2.2.0/8. The bits after the first 8 are irrelevant, since a /8 is
being used. Use /24 instead, in this case.

It would be good for Samuraiii to read up:

http://www.tcpipguide.com/free/t_IPAddressing.htm



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 555 bytes --]

  reply	other threads:[~2013-05-22 17:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-22 16:36 [gentoo-user] VPN vs LAN address hostname resolution Samuraiii
2013-05-22 17:36 ` Michael Orlitzky
2013-05-22 17:52   ` Michael Mol [this message]
2013-05-22 18:30     ` Samuraiii
2013-05-22 18:40       ` Michael Mol
2013-05-22 18:52       ` Michael Orlitzky
2013-05-22 19:35         ` Samuraiii
2013-05-22 19:44           ` Michael Orlitzky
2013-05-22 20:52           ` Alex
2013-05-22 22:32         ` William Kenworthy
2013-05-22 20:43     ` covici
2013-05-22 20:40   ` covici
2013-05-31 16:04 ` [gentoo-user] " Samuraiii
2013-05-31 16:32   ` Samuraiii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=519D05C9.8000308@gmail.com \
    --to=mikemol@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox