Re: ftp and pf (nat)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: John Nietzsche
Date: Monday, May 14, 2007 - 5:47 pm

Ok! I am really having a bad times playing with ftp-proxy!
It is working, but rules inserted are not showed, like in:

root@gw# pfctl -sn -a 'ftp-proxy/*'
root@gw# pfctl -sr -a 'ftp-proxy/*'
root@gw# pfctl -sr -a '*'
scrub out on pppoe0 all max-mss 1452 fragment reassemble
block return log all
anchor "*" all {
pfctl: DIOCGETRULES: Invalid argument
}
anchor "feif" on pppoe0 all {
  pass in log from any to (pppoe0) flags S/SA keep state (if-bound)
  pass out log from (pppoe0) to any flags S/SA keep state (if-bound) !
tagged NAT
  pass out log proto tcp from (pppoe0) to any port = www flags S/SA keep state (
if-bound) tagged NAT
  pass out log proto tcp from (pppoe0) to any port = https flags S/SA
keep state (if-bound) tagged NAT
  pass out log proto tcp from (pppoe0) to any port = 5999 flags S/SA
keep state (if-bound) tagged NAT
}
anchor "fiif_0" on sis0 all {
  pass in log from (sis0:network) to (sis0) flags S/SA keep state (if-bound)
  pass in log from (sis0:network) to (sis0:broadcast) flags S/SA keep
state (if-bound)
  pass out log from (sis0) to (sis0:network) flags S/SA keep state (if-bound)
  pass in log proto tcp from (sis0:network) to ! (sis0) port = www
flags S/SA keep state (if-bound)
  pass in log proto tcp from (sis0:network) to ! (sis0) port = https
flags S/SA keep state (if-bound)
  pass in log proto tcp from (sis0:network) to ! (sis0) port = 5999
flags S/SA keep state (if-bound)
  pass in log proto tcp from (sis0:network) to (lo0:0) port = 8021
flags S/SA keep state (if-bound) tagged RDR_0
}
block return in log on ! lo0 from (lo0:network) to any
block return in log on sis0 from (sis0:broadcast) to any
block return in log on ! sis0 from (sis0:network) to any
block return in log on ! sis0 from any to (sis0:broadcast)
block return in log on sis0 inet from any to 127.0.0.0/8 ! tagged RDR_0
block return in log on ! pppoe0 from (pppoe0) to any
block return in log on pppoe0 from any to <net> ! tagged RDR
block return in log inet from 255.255.255.255 to any
block return in log inet from any to 0.0.0.0/8

Does anybody have any ideia why? (i tried during passive/active data transfer).

I really thank you for your time and cooperation.

Very best regards.

On 5/14/07, Joachim Schipper <j.schipper@math.uu.nl> wrote:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ftp and pf (nat), John Nietzsche, (Mon May 14, 9:24 am)
Re: ftp and pf (nat), Joachim Schipper, (Mon May 14, 9:40 am)
Re: ftp and pf (nat), John Nietzsche, (Mon May 14, 10:43 am)
Re: ftp and pf (nat), Joachim Schipper, (Mon May 14, 12:37 pm)
Re: ftp and pf (nat), John Nietzsche, (Mon May 14, 4:55 pm)
Re: ftp and pf (nat), John Nietzsche, (Mon May 14, 5:47 pm)