Re: Changing the dnsmasq options for a shared wifi access point?

I'm using ZeroTier to create a virtual network so I can get to my home machines and router when I'm away from my home network. I was hoping to be able to force all traffic from devices connected to my laptop's access point back to my home router. My laptop has two wifi cards, one for the connection to the internet and one to use as an access point for devices.

I've seen that I can probably use "source routing" with iproute2 to define a different default gateway for everything coming from the shared wifi connection:

I tried that yesterday but I couldn't get it working. I'll see if I can get more logs and looks at output from tcpdump.

It occurs to me that default gateways must be on a local network? So my attempt to change dnsmasq settings probably wouldn't have given me the result I want because the new default gateway is a couple of hops away from the devices connecting to the access point.

On Mon, 1 Feb 2016 at 19:23 Dan Williams <dcbw redhat com> wrote:
On Sat, 2016-01-30 at 17:15 +0000, Ashley Collins wrote:
> Hello,
> I have set up an access point connection to share my Ubuntu 15.10
> laptop's
> network via wifi. I works really well and I can connect Android and
> other
> devices to it.
> I would like to change the default route given out by dnsmasq for the
> connection and I'd also like to add a static route to it via the
> address so devices can get to it.

Any particular reason to change the default route instead of letting
the iptables NAT rules that NM adds handle it?  Can you describe more
about what you want to do here?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]