cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
393
Views
5
Helpful
14
Replies
Beginner

ASA5506 - BVI - Port Forwarding issue

Hello All - 

My ASA5506 is configured as BVI - Interface. I have tried to set some port forwarding following these steps and still not able to get the port working!!! 

1. I need to forward these ports (5000, 5001, 1194, 3389, 1701, 4500, 500)  from my NAS - 

My network configuration - ISP Modem - Firewall - Switch L2. 

 

I have followed these steps to forward any port with no luck - I'm not sure what is missing? 

object network NAS
host 10.203.111.131 ------ This IP is for the NAS-Synology
object service 5001
service tcp source eq 5001
nat (any,outside) 1 source static NAS interface service 5001 5001
access-list outside_in permit tcp any host 10.203.111.131 eq 5001
access-group outside_in in interface outside

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
VIP Engager

Re: ASA5506 - BVI - Port Forwarding issue

as you have issues connecting to your network from anyconnect inthat case to access your internal resources in your internal network you have to define some rule.

!

object network POOL-A

  here anyconenct pool you define

!

nat (any,outside) static source any any destin static POOL-A POOL-A no-proxy-arp route-lookup.

please do not forget to rate.

View solution in original post

14 REPLIES 14
Highlighted
Beginner

Re: ASA5506 - BVI - Port Forwarding issue

Hello - All - any feedback - please. 

My ASA is configured as bridge mode BVI1 - 

 

Highlighted
RJI Advisor
Advisor

Re: ASA5506 - BVI - Port Forwarding issue

Is that NAT entry defined under the object NAS? Like so?

object network NAS
host 10.203.111.131
nat (any,outside) 1 source static NAS interface service 5001 5001

Change "any" to be more specific, such as "inside" if the NAS is connected to inside.

Provide the output of "show nat detail"
Highlighted
Beginner

Re: ASA5506 - BVI - Port Forwarding issue

Here are the details - 

1. If select inside then i will get an error as it is not existing because of the ASA in BVI mode, so it has to be any or inside_1, iside_2,inside_3,ect 

2. Also, I got an error that 1194 is not a valid service object name. 

 

1 (inside_1) to (outside) source dynamic obj_any1 interface
translate_hits = 305981, untranslate_hits = 900
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24
2 (inside_2) to (outside) source dynamic obj_any2 interface
translate_hits = 0, untranslate_hits = 0
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24
3 (inside_3) to (outside) source dynamic obj_any3 interface
translate_hits = 0, untranslate_hits = 0
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24
4 (inside_4) to (outside) source dynamic obj_any4 interface
translate_hits = 0, untranslate_hits = 0
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24
5 (inside_5) to (outside) source dynamic obj_any5 interface
translate_hits = 0, untranslate_hits = 0
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24
6 (inside_6) to (outside) source dynamic obj_any6 interface
translate_hits = 0, untranslate_hits = 0
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24
7 (inside_7) to (outside) source dynamic obj_any7 interface
translate_hits = 0, untranslate_hits = 0
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24

Highlighted
Beginner

Re: ASA5506 - BVI - Port Forwarding issue

Here is the NAT

 

NATs.PNG

Highlighted
RJI Advisor
Advisor

Re: ASA5506 - BVI - Port Forwarding issue

You need to define a service object for 1194 then you can create an object and reference the service called 1194 in the nat configuration.  e.g:-

 

object service 1194
service tcp source eq 1194

object network NAS-1194
host 10.203.111.131
nat (any,outside) 1 source static NAS-1194 interface service 1194 1194

access-list outside_in permit tcp any host 10.203.111.131 eq 1194

When you run "show nat detail" again you should see that rule you added should be added to Manual NAT Rules Section 1 - and above the dynamic rules you already have in place.

 

Highlighted
Beginner

Re: ASA5506 - BVI - Port Forwarding issue

Here is the show run - 


Manual NAT Policies (Section 1)
1 (any) to (outside) source static NAS-1194 interface service 1194 1194
translate_hits = 0, untranslate_hits = 0
Source - Origin: 10.206.167.131/32, Translated: 192.168.100.3/24
Service - Origin: tcp source eq 1194 , Translated: tcp source eq 1194

Auto NAT Policies (Section 2)
1 (inside_1) to (outside) source dynamic obj_any1 interface
translate_hits = 307395, untranslate_hits = 900
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24
2 (inside_2) to (outside) source dynamic obj_any2 interface
translate_hits = 0, untranslate_hits = 0
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24
3 (inside_3) to (outside) source dynamic obj_any3 interface
translate_hits = 0, untranslate_hits = 0
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24
4 (inside_4) to (outside) source dynamic obj_any4 interface
translate_hits = 0, untranslate_hits = 0
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24
5 (inside_5) to (outside) source dynamic obj_any5 interface
translate_hits = 0, untranslate_hits = 0
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24
6 (inside_6) to (outside) source dynamic obj_any6 interface
translate_hits = 0, untranslate_hits = 0
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24
7 (inside_7) to (outside) source dynamic obj_any7 interface
translate_hits = 0, untranslate_hits = 0
Source - Origin: 0.0.0.0/0, Translated: 192.168.100.3/24

Highlighted
RJI Advisor
Advisor

Re: ASA5506 - BVI - Port Forwarding issue

So your ASA has a private IP address on the outside? Do you have port forwarding setup on the upstream device?

Run packet-tracer from the CLI and provide the output
Highlighted
Beginner

Re: ASA5506 - BVI - Port Forwarding issue

The port 1194 is forward from the ISP Modem

 

 

Highlighted
Beginner

Re: ASA5506 - BVI - Port Forwarding issue

NM2WCASA1(config)# packet-tracer input outside tcp 192.168.100.3 1194 10.206.167.131 1194

Phase: 1
Type: ACCESS-LIST
Subtype:
Result: ALLOW
Config:
Implicit Rule
Additional Information:
MAC Access list

Phase: 2
Type: ROUTE-LOOKUP
Subtype: Resolve Egress Interface
Result: ALLOW
Config:
Additional Information:
found next-hop 10.206.167.131 using egress ifc inside

Phase: 3
Type: ACCESS-LIST
Subtype:
Result: DROP
Config:
Implicit Rule
Additional Information:

Result:
input-interface: outside
input-status: up
input-line-status: up
output-interface: inside
output-status: up
output-line-status: up
Action: drop
Drop-reason: (acl-drop) Flow is denied by configured rule

 

 

 

 

NM2WCASA1(config)# packet-tracer input outside tcp 10.206.167.131 1194 192.168.100.3 1194

Phase: 1
Type: ROUTE-LOOKUP
Subtype: Resolve Egress Interface
Result: ALLOW
Config:
Additional Information:
found next-hop 10.206.167.131 using egress ifc inside

Phase: 2
Type: UN-NAT
Subtype: static
Result: ALLOW
Config:
nat (any,outside) source static NAS-1194 interface service 1194 1194
Additional Information:
NAT divert to egress interface inside
Untranslate 192.168.100.3/1194 to 10.206.167.131/1194

Phase: 3
Type: SUBOPTIMAL-LOOKUP
Subtype: suboptimal next-hop
Result: ALLOW
Config:
Additional Information:
ifc selected is not same as preferred ifc
Doing route lookup again on ifc inside

Phase: 4
Type: ROUTE-LOOKUP
Subtype: Resolve Egress Interface
Result: ALLOW
Config:
Additional Information:
found next-hop 10.206.167.131 using egress ifc inside

Phase: 5
Type: UN-NAT
Subtype: static
Result: ALLOW
Config:
nat (any,outside) source static NAS-1194 interface service 1194 1194
Additional Information:
NAT divert to egress interface inside
Untranslate 192.168.100.3/1194 to 10.206.167.131/1194

Result:
input-interface: outside
input-status: up
input-line-status: up
output-interface: inside
output-status: up
output-line-status: up
Action: drop
Drop-reason: (no-adjacency) No valid adjacency

 

Highlighted
RJI Advisor
Advisor

Re: ASA5506 - BVI - Port Forwarding issue

No, your source IP will be a random internet address and the destination IP address will be the outside interface IP address (192.168.100.3).

"packet-tracer input outside tcp 8.8.8.8 3000 192.168.100.3 1194"

Run a packet capture on the ASA, confirm you are actually receiving traffic destined to port 1194.
Highlighted
Beginner

Re: ASA5506 - BVI - Port Forwarding issue

NM2WCASA1(config)#
NM2WCASA1(config)# packet-tracer input outside tcp 8.8.8.8 3000 192.168.100.3 $

Phase: 1
Type: ROUTE-LOOKUP
Subtype: Resolve Egress Interface
Result: ALLOW
Config:
Additional Information:
found next-hop 192.168.100.3 using egress ifc identity

Phase: 2
Type: NAT
Subtype: per-session
Result: ALLOW
Config:
Additional Information:

Phase: 3
Type: ACCESS-LIST
Subtype:
Result: DROP
Config:
Implicit Rule
Additional Information:

Result:
input-interface: outside
input-status: up
input-line-status: up
output-interface: NP Identity Ifc
Action: drop
Drop-reason: (acl-drop) Flow is denied by configured rule

NM2WCASA1(config)#

Highlighted
VIP Advisor

Re: ASA5506 - BVI - Port Forwarding issue

You need to setup NAT for each specific interface and not the BVI interface.  BVI is used for management and not through the box traffic.

--
Please remember to select a correct answer and rate helpful posts
Highlighted
VIP Engager

Re: ASA5506 - BVI - Port Forwarding issue

as you have issues connecting to your network from anyconnect inthat case to access your internal resources in your internal network you have to define some rule.

!

object network POOL-A

  here anyconenct pool you define

!

nat (any,outside) static source any any destin static POOL-A POOL-A no-proxy-arp route-lookup.

please do not forget to rate.

View solution in original post

Highlighted
Beginner

Re: ASA5506 - BVI - Port Forwarding issue

THANK YOU FOR THE HELP --

 

Apprciate the collobration