View Single Post
Old 01-06-2017, 19:27   #11786
Xfire90
Senior Member
 
L'Avatar di Xfire90
 
Iscritto dal: Jun 2008
Cittā: TN
Messaggi: 550
Quote:
Originariamente inviato da pSycH0bUnnY Guarda i messaggi
Hello,

I have a DGND4000, running amod 3.0.9, and I am trying to setup an iptables script to route certain sites...

I have done this in the /etc/amod/conf/wan.user

*GUID is a secret code

This does not work.

I have tested the individual commands via telnet, but it fails when I try to "restart_dns".

If I remove the "restart_dns" line and it still fails.

Any help would be appreciated.

This is what i am trying to replicate on my router - http://https://dns4me.net/guides/dd-...-device/page-3
Can't you pass your desired hostfile to dnsmasq? AMOD is not based on WRT firmwares, is a amodded netgear firmware.

To restart dnsmasq you can use this code:
Codice:
killall -q -SIGHUP /usr/etc/amod/init.d/dns || {
    echo "dnsmasq not running...${NC}"
   /usr/etc/amod/init.d/dns start
}
__________________
i7 4790K 4.8GHz || AsRock z97 Extreme 9 (REBAR ENABLED) || RX 6900XT RED DEVIL || 16GB TridentX 2400 CR1 || 7,5 TB di HD VARI || ArchLinux - Win 10 x64
Xfire90 č offline   Rispondi citando il messaggio o parte di esso