bottleneck
Choose style:

Author Topic: Allow pinging of public IP address  (Read 4221 times)

0 Members and 1 Guest are viewing this topic.

Offline Automate

  • Backer
  • *
  • Posts: 175
  • Thanks: 1
  • Registered : 03/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Allow pinging of public IP address
« on: November 16, 2015, 11:35:43 pm »
What needs to be done to allow internet devices to ping the public (WAN) IP address of the Almond+?
« Last Edit: November 17, 2015, 02:11:08 pm by Automate »

Offline SecureComp

  • Backer
  • *
  • Posts: 541
  • Thanks: 1
  • Registered : 05/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Allow pinging of public IP address
« Reply #1 on: November 17, 2015, 01:28:17 am »
Quick fix, won't last after a reboot

Code: [Select]
root@OpenWrt:~# uci add firewall rule
root@OpenWrt:~# uci set firewall.@rule[-1]._name=ping
root@OpenWrt:~# uci set firewall.@rule[-1].src=wan
root@OpenWrt:~# uci set firewall.@rule[-1].target=ACCEPT
root@OpenWrt:~# uci set firewall.@rule[-1].proto=ICMP
root@OpenWrt:~# uci commit firewall
root@OpenWrt:~# /etc/init.d/firewall restart


For it to work after a reboot, something along these lines.

https://forum.openwrt.org/viewtopic.php?id=19162

Hi Guys, we successfully (I + Almond + Staff member Saidur) implement a permanent fix for this that does not remove ICMP ping every restart.

Please edit your RC.local file to include
Code: [Select]
iptables --table filter -D reject --jump REJECT --reject-with port-unreach
iptables -A INPUT -i eth0 -p tcp --destination-port 1:1024 -s 0.0.0.0 -j DROP
iptables -A INPUT -i eth0 -p udp --destination-port 1:1024 -s  0.0.0.0 -j DROP

My rc.local file now looks like this.
Code: [Select]
/etc/init.d/d2 stop
/etc/d2/d2.remove
/etc/init.d/mrd6 stop
/etc/init.d/pppoe-server stop
iptables --table filter -D reject --jump REJECT --reject-with port-unreach
iptables -A INPUT -i eth0 -p tcp --destination-port 1:1024 -s 0.0.0.0 -j DROP
iptables -A INPUT -i eth0 -p udp --destination-port 1:1024 -s  0.0.0.0 -j DROP
« Last Edit: November 17, 2015, 01:30:02 am by SecureComp »
Kickstarter Backer
Securifi Wiki Editor and Beta Tester, Not a Securifi employee
Almond+, many sensors, IOS App, Android Apps and Widgets

Offline Automate

  • Backer
  • *
  • Posts: 175
  • Thanks: 1
  • Registered : 03/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Allow pinging of public IP address
« Reply #2 on: November 17, 2015, 02:05:50 pm »
@SecureComp  Thanks, the RC.local file changes worked.  I assume I'll have to do it again if I upgrade the firmware or do a factory reset.

Offline Rahaman

  • Securifi Staff
  • *
  • Posts: 78
  • Thanks: 4
  • Registered : 11/01/2015
    YearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Allow pinging of public IP address
« Reply #3 on: November 18, 2015, 12:24:35 am »
@SecureComp  Thanks, the RC.local file changes worked.  I assume I'll have to do it again if I upgrade the firmware or do a factory reset.

Yes!!! you have to do it again.

 

Page created in 0.053 seconds with 17 queries.

bottleneck