cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
891
Views
0
Helpful
8
Replies

Allow website using its IP?

vinayak
Level 1
Level 1

Dear all,

I am having Cisco ASA 5510. i blocked all  web traffic for my LAN Users. & allow them only to access google.

Now i want them to access http://164.100.111.5:8080/mahabhulekh/  this website..

How i allow this?

8 Replies 8

Jennifer Halim
Cisco Employee
Cisco Employee

Here is the access-list to allow them:

access-lits permit tcp any host 164.100.111.5 eq 8080

Dear Jennifer,

Its not working.

Can you share where you apply the access-list and which interface is the traffic from?

Also, the access-list needs to be applied above any "deny" ACL that you might have.

here is the config

ASA Version 8.0(3)
!
hostname rama5510
enable password 2ry13OhtG57zeqsA encrypted
names
name 192.168.0.107 server
!
interface Ethernet0/0
nameif outside
security-level 0
ip address 121.242.223.102 255.255.255.252
!
interface Ethernet0/1
nameif inside
security-level 100
ip address 192.168.0.1 255.255.255.0
!
interface Ethernet0/2
nameif vpn
security-level 50
ip address 10.1.89.82 255.255.255.252
!
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
nameif management
security-level 100
no ip address
management-only
!
passwd 2KFQnbNIdI.2KYOU encrypted
regex domainlist1 "\.yahoo\.com"
regex domainlist2 "\.google\.co\.in"
regex domainlist3 "\.orkut\.com"
regex domainlist4 "\.orkut\.co\.in"
regex domainlist5 "\.facebook\.com"
regex domainlist6 "\.gmail\.com"
regex domainlist7 "\.google\.com"

regex applicationheader "application/.*"
regex contenttype "content-type"
regex allow "\.google.\com"
ftp mode passive
dns domain-lookup outside
dns domain-lookup inside
dns server-group DefaultDNS
name-server 121.242.190.180
name-server 121.242.190.211
object-group protocol TCPUDP
protocol-object udp
protocol-object tcp
object-group network allow
network-object host 192.168.0.124
network-object host 192.168.0.14
network-object host 192.168.0.77
access-list vpn_1_cryptomap extended permit ip 192.168.0.0 255.255.255.0 192.168.1.0 255.255.255.0
access-list inside_nat0_outbound extended permit ip 192.168.0.0 255.255.255.0 192.168.1.0 255.255.255.0
access-list inside_access_in extended permit ip 192.168.0.0 255.255.255.0 192.168.1.0 255.255.255.0
access-list inside_access_in extended permit ip 192.168.0.0 255.255.255.0 any
access-list outside_access_in extended permit ip 192.168.1.0 255.255.255.0 192.168.0.0 255.255.255.0
access-list outside_access_in extended permit tcp any interface outside eq www
access-list outside_access_in extended permit tcp any interface outside eq citrix-ica
access-list outside_access_in extended permit tcp any interface outside eq 2598

access-list user-acl extended deny tcp object-group allow any eq www
access-list user-acl extended deny tcp object-group allow any eq 8080
access-list user-acl extended permit tcp any any eq www
access-list user-acl extended permit tcp any any eq 8080
access-list user-acl extended permit tcp any host 164.100.111.5 eq 8080


access-list Outside_access_in extended permit tcp any host 121.242.223.102 eq www
access-list Outside_access_in extended permit tcp any host 121.242.223.102 eq citrix-ica
access-list Outside_access_in extended permit tcp any host 121.242.223.102 eq 2598
pager lines 24
logging enable
logging asdm informational
mtu outside 1500
mtu inside 1500
mtu vpn 1500
mtu management 1500
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-603.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) interface server netmask 255.255.255.255
access-group outside_access_in in interface outside
access-group inside_access_in in interface inside
route outside 0.0.0.0 0.0.0.0 121.242.223.101 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout uauth 0:05:00 absolute
dynamic-access-policy-record DfltAccessPolicy
http server enable
http 192.168.0.0 255.255.255.0 inside
http 192.168.1.0 255.255.255.0 management
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
no sysopt connection permit-vpn
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto map vpn_map 1 match address vpn_1_cryptomap
crypto map vpn_map 1 set pfs
crypto map vpn_map 1 set peer 10.1.89.78
crypto map vpn_map 1 set transform-set ESP-3DES-SHA
crypto map vpn_map interface vpn
crypto isakmp enable vpn
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
no crypto isakmp nat-traversal
telnet timeout 5
ssh timeout 5
console timeout 0
threat-detection basic-threat
threat-detection statistics access-list
username rama5510 password NQ35L.CrXDGEh3Wo encrypted privilege 15
tunnel-group 10.1.89.78 type ipsec-l2l
tunnel-group 10.1.89.78 ipsec-attributes
pre-shared-key *
!
class-map type regex match-any domainblocklist
match regex domainlist1
match regex domainlist2
match regex domainlist3
match regex domainlist5
match regex domainlist4
match regex domainlist6
class-map type inspect http match-all blockdomainclass
match request header host regex class domainblocklist
class-map type inspect http match-all appheaderclass
match request header regex contenttype regex applicationheader
match req-resp content-type mismatch
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
  message-length maximum 512
policy-map type inspect http http_inspection_policy
parameters
  protocol-violation action drop-connection
match request method connect
  drop-connection log
class appheaderclass
  drop-connection log
class blockdomainclass
  reset log
policy-map global_policy
class inspection_default
  inspect dns preset_dns_map
  inspect ftp
  inspect h323 h225
  inspect h323 ras
  inspect rsh
  inspect rtsp
  inspect esmtp
  inspect sqlnet
  inspect skinny 
  inspect sunrpc
  inspect xdmcp
  inspect sip 
  inspect netbios
  inspect tftp
!
service-policy global_policy global
prompt hostname context
Cryptochecksum:7b934ceb541d3f6dc1a9613814281911
: end

It should already work without adding any configuration. As per the current configuration, you should be able to access any websites. Is this correct?

Hi jennifer,

Currently i made 1 object group & members of that group only access to any website.

Rest of all have access only to google.com

I want all my LAN Users have access to http://164.100.111.5:8080/mahabhulekh/ &     http://mahabhulekh.mumbai.nic.in

websites like Google.com

Well, from the above posted configuration, you have not assigned the HTTP policy to the global_policy, so it will only check on the access-list applied to your inside interface. The access-list that is applied on your inside interface is allowing everyone from your LAN to access the Internet.

So if you test it now, everyone from 192.168.0.0/24 should be able to browse to anything with no exception.

Have you tested it from your LAN users? what is the ip address of the PC where you are testing it from? Can you access any websites at the moment? you should, as there is no rule to block anything as per the current configuration posted earlier.

I see one problem:

static (inside,outside) interface server netmask 255.255.255.255

Pls. remove that line.  You cannot do 1-1 static to the interface IP address. You can only do static PAT

change it to the following if the server listens on tcp 80

static (inside,outside) tcp interface 80 server 80 netmask 255.255.255.255

Repeate the above line for any other ports.

-KS

Review Cisco Networking for a $25 gift card