All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Toshihiro Sonoda" <toshihiro@jp.fujitsu.com>
To: <netfilter-devel@lists.netfilter.org>
Subject: about ROUTE target
Date: Wed, 18 Sep 2002 00:24:10 +0900	[thread overview]
Message-ID: <002f01c25e5e$46745100$ecf8a8c0@monday> (raw)


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

             reply	other threads:[~2002-09-17 15:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-17 15:24 Toshihiro Sonoda [this message]
2002-09-18 10:57 ` about ROUTE target 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002f01c25e5e$46745100$ecf8a8c0@monday' \
    --to=toshihiro@jp.fujitsu.com \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.