Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PIX Port Forwarding

Status
Not open for further replies.

vlad1slav

Programmer
Nov 10, 2002
10
GB
I have a static IP assigned by my ADSL provider.

My topology is as follows:

Internet --> ADSL Modem/Router --> Cisco PIX 501 --> Local Area Network (192.168.1.X)

ADSL Modem Interfaces
Outside: 213.1XX.XX.XXX
Inside: 192.168.0.1

Cisco PIX 501 Interfaces
Outside: 192.168.0.2
Inside: 192.168.1.1

The ADSL modem is currently configured to forward all traffic directly to the PIX 501 outside interface. What I would like to do is forward all traffic coming in on port 80 to something like 192.168.1.15 (On the Local Area Network) and all traffic on port 21 to 192.168.1.16 (Again on the local area network).

I have spend a couple of days now playing around with various access-list/access-group/static route set-ups, but I’ve yet to crack this puzzle. Can anyone point me in the right direction?

Here is my current config:

PIX Version 6.1(4)
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password xxxXXXxxx encrypted
passwd xxxXXXxxx encrypted
hostname pixfirewall
domain-name ciscopix.com
fixup protocol ftp 21
fixup protocol http 80
fixup protocol h323 1720
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol sip 5060
fixup protocol skinny 2000
names
access-list outside_access_in permit tcp any eq eq www
pager lines 24
interface ethernet0 10baset
interface ethernet1 10full
mtu outside 1500
mtu inside 1500
ip address outside 192.168.0.2 255.255.255.0
ip address inside 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm location 192.168.1.15 255.255.255.255 inside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 192.168.0.1 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h323 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
no sysopt route dnat
telnet timeout 5
ssh timeout 5
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
terminal width 80
Cryptochecksum:a8474ed3b769b0a5f5be8cb6246556d6
 
Try adding these commands

static (inside, outside) tcp interface 80 192.168.1.15 80 255.255.255.255
static (inside, outside) tcp interface 21 192.168.1.16 21 255.255.255.255
access-list outside_access_in permit tcp any any eq 21
 
Hi

How you do port forwarding on your router to you PIX?? I have the simmilar topology as yours. But my OWA cannot work maybe because of the router configuration.Please show me what are the few important command need to do port forwarding.


Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top