All of lore.kernel.org
 help / color / mirror / Atom feed
* about ROUTE target
@ 2002-09-17 15:24 Toshihiro Sonoda
  2002-09-18 10:57 ` Cédric de Launois
  0 siblings, 1 reply; 5+ messages in thread
From: Toshihiro Sonoda @ 2002-09-17 15:24 UTC (permalink / raw)
  To: netfilter-devel


Hi, 

I want to re-route the packet to tunneling device in spite of the
packet's destination address. I know the ipt_ROUTE target, so
I set up the iptables and tunneling device in the following environment.


[ local pc]- LAN ->[  router ] <- WAN -> [ target pc ]   

LAN's network is 192.168.7.0/24.
WAN's network is 192.168.1.0/24.

LAN side IP address of the router is  192.168.7.1.
WAN side IP address of the router is 192.168.1.2.
target pc IP address is 192.168.1.3.

router is 2.4.18 kernel and I did p-o-m for ipt_ROUTE to the router.

I set the following command on the router.

# modprobe ip_gre
# iptunnel add tundev mode gre remote 192.168.1.3
# ifoconfig tundev 192.168.1.2
#
# modprobe ipt_ROUTE
# iptables -t nat -A PREROUTING -p icmp -j ROUTE --iface tundev

and I executed  "ping" to anather pc(ex, 192.168.1.10) on the local pc.

# ping 192.168.1.10

then, router(linux) was freezed.
 
I confirmed that ipt_route_target(), which is in "ipt_ROUTE.c", hook function 
in the ROUTE target was called in the router's linux kernel,
and ipgre_tunnel_xmit() in gre's tunneling device(ip_gre.c) was called.

But, the at the IPTUNNLE_XMIT() called in the ipgre_tunnel_xmit(), linux 
was freezed.

Do I mistake how to use the ROUTE target ?

thanks for your advice.

-
T.Sono

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-09-19 14:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-17 15:24 about ROUTE target Toshihiro Sonoda
2002-09-18 10:57 ` Cédric de Launois
2002-09-18 16:12   ` Toshihiro Sonoda
2002-09-19 12:43     ` Cédric de Launois
2002-09-19 14:35       ` Toshihiro Sonoda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.