Thanks Tom i will try your idea it's very cool!

Best regards.

Emiliano

El 11/08/12 16:48, Tom Eastep escribió:
> On 8/10/12 12:48 PM, [email protected] wrote:
>> Hi folks!
>>
>> I need to block ultrasurf and searching over the web found a lot of info 
>> about this but nothing works as espected.
>>
>> I found a partial solution: block IPs using a virtual machine with 
>> virtualbox with this program and cutting the connection.
>> This program search another IP to get conected again and work again.
>>
>> I will create a script and execute this every minute to create a dinamic 
>> list of this.
>>
>> In /etc/params i create a new parameter called PROXYS with IPs separated by 
>> comma and work ok, but i need to recreate this line every time i found a new 
>> IPs of this program.
>>
>> I can use sed to do this and change the line every time, but i didn't have 
>> skill to do this. I now i have to learn about sed!
>>
>> Can i use in /etc/params somethig like:
>>
>> IPPROXY=/home/shorewall/ip_list.proxy ???
>>
>
> filetolist() {
>     local list=$(cat $1)
>     echo $list | sed 's/ /,/g
> }
>
> IPPROXY=$(filetolist /home/shorewall/ip_list.proxy)
>
> -Tom
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _______________________________________________
> Shorewall-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/shorewall-users
>

-- 
Emiliano Vazquez | PcCentro Informatica & CCTV
Office: +54 (11) 4951-0203 Interno 4
Movil: 011-15-6253-7165
Mail: [email protected]
Web: http://www.pccentro.com.ar

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to