Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #184708
| From | Aaron Gray <aaronngray.lists@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | cannot get node dns program to work externally |
| Date | 2017-08-06 03:50 +0200 |
| Message-ID | <ubiRA-4c2-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hi,
I have a node.js based dns program on port 53 and have it working as
localhost on debian 8.5 but I cannot seem to get it to work externally
despite getting the firewall rules right having tested them with Bind9.
-A INPUT -p udp --dport 53 --sport 1024:65535 -j ACCEPT
-A OUTPUT -p udp --sport 53 --dport 1024:65535 -j ACCEPT
-A OUTPUT -p udp --sport 53 --dport 1024:65535 -j ACCEPT
-A INPUT -p udp --dport 53 --sport 1024:65535 -j ACCEPT
-A OUTPUT -p udp --sport 53 --dport 53 -j ACCEPT
-A INPUT -p udp --dport 53 --sport 53 -j ACCEPT
Also I have done :-
setcap cap_net_bind_service=+ep /usr/bin/nodejs
to allow node to work with ports less than 1024.
I have my node dns program working on port 53 UDP with dig from localhost
but Basically not externally on the local network and cannot work out why ?
I have mainly been using :-
https://github.com/tjfontaine/node-dns/blob/master/examples/forwarder.js
for testing.
Its probably something obvious hope someone can help !
--
Aaron Gray
Independent Open Source Software Engineer, Computer Language Researcher,
Information Theorist, and amateur computer scientist.
Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread
cannot get node dns program to work externally Aaron Gray <aaronngray.lists@gmail.com> - 2017-08-06 03:50 +0200 Re: cannot get node dns program to work externally Lck Ras <likcoras@riseup.net> - 2017-08-06 04:40 +0200 Re: [nodejs] Re: cannot get node dns program to work externally Aaron Gray <aaronngray.lists@gmail.com> - 2017-08-20 23:40 +0200
csiph-web