Не создается VPN подключение (застывает на стадии проверки логина и пароля ) из WIN
в чем ошибка
__________________________________________________ __________
#!/bin/sh
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -P OUTPUT ACCEPT
iptables -t mangle -P PREROUTING ACCEPT
iptables -t mangle -P OUTPUT ACCEPT
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X
iptables -t nat -X
iptables -t mangle -X
INET_IFACE="eth1"
INET_IP=""
INET_BROADCAST=""
LAN_IFACE="eth0"
LAN_IP="10.1.1.2"
LAN_IP_RANGE="10.1.0.0/16"
LAN_PPP_FACE="ppp+"
LAN_PPP="192.168.1.1";
LAN_PPP_RANGE="192.168.1.0/24"
LO_IFACE="lo"
LO_IP="127.0.0.1"
/sbin/depmod -a
/sbin/modprobe ip_tables
/sbin/modprobe ip_conntrack
/sbin/modprobe iptable_filter
/sbin/modprobe iptable_mangle
/sbin/modprobe iptable_nat
/sbin/modprobe ipt_LOG
/sbin/modprobe ipt_limit
/sbin/modprobe ipt_state
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -N bad_tcp_packets
iptables -N allowed
iptables -N tcp_packets
iptables -N udp_packets
iptables -N icmp_packets
iptables -N vpn
#iptables -N local
iptables -A bad_tcp_packets -p tcp --tcp-flags SYN,ACK SYN,ACK \-m state --state NEW -j REJECT --reject-with tcp-reset
iptables -A bad_tcp_packets -p tcp ! --syn -m state --state NEW -j DROP
iptables -A allowed -p TCP --syn -j ACCEPT
iptables -A allowed -p TCP -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A allowed -p TCP -j DROP
iptables -A tcp_packets -p TCP -s 0/0 --dport 21 -j allowed
iptables -A tcp_packets -p TCP -s 0/0 --dport 22 -j allowed
iptables -A tcp_packets -p TCP -s 0/0 --dport 25 -j allowed
iptables -A tcp_packets -p TCP -s 0/0 --dport 47 -j allowed
iptables -A tcp_packets -p TCP -s 0/0 --dport 80 -j allowed
iptables -A tcp_packets -p TCP -s 0/0 --dport 110 -j allowed
iptables -A tcp_packets -p TCP -s 0/0 --dport 113 -j allowed
iptables -A tcp_packets -p TCP -s 0/0 --dport 465 -j allowed
iptables -A tcp_packets -p TCP -s 0/0 --dport 995 -j allowed
iptables -A tcp_packets -p TCP -s 0/0 --dport 1723 -j allowed
iptables -A tcp_packets -p TCP -s 0/0 --dport 3128 -j allowed
#для SMB
iptables -A tcp_packets -p TCP -s 0/0 --dport 139 -j allowed
iptables -A tcp_packets -p TCP -s 0/0 --dport 445 -j allowed
#-для SMB
iptables -A udp_packets -p UDP -s 0/0 --source-port 53 -j ACCEPT
iptables -A udp_packets -p UDP -s 0/0 --source-port 4000 -j ACCEPT
iptables -A udp_packets -p UDP -s 0/0 --source-port 1701 -j ACCEPT
#для SMB
iptables -A udp_packets -p UDP -s 0/0 --source-port 137 -j ACCEPT
iptables -A udp_packets -p UDP -s 0/0 --source-port 138 -j ACCEPT
#-для SMB
iptables -A icmp_packets -p ICMP -s 0/0 --icmp-type 3 -j ACCEPT
iptables -A icmp_packets -p ICMP -s 0/0 --icmp-type 8 -j ACCEPT
iptables -A icmp_packets -p ICMP -s 0/0 --icmp-type 11 -j ACCEPT
iptables -A vpn -p ALL -s $LAN_PPP_RANGE -d 0/0 -j ACCEPT
iptables -A INPUT -p tcp -j bad_tcp_packets
iptables -A INPUT -p ALL -i $LO_IFACE -s $LO_IP -j ACCEPT
iptables -A INPUT -p ALL -i $LO_IFACE -s $LAN_IP -j ACCEPT
iptables -A INPUT -p ALL -i $LO_IFACE -s $LAN_PPP -j ACCEPT
iptables -A INPUT -p ALL -i $LO_IFACE -s $INET_IP -j ACCEPT
iptables -A INPUT -p ALL -i $LO_IFACE -s $LAN_IP_RANGE -j ACCEPT
iptables -A INPUT -p ALL -i $LO_IFACE -s $LAN_PPP_RANGE -j ACCEPT
iptables -A INPUT -p ALL -d $INET_IP -m state --state ESTABLISHED,RELATED \-j ACCEPT
iptables -A INPUT -p ALL -i $LAN_PPP_FACE -j vpn
iptables -A INPUT -p TCP -j tcp_packets
iptables -A INPUT -p UDP -j udp_packets
iptables -A INPUT -p ICMP -j icmp_packets
#iptables -A FORWARD -p tcp -j bad_tcp_packets
#iptables -A FORWARD -p tcp --dport 21 -i $LAN_IFACE -j ACCEPT
#iptables -A FORWARD -p tcp --dport 80 -i $LAN_IFACE -j ACCEPT
#iptables -A FORWARD -p tcp --dport 110 -i $LAN_IFACE -j ACCEPT
#iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
#iptables -A OUTPUT -p tcp -j bad_tcp_packets
#iptables -A OUTPUT -p ALL -s $LO_IP -j ACCEPT
#iptables -A OUTPUT -p ALL -s $LAN_IP -j ACCEPT
#iptables -A OUTPUT -p ALL -s $INET_IP -j ACCEPT
#iptables -t nat -A POSTROUTING -o $INET_IFACE -j SNAT --to-source $INET_IP
iptables -t nat -A POSTROUTING -s $LAN_PPP_RANGE -j MASQUERADE
[Ответ]