Page 1 of 1

restoring a default for "ip firewall service-port"

Posted: Sat Feb 25, 2012 2:52 am
by pst
I accidentally added a line to my config:

/ip firewall service port
set pptp ports=1723

This entry doesn't need a "ports=" setting and is now showing as invalid.
/ip firewall service-port> print
Flags: X - disabled, I - invalid 
 #   NAME                                                                 PORTS
 0   ftp                                                                  21   
 1   tftp                                                                 69   
 2   irc                                                                  6667 
 3   h323                                                                
 4   sip                                                                  5060 
                                                                          5061 
 5 I pptp                                                                 0    
I tried setting ports= to 0, that failed. There is no "default" or "remove" command because the item itself can't be removed. I'm at my wits end, unless someone has a backup/restore editor that would let me edit a backup file.

Help?

Re: restoring a default for "ip firewall service-port"

Posted: Sun Feb 26, 2012 12:02 am
by skillful
In winbox, double click the pptp icon to pop it up. Then click the up arrow key in the ports settings to delete whatever port you had set.

Re: restoring a default for "ip firewall service-port"

Posted: Mon Feb 27, 2012 12:20 pm
by mrz
Or from console
/ip firewall service-port set pptp ports=""

Re: restoring a default for "ip firewall service-port"

Posted: Tue Feb 28, 2012 12:10 am
by pst
Aha, thank you!