Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bastille - IPTables

Status
Not open for further replies.

sromine

Technical User
Apr 21, 2006
38
0
0
US
Once again turning to good ole' tek-tips to help me with a problem.....

Issue: Is there a way to allow pings from a certain host, but block all others?

More Info: I have a Nagios network monitoring utility that pings hosts and lets me know what is up or down.....on a particular webserver I recently installed Bastille hardening utility, which is now blocking any pings to this server.

Anyone know how to change the settings within Bastille to allow either all pings or specific pings, or even better, know the IPTable rule to allow pings only from a certain IP.....

Thanks for any help.....
 
This SHOULD (bit out of touch) help
Code:
iptables -P INPUT DROP
iptables -A INPUT -p icmp -i eth0 -s [i]nagios_server_ip[/i] -j ACCEPT



--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top