03-16-2015 06:41 AM - edited 03-11-2019 10:38 PM
Hello I am trying to create an object with a public IP address as a host and allow multiple udp ports to that host but cannot fine to seem the relevant documentation.
When i create the object and try the service command under it does not allow me to put in udp/tcp protocol options.
Any one can advise on how to configure this please?
device details
PID: ASA5510
System image file is "disk0:/asa842-k8.bin"
Please let me know if you need any more details.
thanks
03-16-2015 07:21 AM
Hi Kaushik,
This is how you define the object service:
object service test-list
service tcp source eq 8014
And below are the options. You cannot define all three of the below ports in one service. You can define range or equal or greater than etc.
ASA5585-2(config-service-object)# service tcp source ?
service-object mode commands/options:
eq Port equal to operator
gt Port greater than operator
lt Port less than operator
neq Port not equal to operator
range Port range operator
Then you can use this object service in access-list or NAT rule.
Regards,
Kanwal
Note: Please mark answers if they are helpful.
03-16-2015 07:34 AM
thanks I have setup something like this. is it fine or i need to amend something ?
Please let me know thanks
object network obj-Test
host xxx.xxx.xxx.xxx
object network obj-Test
nat (inside,outside) static xxx.xxx.xxx.xxx
access-list outside_acl extended permit ip host yyy.yyy.yyy.yyy host xxx.xxx.xxx.xxx
access-list outside_acl extended permit ip host aaa.aaa.aaa.aaa host xxx.xxx.xxx.xxx
access-list outside_acl extended permit udp any host xxx.xxx.xxx.xxx range 20000 24000
03-16-2015 03:07 PM
Hi Kaushik,
I am not sure about your requirement but this command should allow udp access for the host and range you have mentioned.
Regards,
Kanwal
Note: Please mark answers if they are helpful.
03-16-2015 04:41 PM
Thanks Kanwal for your reply; one more thing i wanted to ask ; my host has been assigned a public ip address itself; in that case am i correct in doing a static nat to itself or that could cause issues?
03-18-2015 07:27 AM
Hi Kaushik,
Yeah it should be fine if it is not natted anywhere else.
Regards,
Kanwal
Note: Please mark answers if they are helpful.
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