linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ip_nat_ftp and different ports
@ 2000-12-03 19:08 Taco IJsselmuiden
  2000-12-03 22:01 ` Martin Josefsson
  0 siblings, 1 reply; 6+ messages in thread
From: Taco IJsselmuiden @ 2000-12-03 19:08 UTC (permalink / raw)
  To: linux-kernel

Hi,

I'm having trouble masquerading ftp-ports other than 20/21.
For some service i'm using, i need to masquerade port 42,43,62,63 for FTP
(I know it's weird...).
Now, when using 2.2.x kernels i could use
'insmod ip_masq_ftp ports=21,41,42,62,63'
but using 2.4.0-testx the 'ports=' parameter doesn't seem to work for
ip_nat_ftp.
Is there any other param I should use (couldn't find it in the docs ;(( )

Please cc me because i'm not on the list (only reading the
web-archives....)

Thanks,
Taco.
---
"I was only 75 years old when I met her and I was still a kid...."
          -- Duncan McLeod

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ip_nat_ftp and different ports
  2000-12-03 19:08 ip_nat_ftp and different ports Taco IJsselmuiden
@ 2000-12-03 22:01 ` Martin Josefsson
  2000-12-04  0:34   ` Taco IJsselmuiden
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Josefsson @ 2000-12-03 22:01 UTC (permalink / raw)
  To: Taco IJsselmuiden; +Cc: linux-kernel

On Sun, 3 Dec 2000, Taco IJsselmuiden wrote:

> Hi,
> 
> I'm having trouble masquerading ftp-ports other than 20/21.
> For some service i'm using, i need to masquerade port 42,43,62,63 for FTP
> (I know it's weird...).
> Now, when using 2.2.x kernels i could use
> 'insmod ip_masq_ftp ports=21,41,42,62,63'
> but using 2.4.0-testx the 'ports=' parameter doesn't seem to work for
> ip_nat_ftp.
> Is there any other param I should use (couldn't find it in the docs ;(( )

There is a ftp-multi patch that you can apply to get this working

download iptables-1.2 and run 'make patch-o-matic' and apply the ftp-multi
patch and recompile the ftp module... you're done.

/Martin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ip_nat_ftp and different ports
  2000-12-03 22:01 ` Martin Josefsson
@ 2000-12-04  0:34   ` Taco IJsselmuiden
  2000-12-04  2:00     ` Martin Josefsson
  0 siblings, 1 reply; 6+ messages in thread
From: Taco IJsselmuiden @ 2000-12-04  0:34 UTC (permalink / raw)
  To: Martin Josefsson; +Cc: linux-kernel

On Sun, 3 Dec 2000, Martin Josefsson wrote:

> On Sun, 3 Dec 2000, Taco IJsselmuiden wrote:
> 
> > Hi,
> > 
> > I'm having trouble masquerading ftp-ports other than 20/21.
> > For some service i'm using, i need to masquerade port 42,43,62,63 for FTP
> > (I know it's weird...).
> > Now, when using 2.2.x kernels i could use
> > 'insmod ip_masq_ftp ports=21,41,42,62,63'
> > but using 2.4.0-testx the 'ports=' parameter doesn't seem to work for
> > ip_nat_ftp.
> > Is there any other param I should use (couldn't find it in the docs ;(( )
> 
> There is a ftp-multi patch that you can apply to get this working
> 
> download iptables-1.2 and run 'make patch-o-matic' and apply the ftp-multi
> patch and recompile the ftp module... you're done.
hmm... iptables-1.2 ?
I can only find iptables-1.1.2 (netfilter.filewatcher.org,
netfilter.kernelnotes.org)...
Where could I find 1.2 then ??

I'm running 1.1.2 right now, actually, which should have the 'ftp-multi
patch for non-standard ftp servers'...

Greetz,
Taco.
---
"I was only 75 years old when I met her and I was still a kid...."
          -- Duncan McLeod

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ip_nat_ftp and different ports
  2000-12-04  0:34   ` Taco IJsselmuiden
@ 2000-12-04  2:00     ` Martin Josefsson
  2000-12-05 14:32       ` Taco IJsselmuiden
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Josefsson @ 2000-12-04  2:00 UTC (permalink / raw)
  To: Taco IJsselmuiden; +Cc: linux-kernel

On Mon, 4 Dec 2000, Taco IJsselmuiden wrote:

> On Sun, 3 Dec 2000, Martin Josefsson wrote:
> 
> > On Sun, 3 Dec 2000, Taco IJsselmuiden wrote:
> > 
> > > Hi,
> > > 
> > > I'm having trouble masquerading ftp-ports other than 20/21.
> > > For some service i'm using, i need to masquerade port 42,43,62,63 for FTP
> > > (I know it's weird...).
> > > Now, when using 2.2.x kernels i could use
> > > 'insmod ip_masq_ftp ports=21,41,42,62,63'
> > > but using 2.4.0-testx the 'ports=' parameter doesn't seem to work for
> > > ip_nat_ftp.
> > > Is there any other param I should use (couldn't find it in the docs ;(( )
> > 
> > There is a ftp-multi patch that you can apply to get this working
> > 
> > download iptables-1.2 and run 'make patch-o-matic' and apply the ftp-multi
> > patch and recompile the ftp module... you're done.
> hmm... iptables-1.2 ?
> I can only find iptables-1.1.2 (netfilter.filewatcher.org,
> netfilter.kernelnotes.org)...
> Where could I find 1.2 then ??

Ouch, I was typing a little too fast there... it should be 1.1.2

> I'm running 1.1.2 right now, actually, which should have the 'ftp-multi
> patch for non-standard ftp servers'...

Well have you applied the ftp-multi patch? (this is a patch so that the
ftp-module takes a ports parameter, the thing you probably are talking
about is a bug which I and several others found in the ftp-module, these
two things have nothing with each other to do.) 

/Martin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ip_nat_ftp and different ports
  2000-12-04  2:00     ` Martin Josefsson
@ 2000-12-05 14:32       ` Taco IJsselmuiden
  2000-12-05 23:54         ` ip_nat_ftp and different ports (Solved) Taco IJsselmuiden
  0 siblings, 1 reply; 6+ messages in thread
From: Taco IJsselmuiden @ 2000-12-05 14:32 UTC (permalink / raw)
  To: Martin Josefsson; +Cc: linux-kernel


> > I'm running 1.1.2 right now, actually, which should have the 'ftp-multi
> > patch for non-standard ftp servers'...
> 
> Well have you applied the ftp-multi patch? (this is a patch so that the
> ftp-module takes a ports parameter, the thing you probably are talking
> about is a bug which I and several others found in the ftp-module, these
> two things have nothing with each other to do.) 

Well, after having no time for a coule of days, back to business ;))
I've downloaded + applied the ftp-multi patch and recompiled the modules.
then loaded them with ports=21,41,42,62,63, which works (well, no
errors/warnings...).
Then trying the application for which i needed it: doesn't work ;((

Are there maybe some major/crucial differences between the 2.2.x version
(which works) of ip_masq_ftp and the 2.4.x version of ip_nat_ftp ??

Cheers,
Taco.
---
"I was only 75 years old when I met her and I was still a kid...."
          -- Duncan McLeod

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ip_nat_ftp and different ports (Solved)
  2000-12-05 14:32       ` Taco IJsselmuiden
@ 2000-12-05 23:54         ` Taco IJsselmuiden
  0 siblings, 0 replies; 6+ messages in thread
From: Taco IJsselmuiden @ 2000-12-05 23:54 UTC (permalink / raw)
  To: Martin Josefsson; +Cc: linux-kernel

> Well, after having no time for a coule of days, back to business ;))
> I've downloaded + applied the ftp-multi patch and recompiled the modules.
> then loaded them with ports=21,41,42,62,63, which works (well, no
> errors/warnings...).
> Then trying the application for which i needed it: doesn't work ;((
> 
> Are there maybe some major/crucial differences between the 2.2.x version
> (which works) of ip_masq_ftp and the 2.4.x version of ip_nat_ftp ??
OK, stupid me forgot to use 'modprobe ip_conntrack_ftp ports=41,42,62,63'
in addition to ip_nat_ftp module ...

Everything works perfectly now, and I can keep running 2.4 ;))

Cheers,
Taco.
---
"I was only 75 years old when I met her and I was still a kid...."
          -- Duncan McLeod

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-12-06  0:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-03 19:08 ip_nat_ftp and different ports Taco IJsselmuiden
2000-12-03 22:01 ` Martin Josefsson
2000-12-04  0:34   ` Taco IJsselmuiden
2000-12-04  2:00     ` Martin Josefsson
2000-12-05 14:32       ` Taco IJsselmuiden
2000-12-05 23:54         ` ip_nat_ftp and different ports (Solved) Taco IJsselmuiden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).