Hi!
I install ipf 3.4.27 and get troubles with ftp
Conf:
ipnat.conf
map ipd1 192.168.1.1/32 -> 10.5.55.1/32 proxy port ftp ftp/tcp
map ipd1 192.168.1.1/32 -> 10.5.55.1/32 portmap tcp/udp 10000:40000
map ipd1 192.168.1.1/32 -> 10.5.55.1/32
ipf.conf
pass out quick on ipd1 proto tcp from 192.168.1.1/32 to 10.5.55.0/24
port = 21 keep state
trying ftp 10.5.55.2
Connected to 10.5.55.2, login, password
ftp> cd /pub ----- OK
ftp> dir
200 PORT command successful.
ipfstat -t
192.168.1.1,62595 10.5.55.26,21 4/4 tcp 51 3344
19:59:59
192.168.1.1,62596 10.5.55.26,0 2/0 tcp 0 0
3:29
What is 10.5.55.26,0 ?
ipnat -l
List of active sessions:
MAP 192.168.1.1 62596 <- -> 10.5.55.1 62596 [10.5.55.26 0]
MAP 192.168.1.1 62595 <- -> 10.5.55.1 62595 [10.5.55.26 21]
proxy ftp/6 use 7 flags 0
proto 6 flags 0 bytes 1470 pkts 22 data YES size 376
FTP Proxy:
passok: 0
Client:
seq cf659b6f len 0 junk 0 cmds 5
buf [PORT 192,168,1,1,244,132\015\012\000]
Server:
seq 5142177d len 30 junk 0 cmds 7
buf [200 PORT command
successful.\015\012dm.\015\012.\015\012\01
5\012\000]
[pts/5]root@rtr:~<72> ipfstat -s
IP states added:
14 TCP
11 UDP
92 ICMP
1568 hits
9601 misses
0 maximum
0 no memory
3 bkts in use
3 active
103 expired
11 closed
[pts/5]root@rtr:~<73> ipnat -s
mapped in 173 out 208
added 15 expired 9
no memory 0 bad nat 0
inuse 3
rules 21
wilds 1
ipf 3.4.22 work fine, but not all time :-)
SunOS rtr 5.8 Generic_108529-07 i86pc i386 i86pc
gcc 2.95.2 companion
make with -lcurses
telnet work fine
Dima