dd-wrt dnsmasq configuration for a local network

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
jcdole
DD-WRT Novice


Joined: 13 Jun 2015
Posts: 42
Location: South-West France

PostPosted: Fri Feb 01, 2019 19:14    Post subject: dd-wrt dnsmasq configuration for a local network Reply with quote
Hello.
here is the network diagram.
Code:

<INTERNET>
     |
<ISP - MODEM --- ETHERNET + WIFI ROUTER> wan side Dynamic IP, and wifi is disabled.
     | |
     | | 192.168.2.0/24
     | |
     | +------------>   subnet 1
     |
     |
<NETGEAR - ROUTER 1> ETHERNET - NO WIFI HARDWARE
     | |
     | | 192.168.3.0/24
     | |
     | +------------>  subnet 2
     |
     |
<DD-WRT NETGEAR - ROUTER 2>  ETHERNET + WIFI ROUTER. Run as DHCP server and dns server.
     |
     | 192.168.4.0/24
     |
     +------->  subnet 3


On subnet 3, I am planning to configure :
1) a Postfix mailserver sending mail using my ISP SMTP Server
2) a local web server

I would like to have a name for the router itself, for the mailserver, and for the webserver.
here the part of the configuration for that :
Code:

#
# DOMAIN NAME : my_domain.nwk
#
domain=my_domain.nwk
local=/my_domain.nwk/
local=/localdomain/my_domain.nwk/
address=/my_domain.nwk/192.168.4.230
#
# MAIL SERVER ( 192.168.4.80 is computer address running postfix mailserver. Address different than web server )
#
address=/mailsrv.my_domain.nwk/192.168.4.80
ptr-record=80.4.168.192.in-addr.arpa,mailsrv.my_domain.nwk
mx-host=my_domain.nwk,mailsrv.my_domain.nwk,10
mx-target=mailsrv.my_domain.nwk
localmx
#
# WEB SERVER ( 192.168.4.230 is router address . Address different than mail server )
#
address=/www.my_web.nwk/192.168.4.230
ptr-record=230.4.168.192.in-addr.arpa,www.my_web.nwk



DD-WRT router act as dhcp server and dns server.

I would like :
nmap return "my_router" and "192.168.4.230" and mac address and not "www.my_web.nwk" and "192.168.4.230"

Is it correct ?
Are there any redundancy?
Are there any contradictions?

Any comment is welcome.

_________________
Netgear R6300v2 DD-WRT v3.0-r47495 std (09/28/21) - Linux Opensuse Leap 15.2 - Win 10
Sponsor
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6446
Location: UK, London, just across the river..

PostPosted: Sat Feb 02, 2019 10:16    Post subject: Reply with quote
instead of 3 NAT's you can put ISP modem/router in bridge mode and have only DD-WRT router with as many subnets you want...

what's the reason you need this Netgear in the middle...???

there is an option to run your DD-WRT in WAP mode
but this is not the case you want..i guess

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
jcdole
DD-WRT Novice


Joined: 13 Jun 2015
Posts: 42
Location: South-West France

PostPosted: Sun Feb 03, 2019 15:14    Post subject: Reply with quote
Alozaros wrote:
instead of 3 NAT's you can put ISP modem/router in bridge mode and have only DD-WRT router with as many subnets you want...

what's the reason you need this Netgear in the middle...???

there is an option to run your DD-WRT in WAP mode
but this is not the case you want..i guess


As my above questions show , routers are not one of my favorite things.

The first router is an ISP router. If I run into technical problems, I am sure to be alone. So I don't want to change any things that is not accessible from the vendor windows management. Secondly the first subnet goes also to the home's caretaker and the TV port for the TV decoder must be connected to the port #4 of ISP's router. So modifying the router could prevent him from receiving TV at home.

One reason I keep router #2 is that it is here, and I have not really enough time to think to another physical/logical architecture. I have a small project under Linux with a mail server and a web server without a real domain name. So I started with that configuration.
So based on that configuration, is the config correct, are there any redundancy, are there any contradictions?

Thank you for helping.

_________________
Netgear R6300v2 DD-WRT v3.0-r47495 std (09/28/21) - Linux Opensuse Leap 15.2 - Win 10
jcdole
DD-WRT Novice


Joined: 13 Jun 2015
Posts: 42
Location: South-West France

PostPosted: Thu Feb 14, 2019 10:08    Post subject: Reply with quote
Any help is welcome
_________________
Netgear R6300v2 DD-WRT v3.0-r47495 std (09/28/21) - Linux Opensuse Leap 15.2 - Win 10
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum