Developing lightweight computation at the DSG edge

Commit 052123d1 authored by Agustí Moll Garcia's avatar Agustí Moll Garcia
Browse files

Fixed Splash Firewall, and change banner.

parent c74f6651
......@@ -6,5 +6,3 @@
|_| |_|
quick MESH project
cat /etc/qmp/qmp.banner >> /etc/banner
echo "Versio XXXX" >> /etc/banner
echo "Versio ratafia 1.0 (Sat Oct 29 2011) ---------------" >> /etc/banner
echo "Ratafia Recipe:
echo "----------------------------------------------------" >> /etc/banner
echo "/usr/sbin/iptables -t nat -N captive-portal" >> /etc/firewall.user
echo "/usr/sbin/iptables -t nat -A PREROUTING -i br-lan -j captive-portal" >> /etc/firewall.user
echo "/usr/sbin/iptables -t nat -A captive-portal -p tcp --destination-port 80 -j DNAT --to-destination $(uci get network.lan.ipaddr):8888" >> /etc/firewall.user
cat << QMP >> /etc/firewall
IPLOCAL="$(uci get qmp.networks.lan_address)"
/usr/sbin/iptables -t nat -N captive-portal
/usr/sbin/iptables -t nat -A PREROUTING -i br-lan ! -d $IPLOCAL -j captive-portal
/usr/sbin/iptables -t nat -A captive-portal -p tcp --destination-port 80 -j DNAT --to-destination ${IPLOCAL}:8888
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment