Displaying 1 result from an estimated 1 matches for "net_address".
Did you mean:
get_address
2005 Jan 14
0
problem with mark, need help
...IPTABLES="/usr/sbin/iptables"
LOCAL_IP="62.64.80.0/21 62.221.38.0/24 ........................" #
LOCAL_IP network
$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT DROP
$IPTABLES -P FORWARD DROP
.........
# not important rule
........
#for local_network
$IPTABLES -N local_ip
for net_address in $LOCAL_IP; do
$IPTABLES -A local_ip -p all -d $net_address -j ACCEPT
done
$IPTABLES -A local_ip -p all -j REJECT
# Forward rules for all
$IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -i eth1 -j ACCEPT
$IPTABLES -A FORWARD -s 192.168.10.2 -m mac --mac-source 00:11:2F:92:D1:5E...