10-07-2011 04:32 AM - edited 03-11-2019 02:35 PM
I just purchased a domain name, that I have forwarding to my WAN address. I want to be able to access my home websie via this route. I have an ASA 5505, how do I get the ASA to point to the home server when the WAN IP address is entered?
10-07-2011 05:20 AM
Hi Jonathan,
On the ASA 5505, you would need to first create a nat statement for the server, like:
static (inside,outside) 1.1.1.1 192.168.1.1
where 1.1.1.1 is the public ip.
and also create an access-list that needs to be applied on the outside interface, like:
access-list out_in permit tcp any host 1.1.1.1
access-group out_in in interface outside
Hope that helps
Thanks,
Varun
10-07-2011 05:24 AM
Where do I point it to grab the IP address of the server? The inside address for the server will be 192.168.4.199
10-07-2011 05:29 AM
I forgot to that I left out ther version: 8.4.1
I recieved this error:
Result of the command: "static (inside,outside) 68.108.xxx.xxx 192.168.1.1"
ERROR: This syntax of nat command has been deprecated..
10-07-2011 05:29 AM
Is the server behind teh ASA inside interface or on the internet (with reference to the ASA) ? Are you accessing this site from the inside interface of the ASA??
Thanks,
Varun
10-07-2011 05:35 AM
Yes the server is behind the ASA via an additional router. I want to be able to access the server via the inside and the outside.
Cable Modem-----> ASA----> Cisco-Linksys Router-----> Server
I want to be able to access my home server hosting my webiste from my inside network as well as from any outside address. I currently have my domain forwarding to my WAN IP address.
10-07-2011 05:49 AM
OK got it!!!!
Didn't know you were using 8.4, you would need this syntax
object network public_ip
host 1.1.1.1
object network private_ip
host 192.168.4.199
nat (outside,inside) source static any any destination static public_ip private_ip
For accessing from inside:
nat (inside,inside) source static any interface destination static public_ip private_ip
same-security-traffic permit intra-interface
You woudl also need the access-list:
access-list out_in permit tcp any host 192.168.4.199
access-group out_in in interface outside
Hope that helps.
Thanks,
Varun
10-07-2011 06:01 AM
I get this error when apply it the config
nat (outside,inside) source static any any destination static public_ip private_ip
ERROR: Address 68.108.xxx.xxx overlaps with outside interface address.
ERROR: NAT Policy is not downloaded
Any idea on how to resolve this?
10-07-2011 06:06 AM
Ohhhhh is the public ip you are using the outside interface IP????
Varun
10-07-2011 06:07 AM
Yes, is that a problem? Can we fix that?
10-07-2011 06:09 AM
We would need to do port forwarding for it, but you would need to tell me on whihc port the server needs to be connected on 80,443 or anything else??
Varun
10-07-2011 06:11 AM
80, 443, 21 the standard for internet and FTP access
10-07-2011 06:54 AM
You woudl then need to use the following nats:
object network private_ip
host 192.168.4.199
object service tcp_443
service tcp source eq 443
object service tcp_80
service tcp source eq 80
object service tcp_21
service tcp source eq 21
nat (inside,any) source static private_ip interface service tcp_443 tcp_443
nat (inside,any) source static private_ip interface service tcp_80 tcp_80
nat (inside,any) source static private_ip interface service tcp_21 tcp_21
same-security-traffic permit intra-interface
access-list out_in permit tcp any host 192.168.4.199
access-group out_in in interface outside
Hope that works for you
Thanks,
Varun
10-07-2011 07:00 AM
I get and error on the nat lines
ERROR: "interface" keyword is not allowed when translated interface is any
Any ideas?
10-07-2011 07:17 AM
Let me try this first on my ASA
Varun
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide