Subversion Repositories ALCASAR

Rev

Rev 2262 | Rev 2355 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2262 Rev 2353
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-iptables-bypass.sh 2262 2017-05-29 20:19:03Z tom.houdayer $
2
# $Id: alcasar-iptables-bypass.sh 2353 2017-07-25 21:39:16Z tom.houdayer $
3
 
3
 
4
# alcasar-iptables-bypass.sh
4
# alcasar-iptables-bypass.sh
5
# by Rexy - 3abtux
5
# by Rexy - 3abtux
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 60... Line 60...
60
	do
60
	do
61
		ip_on=`echo $ip_line|cut -b1`
61
		ip_on=`echo $ip_line|cut -b1`
62
		if [ $ip_on != "#" ]
62
		if [ $ip_on != "#" ]
63
		then	
63
		then	
64
			ip_blocked=`echo $ip_line|cut -d" " -f1`
64
			ip_blocked=`echo $ip_line|cut -d" " -f1`
65
			$IPTABLES -A FORWARD -d $ip_blocked -j ULOG --ulog-prefix "RULE IP-blocked -- REJECT "
65
			$IPTABLES -A FORWARD -d $ip_blocked -j NFLOG --nflog-prefix "RULE IP-blocked -- REJECT "
66
			$IPTABLES -A FORWARD -d $ip_blocked -j REJECT
66
			$IPTABLES -A FORWARD -d $ip_blocked -j REJECT
67
		fi
67
		fi
68
	done < /usr/local/etc/alcasar-ip-blocked
68
	done < /usr/local/etc/alcasar-ip-blocked
69
fi
69
fi
70
 
70