2008/4/25 Adrian Chapela <[EMAIL PROTECTED]>:
> Hello!
>
> I am trying to do some tests with tunneling, but I can see the GRE packets
> incoming, but in a wrong interface...
>
> My config:
>
> ip tunnel add tunnel0 mode gre remote REMOTE_INET_ADDRESS local
> LOCAL_INET_ADRESS ttl 255
I solved my problem!! I am doing a bad config here, the LOCAL_INET_ADDRESS
must be my LAN address because the linux box is behind a router. This was my
problem, the translation is made by router. When I redirected all gre
traffic to my linux box, I forgot this redirection is a NAT translation.
Obviously a internet router can´t routing to a private lan, only do a
internet -> LAN translation...
I am so stupid ?? JEJE In the basic was the answer and you opened my eyes
saying "re read".
Thank you!
>
> ip link set tunnel0 up
> ip addr add 172.16.1.1 peer 172.16.1.2 dev tunnel0
> ip route add 172.16.1.0/24 dev tunnel0
>
> This config is made in one side of tunnel, in a linux box. This linux box
> is behind a router. This router is forwarding all gre traffic to a ethernet
> interface of the router. Here is the ifconfig:
>
> eth0 Link encap:Ethernet HWaddr 00:80:5A:61:5B:11
> inet addr:192.168.21.39 Bcast:192.168.21.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:53857 errors:0 dropped:0 overruns:0 frame:0
> TX packets:56295 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:47236709 (45.0 MiB) TX bytes:8009011 (7.6 MiB)
> Interrupt:16 Base address:0xa000
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:2745 errors:0 dropped:0 overruns:0 frame:0
> TX packets:2745 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:269767 (263.4 KiB) TX bytes:269767 (263.4 KiB)
>
> tunnel0 Link encap:UNSPEC HWaddr
> 58-02-C3-75-00-00-00-00-00-00-00-00-00-00-00-00
> inet addr:172.16.1.1 P-t-P:172.16.1.2 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MTU:1476 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:1297 dropped:0 overruns:0 carrier:1297
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
>
> I can see the GRE packets on eth0, but I can't see on tunnel0 how can I do
> to redirect gre packets to tunnel0 ??
>
> Thank you!
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users