November 23, 2024, 01:23:30 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: blocking application like kopete using iptables or squid  (Read 5603 times)

Offline benicapo

  • New Member
  • Posts: 3
blocking application like kopete using iptables or squid
« on: September 12, 2005, 01:54:32 PM »
i'd like to know if theres any way to block  a certain aplicattion for an especific user.
i mean  i dont wanna let a certain user to have access to kopete.
sorry if this isnt the correct placefor this issue.
thks

igot suse9.3

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
blocking application like kopete using iptables or squid
« Reply #1 on: September 13, 2005, 05:35:32 PM »
you can do this, we can do this using iptables as well as using squid also.
You will have to block the ports used  by kopete for certiain ip (aka user's computer) .

Is that you want to know ?

You can do like
Code: [Select]

 # This line is to drop TCP port 5101
iptables -A INPUT -p tcp -s <ip of the user> --dport <port> -j DROP      


here give ip of the user and give the port used by that application. However now a days, most of the application have the ability to use other port, even protocol if one is unavailable. So you have to find out that what resources are used by that application and then we can block it easily.

Offline benicapo

  • New Member
  • Posts: 3
blocking application like kopete using iptables or squid
« Reply #2 on: September 16, 2005, 09:16:32 AM »
thks ricky!!! worked allright!