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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem creating static entry when object-group command is used 1

Status
Not open for further replies.

ejortiz

MIS
Feb 2, 2005
5
0
0
US
Hello,

I am a newbie with the Pix firewall. I have a Pix 501e that I am configuring, and have consolidated a range of ports using the "object-group" command (the ports used for BitTorrent). I then created an entry in my access-list referencing the BItTorrent object-group as such:

access-list outside_access_in permit tcp any object-group BitTorrent interface outside object-group BitTorrent


When I go to create a static entry using the following syntax, I receive the following error:


pix(config)# static (inside,outside) tcp interface object-group BitTorrent 192.168.1.4 object-group BitTorrent netmask 255.255.255.255 0 0
invalid global port object-group


I then try the following:

pix(config)# static (inside,outside) tcp interface 6881 6999 192.168.1.4 6881 6999 netmask 255.255.255.255 0 0
invalid local port 192.168.1.4



As I understand it, when traffic flows from a lower-level interface to a higher-level one, the pix still expects address translation to occur. When viewing the ACL's in PDM, the ACL referencing the BitTorrent object-group is "Null", indicating that a static entry is required. Can someone provide me with the correct syntax, or direct me to where I can find the syntax to be used with the "static" command when an object-group is referenced? Maybe I am missing something, but I don't think I have to create separate static entries for the ports defined in the object-group (that would defeat the purpose of object-groups, wouldn't it?). I have pasted the output of the sho ver and sho run commands below.

Any help is greatly appreciated. Thanks in advance.


Eric



sho ver

Cisco PIX Firewall Version 6.3(4)
Cisco PIX Device Manager Version 3.0(2)

Compiled on Fri 02-Jul-04 00:07 by morlee

pix up 2 days 2 hours

Hardware: PIX-501, 16 MB RAM, CPU Am5x86 133 MHz
Flash E28F640J3 @ 0x3000000, 8MB
BIOS Flash E28F640J3 @ 0xfffd8000, 128KB





sho run
: Saved
:
PIX Version 6.3(4)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname pix
domain-name ciscopix.com
clock timezone EST -5
clock summer-time EDT recurring
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
object-group service BitTorrent tcp
description TCP ports for BitTorrent Application
port-object range 6881 6999
access-list outside_access_in permit tcp any any eq 5800 log
access-list outside_access_in permit tcp any any eq 5900 log
access-list outside_access_in permit tcp any any eq 4662
access-list outside_access_in permit udp any any eq 4672
access-list outside_access_in permit tcp any object-group BitTorrent interface outside object-group BitTorrent
pager lines 24
logging on
logging timestamp
mtu outside 1500
mtu inside 1500
ip address outside dhcp setroute
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.4 255.255.255.255 inside
pdm location 192.168.1.4 255.255.255.255 outside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
global (inside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp interface 5900 192.168.1.4 5900 netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 5800 192.168.1.4 5800 netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 4662 192.168.1.4 4662 netmask 255.255.255.255 0 0
static (inside,outside) udp interface 4672 192.168.1.4 4672 netmask 255.255.255.255 0 0
access-group outside_access_in in interface outside
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
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
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address 192.168.1.2-192.168.1.33 inside
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
Cryptochecksum:1025e9ae9d22b180aa8c8786ec0f1523
: end
pix(config)#
 
Sorry, objgroups are only meant for access-list not for use in nat'ing, you will need to create a static for each port you wan't forwarded to your machine running bittorrent.

Syntax :
Usage: [no] static [(real_ifc, mapped_ifc)]
{<mapped_ip>|interface}
{<real_ip> [netmask <mask>]} | {access-list <acl_name>}
[dns] [norandomseq] [<max_conns> [<emb_lim>]]
[no] static [(real_ifc, mapped_ifc)] {tcp|udp}
{<mapped_ip>|interface} <mapped_port>
{<real_ip> <real_port> [netmask <mask>]} |
{access-list <acl_name>}
[dns] [norandomseq] [<max_conns> [<emb_lim>]]


Network Systems Engineer
CCNA/CQS/CCSP/Infosec
Check the danish Cisco CSA Forum here :
 
Was afraid of that. Thanks for the info. Looks like I have a little copy/paste btwn Excel and the CLI ahead of me.


 
btw, this command does you no good, go ahead and remove it :

global (inside) 1 interface

Network Systems Engineer
CCNA/CQS/CCSP/Infosec
Check the danish Cisco CSA Forum here :
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top