What's new

Any way to stop httpd from binding to 0.0.0.0:80

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

jtp10181

Senior Member
I poked around trying to find where the setting might be in hopes I could do something with a custom config option but I can't find anything.

So... is there any way to specify what interfaces httpd will bind to? Trying to start something on another interface on port 80 but cannot because of this default binding.

Alternative is try and make this other service work on an alt port.
 
Use the https setting to log into the router. This will free up port 80 for your project.
 
I prompted this to be changed in Tomato - its a one line source-code change to bind only to the router lan IP. I can confirm that disabling the router gui on http works fine, and allows pixelserv for example to be used on asuswrt-merlin router. You should also use a non standard https port for the web gui, because anything looking for a webserver on port 80 may also look on 443 (and recent pixelserv binaries posted on linksysinfo tomato thread also listen on port 443 by default).
 
The AiCloud listens on port 443 with 0.0.0.0 I am pretty sure. Which I could also disable but I am testing out the various features right now before I disable things I don't want.

I found disabling the Port 80 http makes some of the error redirects break from things like the trend micro filtering. I think there was one other page that broke too but I don't remember. They all rely on that port 80 being active.

Trying to get things working on another port right now.


Sent from my iPad using Tapatalk
 
I would have thought trend micro filtering would defeat router ad blocking? I have noticed the wan down redirect assumes the web server on port 80. I use this version of pixelserv on an N66 listening on multiple ports, from usb started in wan-start

Code:
#!/bin/sh
logger "WAN Up: New IP address is $(nvram get wan_ipaddr)"
PXL_IP=192.168.66.254
ifconfig br0:0 $PXL_IP up
pix=pixelserv
if pidof $pix;
then killall -usr1 $pix
else
/mnt/usb4gb/$pix $PXL_IP -p 80 -p 81 -p 8080 -p 8081 -p 443 -o 2
fi

killall wan_check.sh
/mnt/usb4gb/wan_check.sh &

logged as

Code:
Jan  1 00:00:14 pixelserv[497]: /mnt/usb4gb/pixelserv version: V35.HZ11FIX2 compiled: Nov 29 2014 13:32:49 options: 192.168.66.254 -p 80 -p 81 -p 8080 -p 8081 -p 443 -o 2
Jan  1 00:00:14 pixelserv[499]: Listening on :192.168.66.254:80
Jan  1 00:00:14 pixelserv[499]: Listening on :192.168.66.254:81
Jan  1 00:00:14 pixelserv[499]: Listening on :192.168.66.254:8080
Jan  1 00:00:14 pixelserv[499]: Listening on :192.168.66.254:8081
Jan  1 00:00:14 pixelserv[499]: Listening on :192.168.66.254:443

Multiple ports because I did come across some adverts using them (to bypass port 80 redirects?)

You can run it on say port 82 using "-p 82", but would then need to add a dnat iptables rule for each port

with current stats (since reboot yesterday) using custom dnsmasq conf file based on pgl.yoyo dnsmasq domain block list

Code:
Apr 12 15:47:43 pixelserv[499]: 103760 uts, 4618 req, 691 avg, 6285 rmx, 1967 tav, 4011 tmx, 0 err, 1117 tmo, 8 cls, 0 nou, 0 pth, 480 nfe, 196 ufe, 12 gif, 0 bad, 1329 txt, 0 jpg, 0 png, 0 swf, 1 ico, 1292 ssl, 0 sta, 12 stt, 0 204, 171 rdr, 0 pst, 0 hed
 
Last edited:
I had it setup to just block using 0.0.0.0 and all the Trend Micro stuff was on, it seemed to be working fine.

Never got it working with pixelserv. Working on cleaning it up now and disabling everything. Keeping my work on my flash drive in case I want it again later.
 
I don't have an ARM router, so no Trend Micro for me, it seems that Aicloud does use https but the port only defaults to 443, can be changed, it also uses 8082 as default for streaming.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top