This is an old revision of the document!


Just some random stuff, not a real configuration

UCI forwarding

uci add firewall redirect
uci set firewall.@redirect[].dest=dmz_pub
uci set firewall.@redirect[].dest_ip=172.16.10.20
uci set firewall.@redirect[].dest_port=22
uci set firewall.@redirect[].enabled=1
uci set firewall.@redirect[].name=test1
uci set firewall.@redirect[].proto=tcp
uci set firewall.@redirect[].src=wan
uci set firewall.@redirect[].src_dport=2222
uci set firewall.@redirect[].target=DNAT
uci commit firewall

UCI firewalling

irewall.@rule[10]=rule
firewall.@rule[10].target='ACCEPT'
firewall.@rule[10].name='VPN'
firewall.@rule[10].src='lan'
firewall.@rule[10].src_ip='10.14.23.0/24'
firewall.@rule[10].proto='all'

config rule
        option target 'ACCEPT'
        option name 'VPN'
        option src 'lan'
        option src_ip '10.14.23.0/24'
        option proto 'all'
  • project/omnia/firewall.1491329899.txt.gz
  • Last modified: 2017/04/04 20:18
  • by embargo