From: Michael Orlitzky <michael@orlitzky.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] VPN vs LAN address hostname resolution
Date: Wed, 22 May 2013 14:52:20 -0400 [thread overview]
Message-ID: <519D13E4.1070700@orlitzky.com> (raw)
In-Reply-To: <519D0ED4.80304@gmail.com>
On 05/22/13 14:30, Samuraiii wrote:
> I'm sorry for mistake the subnet mask for both spaces IS 255.255.255.0.
> so it is not overlapping at all.
> I apologise for my mistake in notation.
> still this is not (mainly) problem with routing but problem with
> assigning name to address.
> If I had superfast internet connection I would not mind and just use vpn
> address space.
> So basically i need to assign lan address to computer (laptop) which is
> in same location (LAN) as other machines. And vpn address on all other
> computers.
>
> to illustrate:
>
> hostname: foo
> Location:1
> address eth0: 10.1.1.3
> address tap0: 10.2.2.3
>
> hotname: bar
> Location: 1
> addresses are irrelevant
> hosts entry for foo is 10.1.1.3 *(this is what I want to update if foo
> moves to location 2 to 10.2.2.3)*
>
> hosname baz
> Location: 2
> addresses are irrelevant
> Hosts entry for foo is 10.2.2.3 *(this is what I want to update if foo
> moves to location 2 to 10.1.1.3)*
>
Which machines are joined to the VPN? For a location-to-location VPN,
the simplest thing to do would be to have your gateway routers
participate in the VPN and handle the routing appropriately. That way if
you're on the LAN at location 1 and you send a packet to another machine
on the same LAN (using its VPN address), the gateway router knows to
send the packet right back onto the LAN. No configuration necessary on
the hosts. You can use the same VPN addresses at both locations.
If that's not possible, set up a DNS resolver at each location and
return the appropriate (local or VPN) address.
next prev parent reply other threads:[~2013-05-22 18: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
2013-05-22 18:30 ` Samuraiii
2013-05-22 18:40 ` Michael Mol
2013-05-22 18:52 ` Michael Orlitzky [this message]
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=519D13E4.1070700@orlitzky.com \
--to=michael@orlitzky.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