Hi,
could someone with deep insight into uci firewall & networking tell me, how to translate these simple iptables rules:
iptables -t nat -A POSTROUTING -o tap0 -j MASQUERADE
iptables -A FORWARD -o tap0 -j ACCEPT
iptables -A FORWARD -i tap0 -j ACCEPT
into uci commands (using 8.09_RC1)? I tried to make something like this:
1) make an interface in /etc/config/network
config interface tap0
option ifname "tap0"
2) define a zone in /etc/config/firewall
config 'zone'
option 'name' 'tap0'
option 'input' 'ACCEPT'
option 'output' 'ACCEPT'
option 'forward' 'ACCEPT'
option 'masq' '1'
but the problem is, that the fw_addif function things, that the tap0 is down (but it is up from openvpn).
I know I could do it using "config include", but I'd like to use the clean UCI way...