From: "Sathi" <sathiyan@gmx.net>
To: netfilter@lists.netfilter.org
Subject: Destination NAT
Date: Fri, 14 Mar 2003 16:31:44 +0530 [thread overview]
Message-ID: <045501c2ea19$1dfc4830$870110ac@samsi> (raw)
[-- Attachment #1: Type: text/plain, Size: 770 bytes --]
Hello All,
I am running squid as reverse proxy and its working fine.
Now i need to set iptables rules to forward ftp ports directly to backend server for file upload.
I set in prerouting rule as
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 20 -d 172.16.1.10 -j DNAT --to 172.16.1.25
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 21 -d 172.16.1.10 -j DNAT --to 172.16.1.25
Note: Reverse proxy and backend servers are running in same network.and by reverse proxy has only one network interface.
but i was not able to connect to backend server.
In tcpdump i can see a request from client to squid server but it is not forwarding to backend server.
What is the correct rule to forward the ftp ports to backend server.
Regards,
Sathi
[-- Attachment #2: Type: text/html, Size: 1566 bytes --]
next reply other threads:[~2003-03-14 11:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-14 11:01 Sathi [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-01-28 14:21 Destination NAT Alejandro Zaidel
2004-01-29 9:13 ` Antony Stone
2004-01-29 9:47 ` Ray Leach
2004-01-29 9:46 ` Antony Stone
2004-01-28 20:45 Ale Zeta
2004-05-28 13:46 Destination Nat black
2004-05-28 14:18 ` John A. Sullivan III
2004-05-28 14:18 black
2004-05-29 1:56 ` John A. Sullivan III
2004-06-02 3:38 ` John Black
2004-06-02 11:19 ` John A. Sullivan III
2004-06-02 11:53 ` John Black
2004-06-02 15:13 ` Alistair Tonner
2004-06-02 15:20 Piszcz, Justin Michael
2004-06-04 15:45 black
2004-06-04 16:14 ` John A. Sullivan III
2004-06-04 16:14 black
2004-06-04 16:44 ` John A. Sullivan III
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='045501c2ea19$1dfc4830$870110ac@samsi' \
--to=sathiyan@gmx.net \
--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