Enable Ping on WAN Interface

From WiDirect
Jump to: navigation, search

By default the WiDirect does not respond to pings on the WAN interface. To enable pings you need to modify the iptables configuration file on the WiDirect.

SSH to the WiDirect and run the following command:

sudo vi /etc/sysconfig/iptables

Use the arrow keys to find this line:

-A INPUT -i eth0 -j REJECT --reject-with icmp-port-unreachable

Above that line add a new line that looks like this:

-A INPUT -i eth0 -p icmp --icmp-type 8 -s 0/0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

Save the changes and exit the vi text editor. Then run these two commands for the changes to take effect:

	sudo /sbin/service iptables restart
	sudo /sbin/service awicp_client restart