you can do it using policy based NAT as well :
Assuming this is your set up
Zone tntrust : netscreen IP = 100.100.100.100, ethernet1
Zone trust : netscreen IP = 192.168.10.1
In zone trust : FTPserver IP = 192.168.10.123, ethernet0
1. Create an object in your *trust* zone :
Code:
set address trust MyPublicIP 100.100.100.100/32
2. Create a route from untrust to trust
Code:
set route 100.100.100.100/32 int ethernet0
3. Create a policy
Code:
set policy from untrust to trust any MyPublicIP ftp nat dst ip 192.168.10.123 permit
This way, you can create many to many inbound connections, using your public IP only, and multiple internal hosts and port combinations
For example, if you have another webserver in your network (192.168.10.124), that is running on port 8080 internally, and you want to make it available from the internet, on port 80, then you can do this
Code:
set policy from untrust to trust any MyPublicIP http nat dst ip 192.168.10.124 port 8080 permit
--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
---------------------------------------------------------------