Community discussions

MikroTik App
 
User avatar
bobr
just joined
Topic Author
Posts: 14
Joined: Fri Feb 13, 2015 4:27 pm

Don't know how to remove an interface from NAT rule

Fri Feb 13, 2015 4:40 pm

Hi there to all!
It may seem ridiculous, but I can't figure it out, how to remove an interface from a NAT rule.
For example, I have a rule like this:
[root@MikroTik] /ip firewall nat> print                              
Flags: X - disabled, I - invalid, D - dynamic 
 0    ;;; default configuration
      chain=srcnat action=masquerade to-addresses=0.0.0.0 
      src-address=192.168.1.0/24 out-interface=wlan1-gateway log=no 
      log-prefix="" 
and I need to remove the out-interface from the rule to obtain something like this:
Flags: X - disabled, I - invalid, D - dynamic 
 0    ;;; default configuration
      chain=srcnat action=masquerade to-addresses=0.0.0.0 
      src-address=192.168.1.0/24 log=no 
      log-prefix="" 
How do I suppose to do that?
I've tried many variants, like:
/ip firewall nat
	set 0 out-interface=""	
#or
	set 0 out-interface=none
#or
	set 0 out-interface=
#or even
	set 0 out-interface=nill
and many more. Nothing worked. I know it's somewhere around, but I can't find the solution either.
Can someone help me with that?
 
User avatar
9939781
Member Candidate
Member Candidate
Posts: 103
Joined: Tue Jun 14, 2011 6:42 am

Re: Don't know how to remove an interface from NAT rule

Fri Feb 13, 2015 6:08 pm

you can try unset 0 out-interface
 
User avatar
bobr
just joined
Topic Author
Posts: 14
Joined: Fri Feb 13, 2015 4:27 pm

Re: Don't know how to remove an interface from NAT rule

Mon Feb 16, 2015 9:28 am

you can try unset 0 out-interface
OMG, it worked!!11!11!1 It was that simple? I've been messing around for couple of hours and the answer was so close...
Buuut, I stil wonder, it there is another way to do that?
 
User avatar
9939781
Member Candidate
Member Candidate
Posts: 103
Joined: Tue Jun 14, 2011 6:42 am

Re: Don't know how to remove an interface from NAT rule

Mon Feb 16, 2015 11:29 am

you can try unset 0 out-interface
OMG, it worked!!11!11!1 It was that simple? I've been messing around for couple of hours and the answer was so close...
Buuut, I stil wonder, it there is another way to do that?
i don't know another way。but this way is work good :lol:

Who is online

Users browsing this forum: Mosfet and 50 guests