|
lug-bg: gre tunnel problem
- Subject: lug-bg: gre tunnel problem
- From: izarov@xxxxxxx (Ilian Zarov)
- Date: Tue, 19 Nov 2002 20:54:11 +0200 (EET)
Zdravejte,
imam edin mnogo stranen problem s gre tunnel.
Celta e da se podkara gre tunnel m/u dve linux mashini (2.4 kernel).
S tcpdump gledam paketite i na dvete mashini i na pryv pogled
vsichko ok - ednata mashina si prashta request, drugata si otgovarq.
No samoto prilojenie kato che li ne poluchava tezi paketi. Naprimer ping:
13:27:47.973700 192.168.250.59 > 192.168.250.60: 192.168.150.59 >
192.168.250.60: icmp: echo request (DF) (gre encap)
13:27:47.974309 192.168.250.60 > 192.168.250.59: 192.168.250.60 >
192.168.150.59: icmp: echo reply (gre encap)
.250.xx sa realnite ip-ta na mashinite (v smisyl ip-tata na mrejovite
karti). .150.xx sa ip-tata na tunnel-ite.
Iptunnel-a go puskam po sledniq nachin:
na mashina .xxx.60:
iptunnel add tunnel0 mode gre remote 192.168.250.59 local 192.168.250.60
dev eth2 ttl 64
ifconfig tunnel0 192.168.150.60 netmask 255.255.255.255 dstaddr 192.168.150.59
route add -host 192.168.250.59 dev tunnel0
iptables -I FORWARD -p udp
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS
--clamp-mss-to-pmtu
na mashina .xxx.59:
iptunnel add tunnel0 mode gre remote 192.168.250.60 local 192.168.250.59
dev eth0 ttl 64
ifconfig tunnel0 192.168.150.59 netmask 255.255.255.255 dstaddr 192.168.150.60
route add -net 192.168.250.0/24 dev tunnel0
iptables -I FORWARD -p udp
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS
--clamp-mss-to-pmtu
Blagodarq.
Pozdravi,
Ilian Zarov
____________________________________________________
Êàêâî å ðåêëàìà â Èíòåðíåò? - http://reklama.mail.bg
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|