I have a Solaris 8 system with two interfaces that I'm trying to get a couple
of things going on. The basic setup is as follows:
Lab Network -------------<hme0>Solaris 8<le0>-----------|
|----Win2K/IIS
|
|----Solaris 7
Solaris Host:
hme0 IP: 10.89.144.225/25
le0 IP: 192.168.155.1/25
route table:
10.89.144.128 10.89.144.225 hme0
192.168.155.0 192.168.155.1 le0
default 10.89.144.254
127.0.0.1 127.0.0.1 lo0
Win2K IP: 192.168.155.30/24 (default route: 192.168.155.1)
Solaris 7: 192.168.155.25/24 (default router: 192.168.155.1)
What I am trying to do is set up NAT on the Solaris host so that I can access
the Win2K/IIS host on the internal 192.168.155.0/24 network. I am trying to
simulate a Windows web server behind a firewall to practice tunneling
techniques through a firewall. My ipnat.conf is as follows:
bimap hme0 192.168.155.30/32 -> 10.89.144.241/32
rdr hme0 10.89.144.241/32 port 80 -> 192.168.155.30 port 80
I want the windows host to have an external IP address of 10.89.144.241 (one-
to-one NAT). My ipf.conf is still incomplete but what I have below is how it
is setup currently:
#
# configuration file for the IPFilter firewall
#
# This configuration is based on the idea of what is not explicitly permitted
# is denied. We have several things we wish to allow
#
# Secure Shell on the host 10.89.144.225:22/tcp
# NAT to 192.168.155.30 (external address 10.89.144.240)
# HTTP to 10.89.144.240(80/tcp)
# HTTPS to 10.89.144.240(443/tcp)
# MS TermSvc to 10.89.144.240(3389/tcp)
# VNC to 10.89.144.225 (5800/tcp; 5900/tcp)
# All others are to be blocked
#
pass in log quick on hme0 proto tcp from any to 10.89.144.225/32 port = 22 keep state
pass in log quick on hme0 proto tcp from any to 10.89.144.241/32 port = 80
pass in log quick on hme0 proto tcp from any to 10.89.144.241/32 port = 443
pass in log quick on hme0 proto tcp from any to 10.89.144.241/32 port = 3389
pass in quick on hme0 proto tcp from any to 10.89.144.225/32 port 5800 >< 5806
pass in quick on hme0 proto tcp from any to 10.89.144.225/32 port 5900 >< 5906
I cannot seem to be able to ping from the windows host through to some other
hosts on the "external" network (i.e. on the 10.89.144.128/25 side). I'm not
sure what I'm doing wrong with the NAT configuration. Do I need to assign the
10.89.144.241 IP address to the a subinterface on hme0 (i.e. hme0:1?) Any help
on this will be greatly appreciated. Once I have that resolved, I believe I
can figure out how to set it up so that connecting to 10.89.144.241:80 will
get redirected to 192.168.155.30:80.
Thanks,
Ido
--
===============================================================================
|Ido Dubrawsky E-mail: [EMAIL PROTECTED]
| | |Network Security Engineer
:|: :|: |Cisco Secure Consulting Services
:|||: :|||: |Cisco Systems, Inc.
.:|||||||:..:|||||||:. |Austin, TX. 78759
===============================================================================