Encerrado

Iptables Block Country Script.

I Have this script which I wanted to run every day and on boot time in my Centos OS, every time I run this it gave me read byte error, I need to use GEOIP IP database you can point me if I can buy the ip updated database I need to block certain country so I need to have this script work and pull the list of ip's listed in .txt file the script are as follows #!/bin/bash ###PUT HERE COMA SEPARATED LIST OF COUNTRY CODE### COUNTRIES="AK,AR" WORKDIR="/root" ####################################### cd $WORKDIR wget -c --output-document=[url removed, login to view] [url removed, login to view]$COUNTRIES if [ -f [url removed, login to view] ]; then iptables -F BLOCKDB="[url removed, login to view]" IPS=$(grep -Ev "^#" $BLOCKDB) for i in $IPS do iptables -A INPUT -s $i -j DROP iptables -A OUTPUT -d $i -j DROP done fi rm $WORKDIR/[url removed, login to view]

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables):

a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

NIX

Habilidades: Vale Tudo, Linux

Ver mais: hire the script, d.j. for hire, bash file, coder in other countries, Rm, party block, my ar, linux bash script, iptables, geoip, ev, country, block, bash script, ak, byte time, install software script error, centos gpl, database error linux server, ips wanted, country php drop list, linux need root, list country drop list, list country, root install linux

Acerca do Empregador:
( 41 comentários ) Pittsford, United States

ID do Projeto: #3024827

4 freelancers estão ofertando em média $8 para este trabalho

arpadf

See private message.

$8.5 USD in 2 dias
(11 Comentários)
3.5
kanhashriinc

See private message.

$8.5 USD in 2 dias
(3 Comentários)
1.8
mvpazevedo

See private message.

$6.38 USD in 2 dias
(2 Comentários)
1.1
alisevw

See private message.

$8.5 USD in 2 dias
(0 Comentários)
0.0