06-24-2004 02:43 PM - edited 02-20-2020 11:28 PM
I'm currently using a Pix 501 in a SOHO environment with a non-static DSL connection. I configured the IP correctly - ip address outside dhcp setroute. The problem lies with my access lists and static routes. Is there any way to have the pix automatically update these when the outside IP changes? The areas of trouble are...
access-list 101 permit tcp any host xxx.xxx.xxx.xxx eq smtp
access-list acl_out permit tcp any host xxx.xxx.xxx.xxx eq smtp
static (inside,outside) tcp xxx.xxx.xxx.xxx smtp 10.10.10.1 smtp netmask 255.255.255.255 0 0
where xxx.xxx.xxx.xxx is the outside IP. I have the feeling updating the pix daily will be necessary to accomodate the ISP's IP changes, but it would be great if it wasn't!!
Thanks in advance.
-Brian
Solved! Go to Solution.
06-24-2004 04:02 PM
You can use the keyword "interface" in both access-lists and statics now, which will automatically use whatever IP address is on that interface. In your example, it would be:
access-list 101 permit tcp any interface outside eq smtp
access-list acl_out permit tcp any interface outside eq smtp
static (inside,outside) tcp interface smtp 10.10.10.1 smtp netmask 255.255.255.255
Note you need to be running 6.3(3) code to get this option, new code is available here:
http://www.cisco.com/cgi-bin/tablebuild.pl/pix
Note also you don't need to specify the interface name in the static statement, that is gleaned from the interface name in the brackets.
06-24-2004 04:02 PM
You can use the keyword "interface" in both access-lists and statics now, which will automatically use whatever IP address is on that interface. In your example, it would be:
access-list 101 permit tcp any interface outside eq smtp
access-list acl_out permit tcp any interface outside eq smtp
static (inside,outside) tcp interface smtp 10.10.10.1 smtp netmask 255.255.255.255
Note you need to be running 6.3(3) code to get this option, new code is available here:
http://www.cisco.com/cgi-bin/tablebuild.pl/pix
Note also you don't need to specify the interface name in the static statement, that is gleaned from the interface name in the brackets.
06-25-2004 02:04 PM
Excellent news. Thanks for the information.
-Brian
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