On Wed, Oct 13, 2010 at 10:27 AM, Dattatray Kamble meet2dsk@gmail.com wrote:
On Tue, Oct 12, 2010 at 11:44 PM, Rony gnulinuxist@gmail.com wrote:
Yes..i have eth1 configuration for public acces And eth0 for private access ..it is true.. I natted& masqueraded eth0 with eth1 connections And did transparent
proxy
configuration on that system. Now here is the condition....
If any request coming towards 118.y.y.y with port XXXX should forwarded
to
192.x.x.x with port XXXX.
I want to assign above rule through iptables. But i don't want to configure the public ip for vsftpd anywhere.
So your vsftpd is running inside the same box as your proxy. Is that right? How do you forward packets from one input interface to the other outgoing interface and try to get them back in from the outgoing interface? Should the output interface be bridged to a virtual interface that is bound to vsftpd? This is a tricky situation.
--
... snip ...
Please quote only relevant matter and remove the crud
I have public ip's range 118.y.y.1 - 118.y.y.5 Squid is running on 118.y.y.1 ( eth1 ) & 192.x.x.1 ( eth0 ) My vsftpd is running on 192.y.y.5 in internal lan. Now i want to use one of my public ip 118.y.y.2, for accessing vsftpd from
Until this post you were saying packets to 118.x.x.x port yyyy to forward to same port on some internal machine.
Great, you are least becoming specific which should have been done in your first post. The whole thread is like a "20 Question" game; information comes out in pieces.
You need to create a port forward rule from 118.y.y.2 to your internal vsftpd server.
-- Arun Khan