Commit dc68d0c0 authored by Jakob Olsson's avatar Jakob Olsson

iopsys-x86: allow dns from wan and servers

parent 65365dff
# Interface wan
nameserver 8.8.8.8
nameserver 8.8.4.4
search home
# Interface wan6
nameserver 2001:4860:4860::8888
search home
passwd -d root
# Allow HTTP access from wan for GUI
uci add firewall rule
uci set firewall.@rule[-1].name='Allow-HTTP'
uci set firewall.@rule[-1].src='wan'
......@@ -7,9 +8,22 @@ uci set firewall.@rule[-1].dest_port='80'
uci set firewall.@rule[-1].proto='tcp'
uci set firewall.@rule[-1].target='ACCEPT'
# Allow SSH access from WAN
uci add firewall rule
uci set firewall.@rule[-1].name='Allow-SSH'
uci set firewall.@rule[-1].src='wan'
uci set firewall.@rule[-1].dest_port='22'
uci set firewall.@rule[-1].proto='tcp'
uci set firewall.@rule[-1].target='ACCEPT'
# Allow DNS from WAN
uci add firewall rule
uci set firewall.@rule[-1].name='Allow-DNS-WAN'
uci set firewall.@rule[-1].src='wan'
uci set firewall.@rule[-1].dest_port='53'
uci set firewall.@rule[-1].proto='tcpudp'
uci set firewall.@rule[-1].target='ACCEPT'
uci set firewall.@rule[-1].family='any'
# As WAN side (host) will not have DHCP generating the resolvfile
uci set dhcp.@dnsmasq[0].resolvfile='/etc/resolv.conf.auto'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment