Go Back   openSUSE Forums > Looking For Something Other Than Support?
Forums FAQ Members List Search Today's Posts Mark Forums Read


Looking For Something Other Than Support? If you are looking for manuals, books, repositories, hardware, software, etc. this is the place to see if someone can help you find it.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-Aug-2009, 09:45
Puzzled Penguin
 
Join Date: Mar 2009
Posts: 13
angathan hasn't been rated much yet
Default block ip

Hi,

I have series or ip address in a file one per line, if i run a shell script all ip should be denied. please help.
Reply With Quote
  #2 (permalink)  
Old 06-Aug-2009, 10:20
Explorer Penguin
 
Join Date: Jul 2008
Location: SPAIN
Posts: 133
carboncore hasn't been rated much yet
Default Re: block ip

Hi,

Not sure to understand what exactly you are after.

Do you want to write a script that reads every IP address from the data file and configure a rule in the ipfilter/iptables subsystem so that the kernel rejects/drop every packet having anyone of them as the origin IP address?

Is that your concern?
If yes, you will do better if you edit the /etc/sysconfig/SuSEfirewall2.

You can do it by hand, or better yet, via Yast, module firewall.

By the way, the right place for network kind of problems is
Network/Internet forum.

Hope this helps.

Regards.
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2