/ 2004-08-27 16:28:33 +0200 \ Raphael Leplae:
Hi,
I've setup the SuseFirewall2 on my web server, allowing access just via http and ssh, that was very easy with the GUI. Now if I need to block a specific domain, let say *.123.123.123, is there a simple way to do it in /etc/sysconfig/SuSEfirewall2 ? I was expecting something like: FW_REJECT_IP="*.123.123.123" but nothing like that in the examples provided in /usr/share/doc/packages/SuSEfirewall2/
I guess there is a simple way to do it. Thanks in advance.
either you mean 123.123.123.* ... then it is simply FW_REJECT_IP=123.123.123.0/24 or you mean indeed "*.123.123.123" (which I think does not make any sense, but ...) then it is for _i in `seq 0 255` ; do FW_REJECT_IP="$FW_REJECT_IP $_i/32" done :-)