[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 192.168.1.3 the third we2 is
connected to my ftp server 192.168.2.2.

we1 has the IP 192.168.1.1
we2 has the IP 192.168.2.1

I've set up the following rules

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

As far as of by now I could only connect from my main computer
192.168.1.3 to my ftp server (192.168.2.2). But I could not connect from
my ftp server to my main computer (192.168.1.3) 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

Carsten