Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.networking > #4001 > unrolled thread
| Started by | "James H. Markowitz" <noone@nowhere.net> |
|---|---|
| First post | 2017-03-28 20:23 +0000 |
| Last post | 2017-03-29 16:40 +1100 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.os.linux.networking
Network access through a hotspot "James H. Markowitz" <noone@nowhere.net> - 2017-03-28 20:23 +0000
Re: Network access through a hotspot Ian Zimmerman <itz@primate.net> - 2017-03-29 09:04 -0700
Re: Network access through a hotspot "James H. Markowitz" <noone@nowhere.net> - 2017-03-29 17:00 +0000
Re: Network access through a hotspot "Peter \"Shaggy\" Haywood" <phaywood@alphalink.com.au> - 2017-03-29 16:40 +1100
| From | "James H. Markowitz" <noone@nowhere.net> |
|---|---|
| Date | 2017-03-28 20:23 +0000 |
| Subject | Network access through a hotspot |
| Message-ID | <obegnd$ohf$1@news.albasani.net> |
I have a Linux PC L that is connected to the Internet through a LAN N, with IP addresses in the 192.168.0 network. L is acting as a hotspot for wireless devices, in a network N' with IP addresses in the 10.0.0 network. When a wireless device connects to L, L supplies W (with the help of dnsmasq) with its IP address and DNS server IP address, all in the N' network. This setup works as expected, in that W can access the Internet without any problems. As configured, L will supply W with L's own IP address in N' as the IP address of the DNS server to be used by W. Ideally, what I would like to do is for L to supply the IP address of a different system, in N - not in N', for W to use as its DNS server. Can this be done at all? I guess I can create all sorts of routes in L between N and N' - in fact, that is already done, for W can access the Internet, and that is done through N. Abstracting from the setup above, can L be configured so that W, when connected to the hotspot created in L, can access, besides the Internet, any system in N?
[toc] | [next] | [standalone]
| From | Ian Zimmerman <itz@primate.net> |
|---|---|
| Date | 2017-03-29 09:04 -0700 |
| Message-ID | <20170329160213.4805.075839C2@matica.foolinux.mooo.com> |
| In reply to | #4001 |
On 2017-03-28 20:23, James H. Markowitz wrote: > As configured, L will supply W with L's own IP address in N' as the IP > address of the DNS server to be used by W. Ideally, what I would like > to do is for L to supply the IP address of a different system, in N - > not in N', for W to use as its DNS server. > > Can this be done at all? I guess I can create all sorts of routes in L > between N and N' - in fact, that is already done, for W can access the > Internet, and that is done through N. > > Abstracting from the setup above, can L be configured so that W, when > connected to the hotspot created in L, can access, besides the > Internet, any system in N? I don't see why it wouldn't work as it is. Have you tried? If it doesn't work, what is the error message? -- Please *no* private Cc: on mailing lists and newsgroups Personal signed mail: please _encrypt_ and sign Don't clear-text sign: http://cr.yp.to/smtp/8bitmime.html
[toc] | [prev] | [next] | [standalone]
| From | "James H. Markowitz" <noone@nowhere.net> |
|---|---|
| Date | 2017-03-29 17:00 +0000 |
| Message-ID | <obgp6j$c42$1@news.albasani.net> |
| In reply to | #4002 |
On Wed, 29 Mar 2017 09:04:02 -0700, Ian Zimmerman wrote: > On 2017-03-28 20:23, James H. Markowitz wrote: > >> As configured, L will supply W with L's own IP address in N' as the IP >> address of the DNS server to be used by W. Ideally, what I would like >> to do is for L to supply the IP address of a different system, in N - >> not in N', for W to use as its DNS server. >> >> Can this be done at all? I guess I can create all sorts of routes in L >> between N and N' - in fact, that is already done, for W can access the >> Internet, and that is done through N. >> >> Abstracting from the setup above, can L be configured so that W, when >> connected to the hotspot created in L, can access, besides the >> Internet, any system in N? > > I don't see why it wouldn't work as it is. Have you tried? If it > doesn't work, what is the error message? I'll be darned - it does seem to work. By hand, I changed the address of the DNS server in an Android device connected to the hotspot, so that it was replaced with the address of a DNS server in N. The Android device can still resolve names without any problems. Thanks for pointing out what should have been obvious - i.e. try it first to make sure.
[toc] | [prev] | [next] | [standalone]
| From | "Peter \"Shaggy\" Haywood" <phaywood@alphalink.com.au> |
|---|---|
| Date | 2017-03-29 16:40 +1100 |
| Message-ID | <putrqd-kv6.ln1@walter.foo> |
| In reply to | #4001 |
Groovy hepcat James H. Markowitz was jivin' in comp.os.linux.networking
on Wed, 29 Mar 2017 7:23 am. It's a cool scene! Dig it.
> I have a Linux PC L that is connected to the Internet through a
> LAN N, with IP addresses in the 192.168.0 network. L is acting as a
> hotspot for wireless devices, in a network N' with IP addresses in the
> 10.0.0 network. When a wireless device connects to L, L supplies W
> (with the help of dnsmasq) with its IP address and DNS server IP
> address, all in the N' network. This setup works as expected, in that
> W can access the Internet without any problems.
>
> As configured, L will supply W with L's own IP address in N' as
> the IP address of the DNS server to be used by W. Ideally, what I
> would like to do is for L to supply the IP address of a different
> system, in N - not in N', for W to use as its DNS server.
I'm not sure I fully understand. You want a machine on the 10.0.0
network to use a machine on the 192.168.0 network, but not the shared
hotspot/router, as a DNS server? On the client machine (W), put the IP
address of the DNS server in a nameserver line in /etc/resolv.conf,
eg.:
nameserver 192.168.0.1
> Can this be done at all? I guess I can create all sorts of routes
> in L between N and N' - in fact, that is already done, for W can
> access the Internet, and that is done through N.
>
> Abstracting from the setup above, can L be configured so that W,
> when connected to the hotspot created in L, can access, besides the
> Internet, any system in N?
The same way you route your network traffic to the Internet, you can
route one network to another. On the router (L), setup routing and
iptables rules to allow your networks to communicate.
--
----- Dig the NEW and IMPROVED news sig!! -----
-------------- Shaggy was here! ---------------
Ain't I'm a dawg!!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.os.linux.networking
csiph-web