The default set-up was working but somehow while editing /etc/config/firewall or via web interface I caused my router to stop allowing access to the internet from the lan side. I was trying to allow access to ssh and the web interface of the router from wan side.
What I can do:
I can access the internet from the router
I can ssh into router from wan and lan
But I cannot access the internet from the lan - I tried more than one PC.
I'm using openwrt backfire (rc24038), so is there a way I can reset the iptables to the default? Or can I do a general reset to reset everything to the default.
Thanks,
Jim
Disclaimer: I'm new to openwrt and have no clue about iptables
# cat /etc/config/firewall
config 'defaults'
option 'syn_flood' '1'
option 'input' 'ACCEPT'
option 'output' 'ACCEPT'
option 'forward' 'REJECT'
config 'zone'
option 'name' 'lan'
option 'input' 'ACCEPT'
option 'output' 'ACCEPT'
option 'forward' 'REJECT'
config 'zone'
option 'name' 'wan'
option 'input' 'REJECT'
option 'output' 'ACCEPT'
option 'forward' 'REJECT'
option 'masq' '1'
option 'mtu_fix' '1'
config 'forwarding'
option 'mtu_fix' '0'
option 'src' 'wan'
option 'dest' 'lan'
config 'rule'
option 'src' 'wan'
option 'proto' 'udp'
option 'dest_port' '68'
option 'target' 'ACCEPT'
config 'rule'
option 'src' 'wan'
option 'proto' 'icmp'
option 'icmp_type' 'echo-request'
option 'target' 'ACCEPT'
config 'include'
option 'path' '/etc/firewall.user'
config 'rule'
option 'target' 'ACCEPT'
option '_name' 'ssh'
option 'src' 'wan'
option 'proto' 'tcp'
option 'dest_port' '22'cat /etc/firewall.user
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.