Page 1 of 1

Mikrotik firewall rules to iptables rules.

Posted: Mon Nov 23, 2015 11:50 am
by Etz
Can someone help me to translate this to standard iptable rule?
add action=masquerade chain=srcnat dst-address=10.0.0.0/8 out-interface=eth0.4

Re: Mikrotik firewall rules to iptables rules.

Posted: Mon Nov 23, 2015 12:12 pm
by vixxant
check the following code
iptables -t nat -A POSTROUTING -o eth0.4 -d 10.0.0.0/8 -j MASQUERADE

Re: Mikrotik firewall rules to iptables rules.

Posted: Mon Nov 23, 2015 12:25 pm
by Etz
Yep, came onto it myself but I did not work, as I made typo in it :lol:

Anyway, thx for the sanity check :)