Block IP addresses: Difference between revisions
From WickyWiki
No edit summary |
|||
| Line 40: | Line 40: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Add the following line to the /etc/firestarter/user-post file | Add the following line to the /etc/firestarter/user-post file: | ||
<blockquote> | <blockquote> | ||
Revision as of 22:03, 3 January 2013
Install
Install Firestarter GUI for iptables:
Fix syslog error at startup
sudo gedit /etc/rsyslog.d/99-fixlog.conf
*.=info;*.=notice;*.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none -/var/log/messages
sudo service rsyslog restart
Enable block rule
To block 123.11.112.1 with iptables:
iptables -I INPUT -s 123.11.112.1 -j DROP
To enable this functionality in firestarter edit this file:
sudo gedit /etc/firestarter/user-post
Add the following line to the /etc/firestarter/user-post file:
$IPT -I INPUT -s 123.11.112.1 -j DROP
Restart service:
sudo service firestarter restart