Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "WT" <wtang@pku.edu>
To: netfilter@lists.netfilter.org
Subject: UDP and IPIP forwarding
Date: Thu, 5 Dec 2002 20:55:29 +0800	[thread overview]
Message-ID: <003601c29c5d$aa821aa0$1a00a8c0@lncwei> (raw)

[-- Attachment #1: Type: text/plain, Size: 1976 bytes --]

Hi guys,

I am trying to set up 2 IPtables based Firewall/NAT with UDP and IPIP forwarding function as listed below:

1) Forward UDP (port 434) package to an internal host;
2) Forward IPIP package to a host in the same subnet as the Firewall's, where the outer IP head of the IPIP package has a destination to a special IP address. 

Here is an illustration of the scenario:

   package from 192.168.0.1
                 to 192.168.0.10 (UDP 434)
                        | 
                        v
--------------192.168.0.10----------------- 
               10.3.10.10
                        | forward to 10.3.10.201
                        v
--------------10.3.10.201---------------------------------------- 10.3.10.13----------------
                                    to 172.3.10.5 (IPIP)        172.3.10.13
                                    from 10.3.10.201                  |
                                                                              | forward to 172.3.10.5
                                                                              v
                                                                        172.3.10.5 (get IPIP package and reply to 192.168.0.1)
                                                                                     

The IPIP reply from 172.3.10.5 to 192.168.0.1 needs to be forwarded by 10.3.10.13 to 10.3.10.201.

I used IPtable and Linux 8 on 192.168.0.10 and 10.3.10.13 and encountered both problems:
1) Only one UDP package (the 1st one?) is forwarded to 10.3.10.201, others are dropped. And once a while (every 12 minutes), there is one package forwarded. That's it.
2) I can Ping the 10.3.10.201 in the Firewall's subnet, but IPIP package is not forwarded at all. They are still sent to 192.168.0.1 and dropped...

Can any expert give me some idea what may be wrong? I followed the instruction of the IPtables. But it just doesn't work well. Please help.

Thanks!

Wey

[-- Attachment #2: Type: text/html, Size: 6481 bytes --]

                 reply	other threads:[~2002-12-05 12:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='003601c29c5d$aa821aa0$1a00a8c0@lncwei' \
    --to=wtang@pku.edu \
    --cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox