What's new

WAN ICMP from specific IP addresses?

  • 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!

lindend

Occasional Visitor
I know there's a blanket option to enable ICMP responses on the WAN but is there an easy way to allow WAN ICMP responses from specific IP addresses rather than responding to all incoming pings? If not, is iptables the next option?
 
I would create a /jffs/scripts/firewall-start script as follows:
Code:
#!/bin/sh

logger -t $(basename $0) $1

iptables -I INPUT -p icmp -s 123.123.123.123 -j ACCEPT

where 123.123.123.123 is your allowed IP address. Then turn off "Respond Ping Request from WAN" in the web interface.
 
is it possible to create WAN ICMP respond script for dynamic IP (dyndns for example)

iptables -I INPUT -p icmp -s my-hostname.dyndns.org -j ACCEPT

would this work, or is there some workaround to make it work?

what does this line do (I guess it logs something, but what, and where?)
logger -t $(basename $0) $1
 
Last edited:

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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