Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 29 Mar 2017 15:40:57 -0500 Message-Id: From: "Peter \"Shaggy\" Haywood" Subject: Re: Network access through a hotspot Newsgroups: comp.os.linux.networking Date: Wed, 29 Mar 2017 16:40:08 +1100 References: User-Agent: KNode/0.10.9 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Lines: 44 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-pGCVHss7F97TSgAQjfG+XTh1NNnPu8x5HbQF91t9krUf19BBeHdEn/OihfGIS/9SPY8RXIQr4hEDbnw!CV+SktvNfnoNIUgeLsUQPcKGzIqxY31SJDo3MFQLBl8cSQR5 X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2900 Xref: csiph.com comp.os.linux.networking:4007 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!!