Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #207646
| From | Celejar <celejar@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Accessing a host with variable IP addresses / connection types |
| Date | 2019-04-17 18:00 +0200 |
| Message-ID | <xNV8B-87j-5@gated-at.bofh.it> (permalink) |
| References | <xNxSF-2oL-7@gated-at.bofh.it> <xNMoF-2UL-3@gated-at.bofh.it> <xNRHH-6ex-1@gated-at.bofh.it> <xNSX7-6Tk-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 17 Apr 2019 15:29:50 +0200 Kevin DAGNEAUX <kevin.dagneaux@fiitelcom.fr> wrote: > > Le 17/04/2019 à 14:15, Celejar a écrit : > > On Wed, 17 Apr 2019 08:37:20 +0200 > > Kevin DAGNEAUX <kevin.dagneaux@fiitelcom.fr> wrote: > > > >>> Hi, > >>> > >>> I've been bedeviled by this question for a while, but have been unable > >>> to figure out a clean, non-hackish solution. It may be an XY problem ... > >>> > >>> I have a system (laptop, running Debian) that is sometimes connected > >>> directly to my LAN, and sometimes connected via VPN (wireguard, to the > >>> local router, running OpenWrt). The LAN is 192.168.0.0/24, with the > >>> laptop having a fixed, static address in that range (although I'm > >>> certainly open to using DHCP, possibly with a fixed address > >>> reservation). The VPN is 10.0.0.0/24, with the laptop getting a fixed, > >>> static address in that range (and wireguard apparently doesn't work > >>> with dhcp). > >>> > >>> I currently have an entry in /etc/hosts on the various LAN hosts > >>> assigning a hostname to the laptop's fixed local address, and the LAN > >>> hosts can access the laptop via that hostname. [I could alternatively > >>> use dnsmasq, which is running on the router regardless.] This obviously > >>> doesn't work when the laptop is connected via VPN. [The laptop can > >>> access the LAN hosts fine via their hostnames, so I seem to have the > >>> routing correctly configured on the laptop and the router.] > >>> > >>> What I seem to want (but maybe XY?) is some way to adjust the host > >>> files (or dnsmasq's information) so that the hostname will resolve to > >>> the LAN address when the laptop is connected to the LAN, and the VPN > >>> address when it's connected via VPN. If everything was using DHCP, this > >>> would be straightforward enough, but as I said, the VPN apparently > >>> needs to be configured statically, and not via DHCP. I could obviously > >>> use some custom script (using, say, ageas, to modify host files) but > >>> this seems hackish. What is a standard, 'correct' way to do this, or > >>> more generally, to enable the LAN hosts to access the laptop > >>> seamlessly regardless of its IP address and connection type? > >>> > >>> Celejar > >>> > >> Hi, > >> > >> A possible solution is to use a bridged VPN, in this case, your laptop > >> will always have the same IP. > > Thanks. I can't seem to find much information about this - can you > > elaborate, or point me to a link? [I'm not a networking expert.] > > > > Currently, my LAN is 192.168.0.0/24, which is also the addressing > > scheme of some of the networks out of my control that I'm setting up a > > VPN link from. I deliberately used 10.0.0.0/24 for the VPN to avoid > > address collisions with these other networks. It did occur to me to > > consider using a different address space, for the VPN or perhaps for the > > whole home LAN, but I'd rather not take that step just to solve what > > seems a relatively simple problem unless absolutely necessary > > > > Celejar > > > Celjar, > > You can find some explaination at > https://openvpn.net/community-resources/ethernet-bridging/ Thanks. I'm trying to figure out whether Wireguard, and OpenWrt's implementation of it in particular, supports bridging. > Using common network adressing will often give address collisions when > using VPN (routed or bridged VPN), like if on your home network and > remote network you have 2 machin with same IP, one of them will not be > reachable (depending of your routing table). I think that this won't be much of an issue - when I'm on remote networks, there typically aren't any hosts on those networks that I need to access. Celejar
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-16 17:10 +0200
Re: Accessing a host with variable IP addresses / connection types Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-04-16 20:50 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-16 21:30 +0200
Re: Accessing a host with variable IP addresses / connection types Richard Hector <richard@walnut.gen.nz> - 2019-04-17 03:50 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-17 04:20 +0200
Re: Accessing a host with variable IP addresses / connection types Kevin DAGNEAUX <kevin.dagneaux@fiitelcom.fr> - 2019-04-17 08:40 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-17 14:20 +0200
Re: Accessing a host with variable IP addresses / connection types Kevin DAGNEAUX <kevin.dagneaux@fiitelcom.fr> - 2019-04-17 15:40 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-17 18:00 +0200
Re: Accessing a host with variable IP addresses / connection types Joe <joe@jretrading.com> - 2019-04-17 16:10 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-17 18:00 +0200
Re: Accessing a host with variable IP addresses / connection types Michael Stone <mstone@debian.org> - 2019-04-17 18:20 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-17 18:40 +0200
Re: Accessing a host with variable IP addresses / connection types Michael Stone <mstone@debian.org> - 2019-04-17 18:50 +0200
[OT] IP address collisions (was: Accessing a host with variable IP addresses / connection types) Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-04-17 21:40 +0200
Re: [OT] IP address collisions (was: Accessing a host with variable IP addresses / connection types) Curt <curty@free.fr> - 2019-04-17 22:10 +0200
Re: [OT] IP address collisions (was: Accessing a host with variable IP addresses / connection types) Michael Stone <mstone@debian.org> - 2019-04-18 15:00 +0200
Re: [OT] IP address collisions (was: Accessing a host with variable IP addresses / connection types) Nicholas Geovanis <nickgeovanis@gmail.com> - 2019-04-18 15:20 +0200
Re: [OT] IP address collisions (was: Accessing a host with variable IP addresses / connection types) Michael Stone <mstone@debian.org> - 2019-04-18 15:30 +0200
Re: [OT] IP address collisions (was: Accessing a host with variable IP addresses / connection types) Nicholas Geovanis <nickgeovanis@gmail.com> - 2019-04-18 22:40 +0200
Re: [OT] IP address collisions (was: Accessing a host with variable IP addresses / connection types) Dan Purgert <dan@djph.net> - 2019-04-18 17:10 +0200
Re: [OT] IP address collisions Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2019-04-19 03:40 +0200
Re: [OT] IP address collisions (was: Accessing a host with variable IP addresses / connection types) Michael Stone <mstone@debian.org> - 2019-04-18 15:00 +0200
Re: [OT] IP address collisions Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-04-18 20:50 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-18 00:20 +0200
Re: Accessing a host with variable IP addresses / connection types Michael Stone <mstone@debian.org> - 2019-04-18 00:50 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-18 02:50 +0200
Re: Accessing a host with variable IP addresses / connection types Michael Stone <mstone@debian.org> - 2019-04-18 15:00 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-18 16:10 +0200
Re: Accessing a host with variable IP addresses / connection types Michael Stone <mstone@debian.org> - 2019-04-18 16:20 +0200
Re: Accessing a host with variable IP addresses / connection types Michael Stone <mstone@debian.org> - 2019-04-18 16:50 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-05-03 23:00 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-18 16:50 +0200
Re: Accessing a host with variable IP addresses / connection types Richard Hector <richard@walnut.gen.nz> - 2019-04-17 19:00 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-17 19:40 +0200
Re: Accessing a host with variable IP addresses / connection types Richard Hector <richard@walnut.gen.nz> - 2019-04-20 20:30 +0200
Re: Accessing a host with variable IP addresses / connection types Celejar <celejar@gmail.com> - 2019-04-25 20:20 +0200
csiph-web