Archives for: luglio 2011

NETGEAR ReadyNAS, ip aggiuntivi con interfacce in bond

1) installare il plug-in http://www.readynas.com/?p=4203

2) accedere via ssh come root

3) modificare

vi /etc/network/interfaces

=============================== esempio =================
# This file is auto-generated. Do not modify!
auto lo
iface lo inet loopback

auto bond0
iface bond0 inet static
address 10.3.6.4
netmask 255.255.0.0
gateway 10.3.0.1

auto bond0:1
iface bond0:1 inet static
address 172.30.8.2
netmask 255.255.0.0
gateway 10.3.0.1

auto eth0
iface eth0 inet static
address 10.3.6.4
netmask 255.255.0.0
gateway 10.3.0.1

auto eth1
iface eth1 inet static
address 10.3.6.5
netmask 255.255.0.0
gateway 10.3.0.1

============================================================

4) riavviare il network
/etc/init.d/networking restart

5) bloccare il file in sola lettura
chattr +i /etc/network/interfaces

6) editare il file
/etc/rc2.d/S01readynas_startup
aggiungendo come ultima riga
/etc/init.d/networking restart

NB con questa modifica non sarà più possibile modificare le impostazione di rete da interfaccia web
ma bisogna accedere via ssh e dare
chattr -i /etc/network/interfaces
poi sarà di nuovo modificabile

share save 120 16 NETGEAR ReadyNAS, ip aggiuntivi con interfacce in bond

How to find open proxy

I wrote a simple shell script to find a open proxy, basicaly it analize the log of webserver , extract the source ip client and try if on this ip have a proxy( only some standard port 80,8080,3128).This script don’t have “memory” if in log find more than one istance of ip, retry the check every time.
Only the ip who running an open proxy is strored in a file call “result.log”, to run this script yun need only curl.
Read more… »

share save 120 16 How to find open proxy