From: Efraim <efraimg@gmail.com>
To: netfilter@lists.netfilter.org
Subject: port mapping ANY:95 to originalIP:80
Date: Sat, 30 Apr 2005 18:52:19 +0200 [thread overview]
Message-ID: <77d61640504300952e19c4c2@mail.gmail.com> (raw)
Hi,
I'm using my linux box as a router and I have an application that is
make all the request in port 95.
I need to make an iptables rule that will change the original port of
any destination ip addres to 80.
I know how to do it for a specific destination ip but I could not find
the way to do it for any destination ip.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 95 -j DNAT --to
66.249.87.99:80
66.249.87.99 is the Google ip, but I need the rule to work for any ip.
Something like:
iptables -t nat -A PREROUTING -i eth0 -p tcp -d ANY --dport 95 -j DNAT
--to ANY:80
I know that it is possible to do with checkpoint firewall but it is a
little expensive...
next reply other threads:[~2005-04-30 16:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-30 16:52 Efraim [this message]
2005-04-30 16:59 ` Port mapping ANY:95 to originalIP:80 Efraim
2005-05-01 22:07 ` port " Taylor, Grant
-- strict thread matches above, loose matches on Subject: below --
2005-05-01 8:31 Port " Sietse van Zanen
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=77d61640504300952e19c4c2@mail.gmail.com \
--to=efraimg@gmail.com \
--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