Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.networking > #4007
| Message-Id | <putrqd-kv6.ln1@walter.foo> |
|---|---|
| From | "Peter \"Shaggy\" Haywood" <phaywood@alphalink.com.au> |
| Subject | Re: Network access through a hotspot |
| Newsgroups | comp.os.linux.networking |
| Date | 2017-03-29 16:40 +1100 |
| References | <obegnd$ohf$1@news.albasani.net> |
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!!
Back to comp.os.linux.networking | Previous | Next — Previous in thread | Find similar | Unroll thread
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
csiph-web