Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: brunodada on June 21, 2012, 01:28:01 am

Title: Block Ultra Surf
Post by: brunodada on June 21, 2012, 01:28:01 am
hello, as I know my colleagues, I need a way to block ultra surf, because I know they are going to use! need a help from you for this! I await answers ...
Title: Re: Block Ultra Surf
Post by: brunodada on June 22, 2012, 08:26:05 pm
anyone?
Title: Re: Block Ultra Surf
Post by: Tymanthius on June 24, 2012, 10:23:11 pm
I briefly looked at UltraSurf's website.  As they use thier own dedicated servers, you could possibly set up IP blocking/DNS blocking so that even if they bring in the US client on a usb stick, they still couldn't even get to the US servers.

No idea how to implement this myself, but it's a thought.
Title: Re: Block Ultra Surf
Post by: brunodada on June 25, 2012, 07:33:33 pm
Well, I looked but could not very useful, even if someone could help me, I look forward to!
Title: Re: Block Ultra Surf
Post by: robb on June 25, 2012, 09:53:54 pm
Find out the IP addresses of ultrasurf and block those in your firewall...

/edit: more or less what Thymantius said.
//edit: here some more info: http://wiki.mikrotik.com/wiki/How_to_Detect_and_Block_UltraSurf_program_traffic
You can set up group policy that takes away the permission to adjust proxy settings in IE.

btw, I don't know in what kind of situation you are, but over here in .nl and .be when an employe gets caught bypassing company policies, he risks being fired at once. This said, you might want to communicate to your users that using this kind of software is illegal and not tolerated. PLaying cat and mouse is imo not the way to deal with this kind of issues.
Title: Re: Block Ultra Surf
Post by: Tymanthius on June 26, 2012, 04:43:25 am

btw, I don't know in what kind of situation you are, but over here in .nl and .be when an employe gets caught bypassing company policies, he risks being fired at once. This said, you might want to communicate to your users that using this kind of software is illegal and not tolerated. PLaying cat and mouse is imo not the way to deal with this kind of issues.

Illegal might be the wrong word.  As you're in nl, I'm assuming English is a 2nd language (congratulations - I only have 1).  Illegal means against the law.  What you are describing is against company policy. Illegal could get you put in jail.  Company policy could get you fired. 



In a country where something like UltraSurf is illegal, I fully support it's use.  But useing it at work b/c you want to view YouTube, or whatever, I don't support.
Title: Re: Block Ultra Surf
Post by: robb on June 26, 2012, 07:45:09 am
Well, the wording might be a bit strong, but yes I meant it would make the use against company policy. That would make its use within the company illegal/forbidden in the company.

Anyway, I think we both try to say the same. Personally I would make it clear that bypassing company proxy settings and bypassing company security settings would compromise the IT environment of the company.
Sometimes explaining why a certain rule is enforced often creates more understanding and goodwill to stay with company rules. But also explain that violation will have severe consequences. Being clear (and strict) in this is important.

In the meanwhile, google on 'block ultrasurf' and you get a LOT of hits. Some more useful than others, but there are options to block.
Title: Re: Block Ultra Surf
Post by: he-jimenez on June 26, 2012, 05:28:29 pm
Hi zentyal fan lovers  ;D

I made a bash script to block ultrasurf sites. It Works for me:

1. Download the script
2. Put on /root or what ever you want
3. Execute like this: sudo /path_to_file/ultrasurf.sh

And that's it!

I hope help U

From Mexico HEJ
Title: Re: Block Ultra Surf
Post by: robb on June 26, 2012, 05:34:33 pm
Hello he-jimenez,
I see in your script that you block quite a large amount of Class A subnets. Are you sure you do not block too many IP addresses? (block IP addresses that do not belong to ultrasurf)
Title: Re: Block Ultra Surf
Post by: Escorpiom on June 28, 2012, 02:12:23 pm
Please take into account that blocking large ranges of IP addresses with the firewall will cause problems in the current Zentyal 2.2.
We have tried something similar with Facebook and while the blocking was effective, the firewall couldn't handle it and terminates all connections while saving.
Moreover, saving takes considerably longer when blocking IP ranges.

That said, in some situations like transparent proxy the only way to block services like Ultrasurf is to close all https ports and use whitelisting for the services you need.
Another method is deep https packet inspection, but this is not yet implemented in Zentyal.

Cheers.
Title: Re: Block Ultra Surf
Post by: he-jimenez on August 31, 2012, 09:19:06 pm
Hi everybody!!


I know i know about thats have large ips blocks, but it works for me! I got a zentyal as  transparent proxy and i can't block https port 'cause many banks runs over https...

at the moment work very well for me. My zentyal box runs with out problems. And i got the same situation with facebook on https...


Any comments?


Make the force be with You!
Title: Re: Block Ultra Surf
Post by: brunodada on September 10, 2012, 10:31:20 pm
pessoal, usei este método, mais nao resolveu :S
http://www.dotsharp.com.br/linux/como-fazer-para-bloquear-ultrasurf-solucao-definitiva-iptables-fail2ban.html
Title: Re: Block Ultra Surf
Post by: robb on September 10, 2012, 11:09:00 pm
Gracias brunodada,
After translating the blogpost I think it might be THE solution for 'dynamic' IP blocks like seemingly necessary for a 'service' like UltraSurf.

Thank you for mentioning this here. Maybe someone can create something automated or even a (community) module for Zentyal that implements this?
Title: Re: Block Ultra Surf
Post by: Escorpiom on September 11, 2012, 05:50:34 am
brunodada says it did not work for him.
brunodada dice que no le sirvio.

Keep in mind that not Ultrasurf is being blocked, but the user trying to use that service.
In other words, if you have a client on your network say 192.168.1.20 who is trying to use Ultrasurf, he will be denied all network access for x amount of time.
That said, after reading on the fail2ban homepage, this kind of blocking is mainly used to block attackers from the outside, not so much from the local network.

This method MAY be used to deny access to Facebook, Ultrasurf, Windows Live and other services, but it's like punishing users for their bad habits.

Cheers.
Title: Re: Block Ultra Surf
Post by: christian on September 11, 2012, 07:57:55 am
Adding mine on top of Escorpiom's comments:
- what is blocked here is not "user" (notice what, not who  ;)), meaning if user can change his IP address, then he will get access again and not be really "punished" (assuming this is the goal  ::)). However access to UltraSurf is denied  :)
- why all this quite complex solution while moving from transparent to explicit proxy should do the trick (well I need to read a bit more about UltraSurf in order to be 100% sure of what I state here  :-\)
Title: Re: Block Ultra Surf
Post by: robb on September 11, 2012, 08:58:13 am
If it would be sufficient to use explicit proxy, then I would be very interested in the set of rules necessary to get the result of actually blocking a service like UltraSurf. (Or any similar service)
Title: Re: Block Ultra Surf
Post by: christian on September 11, 2012, 09:35:24 am
Explicit proxy is not enough to block Ultrasurf but it permits to:
- deny access to "plain text URL" using HTTPS (which is not feasible using transparent proxy)
- implement in parallel Squid ACL preventing to reach IP based URLs

As far as I understand, if you implement only IP based ACL, bypass using plain text HTTPS URL will still be feasible isn't it?
Or I might be wrong too  :-[