* Forwarding traffic from local lan to another host?
@ 2004-11-29 19:09 Reginald NALLARATNAM
2004-11-29 19:56 ` Jason Opperisano
0 siblings, 1 reply; 2+ messages in thread
From: Reginald NALLARATNAM @ 2004-11-29 19:09 UTC (permalink / raw)
To: netfilter
Hello,
Is there a way to forward any traffic from local LAN going to an ftp site to another ftp site.
Example:
If the client ftp's to host 216.24.35.53 from the local LAN, is there a way to send that traffic to a different ftp server say 216.24.36.55?
(Sort of port forwarding outwords?)
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Forwarding traffic from local lan to another host?
2004-11-29 19:09 Forwarding traffic from local lan to another host? Reginald NALLARATNAM
@ 2004-11-29 19:56 ` Jason Opperisano
0 siblings, 0 replies; 2+ messages in thread
From: Jason Opperisano @ 2004-11-29 19:56 UTC (permalink / raw)
To: netfilter
On Mon, 2004-11-29 at 14:09, Reginald NALLARATNAM wrote:
> Hello,
> Is there a way to forward any traffic from local LAN going to an ftp site to another ftp site.
> Example:
> If the client ftp's to host 216.24.35.53 from the local LAN, is there a way to send that traffic to a different ftp server say 216.24.36.55?
> (Sort of port forwarding outwords?)
>
> Thanks.
iptables -t nat -A PREROUTING -i $INSIDE_IF -p tcp -d 216.24.35.53 \
--dport 21 -j DNAT --to-destination 216.24.36.55
iptables -t nat -A PREROUTING -i $INSIDE_IF -m helper --helper ftp \
-d 216.24.35.53 -j DNAT --to-destination 216.24.36.55
iptables -A FORWARD -m state --state ESTABLISHED, RELATED -j ACCEPT
iptables -A FORWARD -i $INSIDE_IF -p tcp --syn -d 216.24.36.55 \
--dport 21 -j ACCEPT
can't say i've actually tested this--but that would be the theory...
-j
--
"Ah, good ol' trustworthy beer. My love for you will never die."
--The Simpsons
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-29 19:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-29 19:09 Forwarding traffic from local lan to another host? Reginald NALLARATNAM
2004-11-29 19:56 ` Jason Opperisano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox