On 12/8/22 13:25, Geert Stappers wrote:
On Wed, Dec 07, 2022 at 03:11:53PM +0100, Matthias May via Dnsmasq-discuss wrote:On 12/6/22 19:51, Gordon Shawn wrote:can dnsmasq listen on different ports(e.g. 53, 5353,5354,5355) in the same time with a single process running? each port can have its own configuration. so far IĀ invoke multiple dnsmasq processes to do that. if they can share with one process I can save some memory.You could do a portforward with {ip,nf}tables.Please elaborate how that works.BR MatthiasGroeten Geert Stappers
iptables -t nat -A PREROUTING -d 192.168.1.2 -p udp -m udp --dport 5353 -j DNAT --to-destination 192.168.1.2:53 This forwards requests to port 5353 to port 53. As said elsewhere in the thread, this doesn't allow to have a different config for different "ports" because from dnsmasq's point of view there is only a single port. BR Matthias
OpenPGP_0xDF76B604533C0DBE.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Dnsmasq-discuss mailing list [email protected] https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
