I have a PIX 501 that I need to reconfigure. Currently it performs port mapping throught the outside interface.
There is a need to allow internet access to two separate servers on the same port. So I have tried to create a static translation between 3 public IP addresses to 3 internal addresses, however my attempts have been fruitless.
Here is my current config. Any ideas or tips would be much appreciated.
PIX Version 6.3(4)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password xxxxxxxxxxx encrypted
passwd xxxxxxxxxxxxx encrypted
hostname pixfirewall
domain-name localhost
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names
access-list inside_out permit tcp host 192.168.10.10 any
access-list inside_out permit tcp host 192.168.10.15 any
access-list inside_out permit tcp host 192.168.10.150 any
access-list outside_in permit tcp xxx.xxx.144.0 255.255.252.0 host xxx.xxx.144.183 eq www
access-list outside_in permit tcp xxx.xxx.128.0 255.255.252.0 host xxx.xxx.144.183 eq www
access-list outside_in permit tcp xxx.xxx.144.0 255.255.252.0 host xxx.xxx.144.182 eq 3326
access-list outside_in permit tcp xxx.xxx.144.0 255.255.252.0 host xxx.xxx.144.182 eq 3320
access-list outside_in permit tcp xxx.xxx.128.0 255.255.252.0 host xxx.xxx.144.182 eq 3326
access-list outside_in permit tcp xxx.xxx.128.0 255.255.252.0 host xxx.xxx.144.182 eq 3320
access-list outside_in permit tcp xxx.xxx.127.128 255.255.255.192 host xxx.xxx.144.182 eq 104
access-list outside_in permit tcp xxx.xxx.127.128 255.255.255.192 host xxx.xxx.144.180 eq 104
access-list outside_in permit tcp xxx.xxx.127.128 255.255.255.192 host xxx.xxx.144.180 eq 3320
access-list outside_in permit tcp xxx.xxx.127.128 255.255.255.192 host xxx.xxx.144.180 eq 3326
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside xxx.xxx.144.179 255.255.252.0
ip address inside 192.168.10.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
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
static (inside,outside) tcp xxx.xxx.144.183 255.255.255.255 0 0
static (inside,outside) tcp xxx.xxx.144.182 3326 192.168.10.150 3326 netmask 255.255.255.255 0 0
static (inside,outside) tcp xxx.xxx.144.182 3320 192.168.10.150 3320 netmask 255.255.255.255 0 0
static (inside,outside) tcp xxx.xxx.144.182 104 192.168.10.150 104 netmask 255.255.255.255 0 0
static (inside,outside) tcp xxx.xxx.144.180 104 192.168.10.10 104 netmask 255.255.255.255 0 0
static (inside,outside) tcp xxx.xxx.144.180 3320 192.168.10.10 3320 netmask 255.255.255.255 0 0
static (inside,outside) tcp xxx.xxx.144.180 3326 192.168.10.10 3326 netmask 255.255.255.255 0 0
access-group inside_out in interface inside
access-group outside_in in interface outside
route outside 0.0.0.0 0.0.0.0 xxx.xxx.147.240 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 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 TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10
aaa-server RADIUS protocol radius
aaa-server RADIUS max-failed-attempts 3
aaa-server RADIUS deadtime 10
aaa-server LOCAL protocol local
aaa authentication enable console LOCAL
aaa authentication ssh console LOCAL
http server enable
http 192.168.10.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
telnet timeout 5
ssh 192.168.10.6 255.255.255.255 inside
ssh timeout 5
console timeout 0
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
no dhcpd enable inside
username xxxxxx password xxxxxxxxxx encrypted privilege 15
terminal width 80
Cryptochecksum:0915b3c3ff33b08abe90eca9b0465f1a
: end
There is a need to allow internet access to two separate servers on the same port. So I have tried to create a static translation between 3 public IP addresses to 3 internal addresses, however my attempts have been fruitless.
Here is my current config. Any ideas or tips would be much appreciated.
PIX Version 6.3(4)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password xxxxxxxxxxx encrypted
passwd xxxxxxxxxxxxx encrypted
hostname pixfirewall
domain-name localhost
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names
access-list inside_out permit tcp host 192.168.10.10 any
access-list inside_out permit tcp host 192.168.10.15 any
access-list inside_out permit tcp host 192.168.10.150 any
access-list outside_in permit tcp xxx.xxx.144.0 255.255.252.0 host xxx.xxx.144.183 eq www
access-list outside_in permit tcp xxx.xxx.128.0 255.255.252.0 host xxx.xxx.144.183 eq www
access-list outside_in permit tcp xxx.xxx.144.0 255.255.252.0 host xxx.xxx.144.182 eq 3326
access-list outside_in permit tcp xxx.xxx.144.0 255.255.252.0 host xxx.xxx.144.182 eq 3320
access-list outside_in permit tcp xxx.xxx.128.0 255.255.252.0 host xxx.xxx.144.182 eq 3326
access-list outside_in permit tcp xxx.xxx.128.0 255.255.252.0 host xxx.xxx.144.182 eq 3320
access-list outside_in permit tcp xxx.xxx.127.128 255.255.255.192 host xxx.xxx.144.182 eq 104
access-list outside_in permit tcp xxx.xxx.127.128 255.255.255.192 host xxx.xxx.144.180 eq 104
access-list outside_in permit tcp xxx.xxx.127.128 255.255.255.192 host xxx.xxx.144.180 eq 3320
access-list outside_in permit tcp xxx.xxx.127.128 255.255.255.192 host xxx.xxx.144.180 eq 3326
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside xxx.xxx.144.179 255.255.252.0
ip address inside 192.168.10.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
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
static (inside,outside) tcp xxx.xxx.144.183 255.255.255.255 0 0
static (inside,outside) tcp xxx.xxx.144.182 3326 192.168.10.150 3326 netmask 255.255.255.255 0 0
static (inside,outside) tcp xxx.xxx.144.182 3320 192.168.10.150 3320 netmask 255.255.255.255 0 0
static (inside,outside) tcp xxx.xxx.144.182 104 192.168.10.150 104 netmask 255.255.255.255 0 0
static (inside,outside) tcp xxx.xxx.144.180 104 192.168.10.10 104 netmask 255.255.255.255 0 0
static (inside,outside) tcp xxx.xxx.144.180 3320 192.168.10.10 3320 netmask 255.255.255.255 0 0
static (inside,outside) tcp xxx.xxx.144.180 3326 192.168.10.10 3326 netmask 255.255.255.255 0 0
access-group inside_out in interface inside
access-group outside_in in interface outside
route outside 0.0.0.0 0.0.0.0 xxx.xxx.147.240 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 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 TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10
aaa-server RADIUS protocol radius
aaa-server RADIUS max-failed-attempts 3
aaa-server RADIUS deadtime 10
aaa-server LOCAL protocol local
aaa authentication enable console LOCAL
aaa authentication ssh console LOCAL
http server enable
http 192.168.10.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
telnet timeout 5
ssh 192.168.10.6 255.255.255.255 inside
ssh timeout 5
console timeout 0
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
no dhcpd enable inside
username xxxxxx password xxxxxxxxxx encrypted privilege 15
terminal width 80
Cryptochecksum:0915b3c3ff33b08abe90eca9b0465f1a
: end