forum.netbsd.se - NetBSD Sweden

You are not logged in.

#1 2005-01-15 08:00:18

franzi
Guest

internal ftp server

hi all i searched in google for a while but no results
occeured to me so it's time to write.I got this
problem i got a netbsd 2.0 ipf dhcpd server and i
installed a internal anonymous ftp under openbsd3.6
the
ftp server is ok inside the lan,but if i want to
connect from the outside through the inside it doesn't
work.Those are my setting

/etc/ipf.conf
pass in  from any to any
pass out  from any to any
pass in quick proto tcp from any to 192.168.0.0/24
port > 1023 flags S keep stat
e
pass out proto tcp all keep state

/etc/ipnat.conf
map pppoe0 192.168.0.0/24 -> 0/32 proxy port  ftp
ftp/tcp mssclamp 1452
map pppoe0 192.168.0.0/24 -> 0/32 portmap tcp/udp
40000:60000 mssclamp 1452
map pppoe0 192.168.0.0/24 -> 0/32 mssclamp 1452
rdr pppoe0 0.0.0.0/32 port 21 -> 192.168.0.2 port 21

ok i read somewhere that the line rdr should have be
at the first line ,but i don't know if it's  right
thanks in advance for any help.
Christian

 

#2 2005-01-15 14:23:29

mikael
Member
From: Stockholm, Sweden
Registered: 2004-05-11
Posts: 101

Re: internal ftp server

First, the two last lines of ipf.conf is
unnecessary since since you pass everything
in/out anyway. (The two first lines.)
Actually, that configuration don't provide any
filter functionality at all. You should disable ipf.

To use ipnat with map/rdr functionality, you need to set
#sysctl -w net.inet.ip.forwarding=1

Have you tried that?

Offline

 

#3 2005-01-15 21:44:03

franzi
Guest

Re: internal ftp server

yes sure i done it from the beginning

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB