Quantcast
Channel: WXforum.net - AcuRite Weather Stations
Viewing all articles
Browse latest Browse all 7538

Re: Redirect or block Bridge posts to Aculink

$
0
0
Success! I installed the latest raspian image on the pi (I was using Ubuntu before when I tried) and these commands worked perfectly. 
Code: [Select]
ebtables -t broute -A BROUTING -p IPv4 --ip-protocol 6 --ip-destination-port 80 -j redirect --redirect-target ACCEPT
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 80 -j REDIRECT --to-port 8000

I ran a dummy web server (python script) which just prints anything sent to it and returns "OK".  When the iptables command is issued, it immediately started displaying the bridge posts.  So it looks like this will work fine and it completely removes the need for any outside servers.    I suppose one failure case is if Acurite shuts the system down and the bridge can't find www.acu-link.com, it might decide to stop working but that should relatively easy to fix if it ever comes up.

FYI I was already forwarding the bridge posts (via tcpflow before) to a python package which converted all the information into MQTT messages on my network.  My next step is to write something that will post certain sensors to weather underground.   I have other plans to store this data in a time series db and build some web pages for plotting and historical data when I get some free time.

Viewing all articles
Browse latest Browse all 7538

Trending Articles