From 9bd45f495be0ce9263ec0a84bcbb2875063a6bd0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 16 Jan 2018 15:22:33 +0000 Subject: [PATCH] olsr2/manet firewall --- img/icon_protocol.png | Bin 0 -> 1099 bytes src/freedombone-mesh-install | 6 ++++++ src/freedombone-utils-mesh | 12 ++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 img/icon_protocol.png diff --git a/img/icon_protocol.png b/img/icon_protocol.png new file mode 100644 index 0000000000000000000000000000000000000000..1a765dd1ab54ba8671a8e0d8be5486711393d7ae GIT binary patch literal 1099 zcmV-R1ho5!P)SQG&(yf41mD$0SFi%pbCHh41fR(fB+1DpyE*P zFaSblkh}sRoKQNS(Z@<-i<7Y4fiN51ZtI7~U5k?N~sPhTdl)(fD*4NKZPP_ZNEx}N5{@e**1qO9R z5E0q7&1D5HvNEU#i(Vm!u8wQQkJbz*y^IS5C1Wtm0%AoC`Z@abd`M4q&>XMAj68>R zRv@Q6X;ia@9v`RSnEiKJsUT{6bICBvJ*IQo^@i1|H00FaAM;IN^kDRSh_e)l<0Gy?D z^k`yf7zzVV0ta_67Ccz=wvPb_6H~xiAfkg)qRjA~Yya{8^fzBN%^M1`8l0 z4-iN6C#Y>BM2v8ljTzJ08Q_~gnBuwfxu@S=B16D$4FE#zN#W5B$Wp*6UT4;*Tgq8& zjSKz|kNb>+USp!PoB0iX+2ocN1EDaZ|_1(v_*+IgafNHUXc&eL+R5= zA_7VyAZTwS;dm$MBbE>ZO2B}CoC5;N0SL@=KsbW|AndE8nYW>{EDt=~Q3(U_LXu#S zWdabImkAEBBuF1?VA!&D3}2ESXQ#d}-=^P&?zJgZ({rG9d-rF@l;hvdx~q6r1QXZd z@4ygMHBv4OTxd-kEWU%Gbrt|d;9!voWYS;}htG`-cH>E4MMqjbSPKY>j)tRc8W13?fFFhF2d1Hye6UeAYco*_`Mcqe#7NrJ`*BEpGiKxltE zfqe> $MESH_FIREWALL_SCRIPT echo "iptables -A INPUT -p udp --dport 1900 -j ACCEPT" >> $MESH_FIREWALL_SCRIPT echo "ip6tables -A INPUT -p udp --dport 1900 -j ACCEPT" >> $MESH_FIREWALL_SCRIPT + + echo '# OLSR2/MANET' >> $MESH_FIREWALL_SCRIPT + echo 'iptables -A INPUT -p udp --dport 269 -j ACCEPT' >> $MESH_FIREWALL_SCRIPT + echo 'ip6tables -A INPUT -p udp --dport 269 -j ACCEPT' >> $MESH_FIREWALL_SCRIPT + echo 'iptables -A INPUT -p tcp --dport 138 -j ACCEPT' >> $MESH_FIREWALL_SCRIPT + echo 'ip6tables -A INPUT -p tcp --dport 138 -j ACCEPT' >> $MESH_FIREWALL_SCRIPT chmod +x $MESH_FIREWALL_SCRIPT echo '[Unit]' > $FIREWALL_FILENAME diff --git a/src/freedombone-utils-mesh b/src/freedombone-utils-mesh index 7457392e..baeafa60 100755 --- a/src/freedombone-utils-mesh +++ b/src/freedombone-utils-mesh @@ -195,6 +195,9 @@ function enable_mesh_firewall { iptables -A INPUT -p tcp --dport 8008 -j ACCEPT iptables -A INPUT -p udp --dport 8010 -j ACCEPT iptables -A INPUT -p tcp --dport 8010 -j ACCEPT + # OLSR2/MANET + iptables -A INPUT -p udp --dport 269 -j ACCEPT + iptables -A INPUT -p tcp --dport 138 -j ACCEPT ip6tables -A INPUT -p ipv6-icmp -j ACCEPT @@ -225,6 +228,9 @@ function enable_mesh_firewall { ip6tables -A INPUT -p tcp --dport 8008 -j ACCEPT ip6tables -A INPUT -p udp --dport 8010 -j ACCEPT ip6tables -A INPUT -p tcp --dport 8010 -j ACCEPT + # OLSR2/MANET + ip6tables -A INPUT -p udp --dport 269 -j ACCEPT + ip6tables -A INPUT -p tcp --dport 138 -j ACCEPT # vpn over the internet @@ -273,6 +279,9 @@ function disable_mesh_firewall { iptables -D INPUT -p tcp --dport 8008 -j ACCEPT iptables -D INPUT -p udp --dport 8010 -j ACCEPT iptables -D INPUT -p tcp --dport 8010 -j ACCEPT + # OLSR2/MANET + iptables -D INPUT -p udp --dport 269 -j ACCEPT + iptables -D INPUT -p tcp --dport 138 -j ACCEPT ip6tables -D INPUT -p tcp --dport $TRACKER_PORT -j ACCEPT @@ -302,6 +311,9 @@ function disable_mesh_firewall { ip6tables -D INPUT -p tcp --dport 8008 -j ACCEPT ip6tables -D INPUT -p udp --dport 8010 -j ACCEPT ip6tables -D INPUT -p tcp --dport 8010 -j ACCEPT + # OLSR2/MANET + ip6tables -D INPUT -p udp --dport 269 -j ACCEPT + ip6tables -D INPUT -p tcp --dport 138 -j ACCEPT # vpn over the internet