Stop a software from accessing Internet

Hi,

I’m trying to stop a software from accessing internt, but I don’t know how to do it. Would you please let me know how it is possible?

Thanks

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

That’s a big vague… what are you trying to do? You could not load the
software, or you could make your system unable to connect to the internet.
You could perhaps set the software into “Offline Mode” or something.

Good luck.

ipoloton wrote:
> Hi,
>
> I’m trying to stop a software from accessing internt, but I don’t know
> how to do it. Would you please let me know how it is possible?
>
> Thanks
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJKl/HjAAoJEF+XTK08PnB5VP8P/REP1AqgGBtObg8i3udUFAdG
mD6hUGBHy8/HdinceKAoq1D7SGNl8syaKIub9E9ksaI9VEM9wFAm/Z+FWX0opPs8
28w1wjejcLTzZQoBGgR26/9LnhoC4hLHXHyZ8TrheA4jfUNXZu9YlOALYq4WQzRY
KyJE+3lr0St2Zd8N5lB8yat2Pdw1zpB8NVuK/x+OPblwGcMIQS69wqC+lkYbTd8z
0g3LTiSOOiHxwpXgBjnb0m+iIKvebkibOEUzcXdDwE18v4FNFr4Ovt843zKD3404
nyj/mPRges4B9exR9xxQD8U7WnE+WNbUeCEXWcjAgEKDEMsOMZP5eH5IuqJp3+uo
G8ho21Guk2cEycZxHkb2RpXN32jkNylSGwVoqViwaaaTx20EKduxgmnrbHI1Mto0
2b85X178qpkhibxGb4yjG9oCc8d73g7kd7oEVOZUJpfewo168gjS8uKO3pHVZthF
4qnLGaIgth3npUKRXPJRbK8O3i7P9ZMjXpDcZemINws/ADn6v0cnRlEscOuG5SXA
vstXWj011+3UZjZogg1MqWqgagnRR+MomXr3vGaNcaDmu6elJ16DhjZkxLwOhUDc
HBtQjlv+KEezPT8XrMnRqKaI5PWIPY3HQPSgE62a48Stt86PDrQCWq+36aBKMylI
XMkR2Pv0+nyfJJ57X/x5
=Dbo/
-----END PGP SIGNATURE-----

I didn’t quite understand. You mean that the only way is that either to unable the systems to access to internet, or not to run the software?
The software does not have an offline mode. that’s the problem.

Hi
So you want the software (it might help if we have a name for it) to
access a local lan? Or no access? If so does it access a particular
site, or place on the internet? If for example it was firefox and I
didn’t want anyone accessing say www.ubuntu.com from the local machine
I could add an entry in /etc/hosts


127.0.0.0 www.ubuntu.com 91.189.94.9


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.2 Milestone 6 (i586) Kernel 2.6.31-rc6-3-desktop
up 0:53, 2 users, load average: 0.05, 0.09, 0.10
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

ipoloton wrote:

>
> Hi,
>
> I’m trying to stop a software from accessing
internt, but I don’t know
> how to do it. Would you please let me know how it
is possible?
>
> Thanks
>
>
is what you’re looking for something like a Windows
firewall (zonealarm) where an application must be
given permission before it can access the Internet?

something like http://tuxguardian.sourceforge.net/,
which appears to no longer be in development?

openSuse 11.1 x64bit, KDE4.x Factory, Opera weekly

ipoloton wrote:

>
> Hi,
>
> I’m trying to stop a software from accessing internt, but I don’t know
> how to do it. Would you please let me know how it is possible?
>
> Thanks
>
>

If you’re just looking to stop one application from accessing the internet
you probably want to mess with iptables.

Adobe Acrobat 7 decided to ‘call home’ to log which documents you opened and
I’ve seen in iptables entry of …
iptables -A OUTPUT -m owner --cmd-owner acroread -j DROP
suggested as a way to block it.

You’ll have to teach yourself iptables but that’s definitely one way of
doing it.
Me, I just stopped using acrobat reader :slight_smile:

Alan

I guess it might also be possible to achieve this with AppArmor, but might be more complex to set up than iptables.

I’m absolutely looking for something like zonealarm. :slight_smile:

iptables -A OUTPUT -m owner --cmd-owner acroread -j DROP

I’m trying to stop MATLAB to access the internet. So I supposed that i should put MATLAB instead of acroread. Yes?
I decided to take a look th iptables tutorial, but it was very long and confusing.

I guess it might also be possible to achieve this with AppArmor

I looked for AppArmor in software management, but there are dozens of them, and I don’t know which one to install.

This might help. When I start MATLAB, it says this in the terminal:

libxcb: WARNING! Program tries to unlock a connection without having acquired
a lock first, which indicates a programming error.
There will be no further warnings about this issue.

what does this mean?

I don’t wanna give up and stop using MATLAB. :wink: