1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pixelserv compiled to run on router WRT54G

Discussion in 'Tomato Firmware' started by Jedis, Sep 5, 2009.

  1. HunterZ

    HunterZ Networkin' Nut Member

    @koitsu: Thanks. The command there has a typo, though (as mentioned in the comments below it), and should be:
    Code:
    CFLAGS="-static -Wl,-Bdynamic,-lgcc_s,-Bstatic"
    This gives me a 105KB binary instead of a 15KB one. I'll attach it here and see if it works for leandroong or others.

    Also, I did find that libgcc_s.so library in the entware toolchain (which I have a secondary toolchain), but its linker couldn't find it for some reason. It looks like entware's mipsel-uclibc-ldconf is hard-coded to look for cache files somewhere under /opt, and I didn't want to mess with trying to untangle that.

    Attached Files:

    jerrm and M0g13r like this.
  2. leandroong

    leandroong Addicted to LI Member

    @HunterZ, result of my test

    I rename pixelserv.static to pixelserv

    Code:
    /media/optware/adblock # ./pixelserv -help
    Usage:./pixelserv [IP No/hostname (all)] [-n i/f (all)] [-o select_timeout (10 seconds)] [-p port (80) & (443)] [-r (enables redirect to encoded path in tracker links)] [-s /relative_stats_html_URL (/servstats) [-t /relative_stats_txt_URL (/servstats.txt) [-u user ("nobody")]
    /media/optware/adblock # readelf -d ./pixelserv
    
    Dynamic section at offset 0x12c contains 22 entries:
      Tag        Type                         Name/Value
    0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
    0x0000000c (INIT)                       0x403dd8
    0x0000000d (FINI)                       0x416ef0
    0x00000004 (HASH)                       0x400204
    0x00000005 (STRTAB)                     0x4029a0
    0x00000006 (SYMTAB)                     0x400d40
    0x0000000a (STRSZ)                      4234 (bytes)
    0x0000000b (SYMENT)                     16 (bytes)
    0x70000016 (MIPS_RLD_MAP)               0x429950
    0x00000015 (DEBUG)                      0x0
    0x00000003 (PLTGOT)                     0x429960
    0x70000001 (MIPS_RLD_VERSION)           1
    0x70000005 (MIPS_FLAGS)                 NOTPOT
    0x70000006 (MIPS_BASE_ADDRESS)          0x400000
    0x7000000a (MIPS_LOCAL_GOTNO)           50
    0x70000011 (MIPS_SYMTABNO)              454
    0x70000012 (MIPS_UNREFEXTNO)            25
    0x70000013 (MIPS_GOTSYM)                0xb1
    0x6ffffffe (VERNEED)                    0x403db8
    0x6fffffff (VERNEEDNUM)                 1
    0x6ffffff0 (VERSYM)                     0x403a2a
    0x00000000 (NULL)                       0x0
    /media/optware/adblock #
    
    /media/optware/adblock # sh adblock.sh
    ADBLOCK: Download starting
    ADBLOCK: Unchanged: http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext (Last-Modified: Fri, 29 Aug 2014 08:52:11 GMT)
    ADBLOCK: Unchanged: http://www.malwaredomainlist.com/hostslist/hosts.txt (Last-Modified: Mon, 25 Aug 2014 12:50:23 GMT)
    read(net): Connection reset by peer
    ADBLOCK: Unchanged: http://winhelp2002.mvps.org/hosts.txt (Last-Modified: Wed, 20 Aug 2014 18:15:38 GMT)
    ADBLOCK: Filters unchanged
    ADBLOCK: Exiting
    /media/optware/adblock #
    
    I have libgcc_s.so.1 in /opt/lib.
    Code:
    /media/optware/adblock # wget -S -O - http://10.0.1.254:/servstats
    --2014-09-01 18:47:56--  http://10.0.1.254/servstats
    Connecting to 10.0.1.254:80... connected.
    HTTP request sent, awaiting response...
      HTTP/1.0 404 Not Found
      Server: httpd
      Date: Mon, 01 Sep 2014 10:47:56 GMT
      Content-Type: text/html
      Connection: close
    2014-09-01 18:47:56 ERROR 404: Not Found.
    

    Attached Files:

    Last edited: Sep 1, 2014 at 11:49 AM
  3. M0g13r

    M0g13r Networkin' Nut Member

    nice :)

    409 req, 0 err, 0 tmo, 90 cls, 0 nou, 0 pth, 96 nfe, 149 ufe, 1 gif, 0 bad, 0 txt, 0 jpg, 0 png, 0 swf, 2 ico, 42 ssl, 7 sta, 0 stt, 22 rdr
  4. HunterZ

    HunterZ Networkin' Nut Member

    leandroong, what happens if you run pixelserv manually like this:
    pixelserv 10.0.1.254 -r

    Does it then show up if you run:
    ps w
  5. HunterZ

    HunterZ Networkin' Nut Member

    I wonder what causes the closed connections (cls). Port scanning maybe?
  6. leandroong

    leandroong Addicted to LI Member

    /media/optware/adblock # ./pixelserv 10.0.1.254 -r
    pixelserv[1821]: ./pixelserv version: V35.HZ7 compiled: Aug 31 2014 22:11:55 from pixelserv.c
    /media/optware/adblock #

    /media/optware/adblock # ps w
    PID USER VSZ STAT COMMAND
    1 root 1556 S /sbin/init
    2 root 0 SW [kthreadd]
    3 root 0 SW [ksoftirqd/0]
    5 root 0 SW [kworker/u:0]
    6 root 0 SW< [khelper]
    7 root 0 SW [kworker/u:1]
    81 root 0 SW [sync_supers]
    83 root 0 SW [bdi-default]
    84 root 0 SW< [crypto]
    85 root 0 SW< [kblockd]
    94 root 0 SW [khubd]
    120 root 0 SW [kswapd0]
    121 root 0 SW [fsnotify_mark]
    159 root 0 SW [mtdblock0]
    164 root 0 SW [mtdblock1]
    169 root 0 SW [mtdblock2]
    174 root 0 SW [mtdblock3]
    179 root 0 SW [mtdblock4]
    184 root 0 SW [mtdblock5]
    189 root 0 SW [mtdblock6]
    205 root 0 SW [kworker/0:1]
    212 root 0 SW< [deferwq]
    329 root 1540 S /sbin/syslogd -s512 -b0 -S -D -O /tmp/syslog.log
    332 root 0 SW [scsi_eh_0]
    333 root 0 SW [usb-storage]
    338 root 1540 S /sbin/klogd
    382 root 0 SW [RtmpCmdQTask]
    407 root 0 SW [kworker/0:2]
    478 root 0 SW [jbd2/sda2-8]
    479 root 0 SW< [ext4-dio-unwrit]
    486 root 1544 S /sbin/detect_link
    488 root 1544 S /sbin/detect_internet
    491 nobody 1052 S /usr/sbin/dnsmasq
    574 root 1552 S /sbin/udhcpc -i eth3 -s /tmp/udhcpc.script -p /var/run/udhcpc0.pid -t4 -T4 -d -O26 -O33 -O121 -O249
    586 root 3016 S /usr/sbin/httpd -p 80
    588 root 1540 S telnetd
    590 root 2444 S /bin/inadyn --config /etc/inadyn.conf
    593 root 1544 S /sbin/watchdog
    600 root 1364 S /usr/sbin/dropbear -x -4 -s
    602 root 824 S /usr/sbin/infosvr br0
    604 root 812 S /usr/bin/miniupnpd
    606 root 1544 S /sbin/rstats
    610 root 948 S /bin/lld2d br0
    611 root 848 S /usr/sbin/networkmap -w
    639 root 1556 S /bin/sh
    648 root 3048 S /sbin/nmbd -D -s /etc/smb.conf
    650 root 3120 S N /sbin/smbd -D -s /etc/smb.conf
    654 nobody 720 S /sbin/portmap
    667 root 0 SW< [rpciod]
    675 root 0 SW [lockd]
    676 root 0 SW [nfsd]
    678 root 868 S /sbin/rpc.mountd
    692 root 776 S dnscrypt-proxy --local-address=127.0.0.1:2053 --daemonize --provider-name=2.dnscrypt-cert.ns4.ca.dns.open
    715 root 4080 S lighttpd -f /opt/etc/lighttpd/lighttpd.conf
    716 root 8108 S transmission-daemon -g /opt/etc/transmission
    718 root 9188 S aria2c --conf-path=/opt/etc/aria2.conf
    735 root 16628 S motion
    1195 nobody 1044 S /usr/sbin/dnsmasq
    1546 nobody 1044 S /usr/sbin/dnsmasq
    1689 nobody 1048 S /usr/sbin/dnsmasq
    1789 root 3356 S N /sbin/smbd -D -s /etc/smb.conf
    1798 root 1432 S /usr/sbin/dropbear -x -4 -s
    1799 root 1556 S -sh
    1811 root 1432 S /usr/sbin/dropbear -x -4 -s
    1812 root 1556 S -sh
    1816 root 1432 R /usr/sbin/dropbear -x -4 -s
    1817 root 1568 S -sh
    1819 root 0 SW [flush-8:0]
    1824 root 1544 R ps w
    /media/optware/adblock #
  7. HunterZ

    HunterZ Networkin' Nut Member

    Does 'ps w' show that process 1821 is still running?
  8. leandroong

    leandroong Addicted to LI Member

    @HunterZ, maybe there is conflict. I'm running lighttpd on 10.0.1.1:81 running webui-aria2 and http://10.0.1.1:9090/transmission/web/.
    Let me know what to do or test....

    note: addl info
    br0:1 Link encap:Ethernet HWaddr BC:AE:C5:EB:29:60
    inet addr:10.0.1.254 Bcast:10.255.255.255 Mask:255.0.0.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  9. leandroong

    leandroong Addicted to LI Member

    no. Will restart router to see any changes and get back to you

    edit2: still no after router restart. ifconfig display
    br0:1 Link encap:Ethernet HWaddr BC:AE:C5:EB:29:60
    inet addr:10.0.1.254 Bcast:10.255.255.255 Mask:255.0.0.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Last edited: Sep 1, 2014 at 3:54 PM
  10. HunterZ

    HunterZ Networkin' Nut Member

    pixelserv is supposed to listen on its own IP address, on ports 80 and 443 by default
  11. leandroong

    leandroong Addicted to LI Member

    Possible conflict with dnscrypt-proxy?
    I think it conflict with my lighttpd, mini server.

    Edit2: lighttpd is using port 81, only router GUI is assign to port 80
  12. HunterZ

    HunterZ Networkin' Nut Member

    Does your syslog contain any error messages?
  13. jerrm

    jerrm Addicted to LI Member

    I think you're right. Judging from this:
    Code:
    /media/optware/adblock # wget -S -O - http://10.0.1.254:/servstats
    --2014-09-01 18:47:56--  http://10.0.1.254/servstats
    Connecting to 10.0.1.254:80... connected.
    HTTP request sent, awaiting response...
      HTTP/1.0 404 Not Found
      Server: httpd
      Date: Mon, 01 Sep 2014 10:47:56 GMT
      Content-Type: text/html
      Connection: close
    2014-09-01 18:47:56 ERROR 404: Not Found.
    
    Something is already listening on port 80. Pixelserv would never return a 404 or include a server header as far as I know.

    Pixelserv does not throw any errors to the console if it can't bind the port, but check syslog, you should see something like:
    Code:
    Sep  1 11:08:33 RTN66U daemon.info pixelserv[9784]: pixelserv version: V35.HZ7 compiled: Aug 31 2014 22:11:55 from pixelserv.c
    Sep  1 11:08:33 RTN66U daemon.err pixelserv[9786]: Abort: Address already in use - :192.168.0.1:80
    
  14. leandroong

    leandroong Addicted to LI Member

    53:11 pixelserv[881]: ./pixelserv version: V35.HZ7 compiled: Aug 31 2014 22:11:55 from pixelserv.c
    Sep 1 22:53:11 pixelserv[883]: Abort: Address already in use - :10.0.1.254:80
    Sep 1 22:56:01 pixelserv[887]: ./1pixelserv version: V35.HZ6 compiled: Aug 31 2014 19:30:54 from pixelserv.c
    Sep 1 22:56:01 pixelserv[888]: Abort: Address already in use - 10.0.1.254:80
  15. leandroong

    leandroong Addicted to LI Member

    What remedy to change port?
  16. HunterZ

    HunterZ Networkin' Nut Member

    You're going to have to figure out what's getting in pixelserv's way and fix it. I don't think there's another way to do it.

    Edit: Is there a way to restrict lighttpd to listen on only a single IP address, so that it doesn't respond on 10.0.1.254?
    Last edited: Sep 1, 2014 at 4:23 PM
  17. jerrm

    jerrm Addicted to LI Member

    You can see what is binding the port with a full (non busybox) version of netstat (netstat -nlp) or with lsof.

    If you can't prevent the offending program from grabbing the port, you could run pixelserv on an alternate port and use iptables to redirect.
  18. leandroong

    leandroong Addicted to LI Member

    can I have your copy of adblock.sh for comparison?
    No conflict found on netstat -nlp.
    After running adblock.sh, I notice ifconfig generate, bro:1 with inet addr:10.0.1.254.

    Edit2: Searching padavan manual I found something interesting
    Connect to router`s WEB-interface using SSH-tunnel without Putty

    Thanks for the article on how to "Connect to router`s WEB-interface using SSH-tunnel". As I don't run Windows, but a Mac, I wish to connect to the web-interface without Putty, preferably just using a command line command.

    I have done this before using SSH tunneling, however my recipe for that doesn't seem to apply for Dropbear. I did SSH into the router (that part succeeds) and then try to execute the port tunneling command like:

    ssh -L 8888:localhost:80
    It turns out that localhost needs to be replaced with the internal IP address of the router (which can be derived using ifconfig br0 | grep inet, like:

    ssh -L 8888:192.168.41.254:80
  19. mstombs

    mstombs Network Guru Member

    Bit of history, tomato used to bind just the port No for all router IP addresses and prevent anything else use port 80
    but after pointing this out in post No 2 on this thread!
    http://www.linksysinfo.org/index.ph...ed-to-run-on-router-wrt54g.30509/#post-149258

    Rodney provided a one line change to router web gui source to make it only grab the router local lan IP.
    http://www.linksysinfo.org/index.php?threads/thoughts-on-httpd.31863/#post-158068

    dd-wrt also had (and guess still does) this restriction, so scripts needed to move the web gui or pixelserv IP via iptables, for example:-

    http://www.howtogeek.com/51477/how-to-remove-advertisements-with-pixelserv-on-dd-wrt/

    Rodney also used to build static versions of pixelserv and many other utilities, see for example

    http://multics.minidns.net/tomato/

    the build scripts will be in there as well.
  20. leandroong

    leandroong Addicted to LI Member

    Same result after temporarily disabling/killing lighttpd. This is source code issue, i think, I tried rodney binary and no conflict on log but unable to locate pid.

    Edit2: Will stick to firefox addon meantime...

    Edit3: sh adblock.sh stop remove bro1 from ifconfig. Enabling will create. Therefore, there is really no conflict. But when I enter url 10.0.1.254, I will get router gui, same as 10.0.1.1. With adblock stop, 10.0.1.254 not accessible

    Edit4: Although adblock not running as daemon, I can still say that it did manage to remove youtube starting ad when playing.
    Last edited: Sep 1, 2014 at 6:05 PM
  21. HunterZ

    HunterZ Networkin' Nut Member

    I think mstombs is saying that your router's built-in web gui is probably the one forcibly listening to port 80 on *all* IPs bound to the router's interfaces, and not lighttpd, and that this was fixed in Tomato but probably not in whatever firmware you're using.

    Could you configure your router's web gui to listen on a port other than 80?
  22. leandroong

    leandroong Addicted to LI Member

    I just configure it to listen on port 100 and it works. Re-running adblock and ps w, shows
    1049 nobody 1176 S /media/optware/adblock/pixelserv 10.0.1.254 -r

    router log:
    Sep 2 01:21:04 ADBLOCK: Download starting
    Sep 2 01:21:10 dnsmasq[923]: nameserver 121.1.3.89 refused to do a recursive query
    Sep 2 01:23:14 ADBLOCK: Downloaded
    Sep 2 01:23:14 ADBLOCK: Generating /var/lib/adblock/blocklist
    Sep 2 01:23:17 ADBLOCK: Config generated, 16816 unique hosts to block
    Sep 2 01:23:17 ADBLOCK: Setting up pixelserv on 10.0.1.254
    Sep 2 01:23:17 pixelserv[1046]: /media/optware/adblock/pixelserv version: V35.HZ7 compiled: Aug 31 2014 22:11:55 from pixelserv.c
    Sep 2 01:23:17 pixelserv[1049]: Listening on :10.0.1.254:80
    Sep 2 01:23:17 pixelserv[1049]: Listening on :10.0.1.254:443
    Sep 2 01:23:17 ADBLOCK: Done, restarting dnsmasq

    coment: ads not block on drama site given and main youtube page. only effective on removing initial ad on youtube play.

    edit2: Conflicting pid
    1049 nobody 1176 S /media/optware/adblock/pixelserv 10.0.1.254 -r
    1052 nobody 1044 S /usr/sbin/dnsmasq
    1060 root 0 SW [flush-8:0]
    1064 root 1544 R ps w
    /media/optware/adblock # ./pixelserv 10.0.1.254 -r
    pixelserv[1065]: ./pixelserv version: V35.HZ7 compiled: Aug 31 2014 22:11:55 from pixelserv.c
    Last edited: Sep 1, 2014 at 6:34 PM
  23. HunterZ

    HunterZ Networkin' Nut Member

    The drama site ads are blocked for me. What sources are you using in your config? Here are mine (note that I only use ones that report last update time so that I can update frequently without re-downloading lists every time):
    Code:
    ### Sources (uncomment desired blocklists) [must be compatible to the hosts file format!] ###
    ## MVPS HOSTS (~600k) [default]:
    SOURCES="$SOURCES http://winhelp2002.mvps.org/hosts.txt"
    ## pgl.yoyo.org (~70k) [default]:
    SOURCES="$SOURCES http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext"
    ## Hosts File Project (~3M!):
    SOURCES="$SOURCES http://hostsfile.mine.nu/Hosts"
    ## The Cameleon Project (~600k):
    #SOURCES="$SOURCES http://sysctl.org/cameleon/hosts"
    ## AdAway mobile ads (~20k):
    #SOURCES="$SOURCES http://adaway.sufficientlysecure.org/hosts.txt"
    ## hpHosts ad/tracking servers (~400k):
    #SOURCES="$SOURCES http://hosts-file.net/ad_servers.asp"
    SOURCES="$SOURCES http://hosts-file.net/ad_servers.txt"
    ## hpHosts ad/tracking/malicious servers (~6M! replaces hpHosts ad/tracking list):
    #SOURCES="$SOURCES http://hosts-file.net/download/hosts.txt http://hosts-file.net/hphosts-partial.asp"
    #SOURCES="$SOURCES http://www.montanamenagerie.org/hostsfile/hosts.txt"
    ## MalwareDomainList.com (~40k):
    SOURCES="$SOURCES http://www.malwaredomainlist.com/hostslist/hosts.txt"
    #SOURCES="$SOURCES http://dl.dropbox.com/u/32428671/m.txt?dl=1"
    And here is my blacklist file:
    Code:
    dra.amazon-adsystem.com
    amazon-adsystem.com
    blastro.com
    ads.ign.com
    ad.doubleclick.net
    c.brightcove.com
    admin.brightcove.com
    cb.brightcove.net
    For me, hosts-file.net, winhelp2002.mvps.org, and pgl.yoyo.org all block rubiconproject.com, which is where one of the drama site ads is hosted.
  24. leandroong

    leandroong Addicted to LI Member

    I use default, 1,2 and malware (last). Running adblock in router memory.
    Did you notice the conflict pid?
    edit2: 1049 vs 1065
  25. HunterZ

    HunterZ Networkin' Nut Member

    Which adblock script are you running? (i.e. which forum thread)
  26. leandroong

    leandroong Addicted to LI Member

    Script: Clean, Lean and Mean Adblocking with little path modification regarding dnsmasq restart and iptable location

    edit2: see attachment file

    Attached Files:

  27. HunterZ

    HunterZ Networkin' Nut Member

    Have you tried rebooting your desktop/laptop after enabling adblock, to clear cached DNS entries from your OS and browser?
  28. leandroong

    leandroong Addicted to LI Member

    closing browser and ipconfig /flushdns
    edit2: restarting router log as follows:
    Sep 2 01:59:45 ADBLOCK: Downloaded
    Sep 2 01:59:45 ADBLOCK: Generating /var/lib/adblock/blocklist
    Sep 2 01:59:47 ADBLOCK: Config generated, 16816 unique hosts to block
    Sep 2 01:59:47 ADBLOCK: Setting up pixelserv on 10.0.1.254
    Sep 2 01:59:48 pixelserv[762]: /media/optware/adblock/pixelserv version: V35.HZ7 compiled: Aug 31 2014 22:11:55 from pixelserv.c
    Sep 2 01:59:48 pixelserv[765]: Listening on :10.0.1.254:80
    Sep 2 01:59:48 pixelserv[765]: Listening on :10.0.1.254:443
    Sep 2 01:59:48 ADBLOCK: Done, restarting dnsmasq

    edit 3:
    ps w
    765 nobody 1176 S /media/optware/adblock/pixelserv 10.0.1.254 -r

    conflict pid
    /media/optware/adblock # ./pixelserv 10.0.1.254 -r
    pixelserv[879]: ./pixelserv version: V35.HZ7 compiled: Aug 31 2014 22:11:55 from pixelserv.c
    Last edited: Sep 1, 2014 at 7:03 PM
  29. HunterZ

    HunterZ Networkin' Nut Member

    In that case I'm stumped.
  30. mstombs

    mstombs Network Guru Member

    re pid Nos, when pixelserv daemonizes the main process pid increments a couple of times, this is normal.
    Also pixelserv spawns (forks) a new process for every reply, so you can have multiple entries seen in ps or top lists, the higher No one should be transient and short lived, maybe more visible with the default timeout increase recently. Real web servers have a fixed no of sub processes and inter-process communication to distribute the workload, without the OS overhead of creating and destroying processes.
  31. leandroong

    leandroong Addicted to LI Member

    change setting: ramlist=0 and same blacklist, rebooting router.
    1. router log
    Sep 2 02:12:54 ADBLOCK: Downloaded
    Sep 2 02:12:54 ADBLOCK: Generating /media/optware/adblock/blocklist
    Sep 2 02:12:57 ADBLOCK: Config generated, 16824 unique hosts to block
    Sep 2 02:12:57 ADBLOCK: Setting up pixelserv on 10.0.1.254
    Sep 2 02:12:58 Samba Server: daemon is started
    Sep 2 02:12:58 pixelserv[766]: /media/optware/adblock/pixelserv version: V35.HZ7 compiled: Aug 31 2014 22:11:55 from pixelserv.c
    Sep 2 02:12:58 pixelserv[775]: Listening on :10.0.1.254:80
    Sep 2 02:12:58 pixelserv[775]: Listening on :10.0.1.254:443
    Sep 2 02:12:58 ADBLOCK: Done, restarting dnsmasq

    2. ps w
    775 nobody 1176 S /media/optware/adblock/pixelserv 10.0.1.254 -r

    3. conflicting pid also
    /media/optware/adblock # ./pixelserv 10.0.1.254 -r
    pixelserv[884]: ./pixelserv version: V35.HZ7 compiled: Aug 31 2014 22:11:55 from pixelserv.c

    re-running ps w, does not show any adblock on 884, only on 775 (original)
    Last edited: Sep 1, 2014 at 7:25 PM
  32. leandroong

    leandroong Addicted to LI Member

    There is still ads in drama. We need to figure out that little conflicting issue.

    edit 2: I don't have pid file, adblock.pid, on /var/run. This could be the reason?
    Last edited: Sep 1, 2014 at 7:29 PM
  33. HunterZ

    HunterZ Networkin' Nut Member

    Adblock doesn't have a pid except when it's starting/stopping. Adblock's job is to generate a blocklist and feed it to dnsmasq, which causes dnsmasq to direct blocked domain names to nullserv's IP address.

    Do you have dnsmasq configured to act as a DNS server, and do you have your PC configured to use your router as its sole DNS server?
  34. M0g13r

    M0g13r Networkin' Nut Member

    nothing special it's my browser :)
  35. leandroong

    leandroong Addicted to LI Member

    my dns server as follow: 10.0.1.1 218.102.23.228 121.1.3.89

    Let me try changing PIXEL_IP to 253, will reboot router
    edit2:
    1. router log
    02:38:47 ADBLOCK: Config generated, 16824 unique hosts to block
    Sep 2 02:38:47 ADBLOCK: Setting up pixelserv on 10.0.1.253
    Sep 2 02:38:47 Samba Server: daemon is started
    Sep 2 02:38:47 pixelserv[766]: /media/optware/adblock/pixelserv version: V35.HZ7 compiled: Aug 31 2014 22:11:55 from pixelserv.c
    Sep 2 02:38:47 ADBLOCK: Done, restarting dnsmasq
    Sep 2 02:38:47 pixelserv[775]: Listening on :10.0.1.253:80
    Sep 2 02:38:47 pixelserv[775]: Listening on :10.0.1.253:443

    2. ps w
    775 nobody 1176 S /media/optware/adblock/pixelserv 10.0.1.253

    3. still conflict pid
    /media/optware/adblock # ./pixelserv 10.0.1.253 -r
    pixelserv[880]: ./pixelserv version: V35.HZ7 compiled: Aug 31 2014 22:11:55 from pixelserv.c
    Last edited: Sep 1, 2014 at 7:44 PM
  36. HunterZ

    HunterZ Networkin' Nut Member

    You need to use only the router's DNS server, or else there's no guarantee that the OS will route DNS queries to the router instead of another server.

    If your router's web GUI has a DNS intercept option, you should enable that too.
  37. HunterZ

    HunterZ Networkin' Nut Member

    I get those too, though. For all I know it could be the mobile devices in the house doing screwy things. If I wasn't feeling lazy I might attempt to implement logging of the offending IP addresses.

    Speaking of logging, I accidentally left a syslog call enabled that should have been changed back to a MYLOG call. If I end up making other changes I will be sure to fix that too.
  38. leandroong

    leandroong Addicted to LI Member

    just changed router to 1 dns server, 10.0.1.1, result still the same. Activating firefox addon for the meantime. Thanks
  39. HunterZ

    HunterZ Networkin' Nut Member

    No, the router needs to use various WAN servers and not the router itself.

    LAN clients (PCs, etc.) are the ones that need to use only the router as their only DNS server.
  40. leandroong

    leandroong Addicted to LI Member

    correct, i'm talking pc dns point to 10.0.1.1 only

Share This Page