From: "Oliver Schulze L." <oliver@samera.com.py>
To: netfilter@lists.netfilter.org
Subject: Multiple port-fwd on same port based on src IP
Date: Wed, 20 Sep 2006 14:38:49 -0400 [thread overview]
Message-ID: <45118AB9.8080104@samera.com.py> (raw)
Hi,
I wonder if I can use multiple port forwarding rules to the same IP/Port
based
on the src IP and forwarding to different internal IPs
It should be something like this:
iptables -t nat -A PREROUTING -p tcp -s CLIENT1_IP -d INET_IP --dport
1234 -j DNAT --to 192.168.1.1:1234
iptables -t nat -A PREROUTING -p tcp -s CLIENT2_IP -d INET_IP --dport
1234 -j DNAT --to 192.168.1.2:1234
iptables -t nat -A PREROUTING -p tcp -s CLIENT3_IP -d INET_IP --dport
1234 -j DNAT --to 192.168.1.3:1234
...
Will it work? Or should I configure some sort of tcp proxy.?
Thanks
Oliver
--
Oliver Schulze L.
Get my e-mail after a captcha test in: http://tinymailto.com/oliver
next reply other threads:[~2006-09-20 18:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-20 18:38 Oliver Schulze L. [this message]
2006-09-20 18:59 ` Multiple port-fwd on same port based on src IP Rob Sterenborg
2006-09-20 19:18 ` Oliver Schulze L.
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=45118AB9.8080104@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