Subject: help internal ftp server
To: None <netbsd-help@NetBSD.org>
From: vattini giacomo <hazzino@yahoo.it>
List: netbsd-help
Date: 01/15/2005 07:36:53
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


		
___________________________________ 
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica… Scaricalo ora! 
http://it.messenger.yahoo.it