Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Oliver Schulze L." <oliver@samera.com.py>
To: netfilter@lists.netfilter.org
Subject: Re: Forwarding multiple UDP ports
Date: Fri, 22 Sep 2006 12:35:25 -0400	[thread overview]
Message-ID: <451410CD.6020102@samera.com.py> (raw)
In-Reply-To: <Pine.LNX.4.61.0609221821100.12304@yvahk01.tjqt.qr>

Hi Jan,
sorry about not specifying.

INTRA_SERVER: intranet ip of the server initiation the udp traffic to 
the INTRA_ROUTER IP
INTRA_ROUTER: intranet ip of the router
INET_IP: a random public IP

The traffic flow should be:
INTRA_SERVER -> intranet -> INTRA_ROUTER -> internet -> INET_IP

Explanation:
INTRA_SERVER sends UDP traffic to the INTRA_ROUTER IP, then, INTRA_ROUTER
forwards those packets to the public IP INET_IP

Thanks
Oliver


Jan Engelhardt wrote:
>> My question is: can I forward UDP trafic from and internal server to the
>> Internet?
>> Can I use this line:
>>
>> iptables -t nat -A PREROUTING -p udp -s INTRA_SERVER -d INTRA_ROUTER 
>> --dport 1024:6000 -j DNAT --to-destination INET_IP:1024-6000
>>
>> I'm testing it and I see the rule matched, the byte and packet counters are
>> incrementing.
>> But, I see no traffic going out of the Internet NIC.
>> I'm not sure if the multi-port specification will work.
>>     
>
> Who is INET_IP? Is it the same host as INTRA_ROUTER?
>
>
> Jan Engelhardt
>   

-- 
Oliver Schulze L.
Get my e-mail after a captcha test in: http://tinymailto.com/oliver



  reply	other threads:[~2006-09-22 16:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-22 16:17 Forwarding multiple UDP ports Oliver Schulze L.
2006-09-22 16:22 ` Jan Engelhardt
2006-09-22 16:35   ` Oliver Schulze L. [this message]
2006-09-22 19:06     ` Jan Engelhardt

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=451410CD.6020102@samera.com.py \
    --to=oliver@samera.com.py \
    --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