[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fully Connecting 2 subnets with NAT

Hi @ll,

I've tried now to connect my two subnets I made, with NAT. The Situation
is that, that I have 3 Network Cards in my OpenBSD Firewall/NAT Box. we0
(first) is connected to the external bad world over pppoe, the second
we1 is connected to my internal network the third we2 is
connected to my ftp server

we1 has the IP
we2 has the IP

I've set up the following rules

rdr tun0 0/0 port 21 -> port 21
map tun0 -> tun0/32 proxy port ftp ftp/tcp
map tun0 -> tun0/32 portmap tcp/udp 34000:64000
bimap we2 -> we2/32

As far as of by now I could only connect from my main computer to my ftp server ( But I could not connect from
my ftp server to my main computer ( tcpdump -i we2 shows
that there is an icmp request but no replies. Also I could not establish
a connection from outside to my ftp server. I googled but could not find
any suiting hint. The FTP Server is running NetBSD.

So what do I have to do to access the ftp server from outside as well as
from inside the LAN?

Would be really glad about any pointers