ziceti-mi , sunt eu tampit sau ceva nu e in regula

am 2 ip publice si vreau sa fac un tunel intre ele
ip_dinspre si ip_catre

folosesc scriptul asta:

#----------------

ifconfig tun_oted down


NUME_TUNEL="tun_1"

IP_REMOTE="ip_catre"
IP_HOST_LOCAL="ip_dinspre"

IP_LOCAL="192.168.197.1"
SUBNET_REMOTE="192.168.3.0/24"

modprobe ip_gre

ip tunnel add $NUME_TUNEL mode gre remote $IP_REMOTE
local $IP_HOST_LOCAL ttl 255
ip addr add $IP_LOCAL dev $NUME_TUNEL
ip link set $NUME_TUNEL up
ip route add $SUBNET_REMOTE dev $NUME_TUNEL

#----------------------

bun, asha este si la un capat si la celalalt,
bineinteles ca schimb intre ele ip_catre,ip_dinspre
dau alta adresa la ip local si subnet_remote
corespondenta

cu route -n imi vede

Kernel IP routing table
Destination     Gateway         Genmask         Flags
Metric Ref    Use Iface
213.164.248.224 *               255.255.255.240 U    
0      0        0 eth1
192.168.3.0     *               255.255.255.0   U    
0      0        0 eth0
192.168.1.0     *               255.255.255.0   U    
0      0        0 tun_home
default         bla_bla 0.0.0.0         UG    0      0
       0 eth1



poate gresesc ceva luminati-ma 


=====
Respect, Dan

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui