Hi, all my port forwardings just stopped working, and I can't figure out why. here are my firewall rules:
I configured everything in /etc/config/firewall
accept:proto=tcp dport=45208
forward:proto=tcp dport=45208:192.168.1.10:80
forward:proto=tcp dport=5504:192.168.1.4:5500
forward:proto=tcp dport=5505:192.168.1.5:5500
forward:proto=tcp dport=5506:192.168.1.6:5500
forward:proto=tcp dport=5508:192.168.1.8:5500
forward:proto=tcp dport=5509:192.168.1.9:5500
forward:proto=tcp dport=5511:192.168.1.11:5511
forward:proto=tcp dport=5960:192.168.1.3:3389
forward:proto=tcp dport=8085:192.168.1.3:80
And here are my iptables output:
root@OpenWrt:/etc/init.d# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
root@OpenWrt:/etc/init.d# /etc/init.d/firewall start
root@OpenWrt:/etc/init.d# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
ACCEPT all -- anywhere anywhere state RELATED,ESTAB LISHED
DROP tcp -- anywhere anywhere tcp option=!2 flags :SYN/SYN
input_rule all -- anywhere anywhere
input_wan all -- anywhere anywhere
LAN_ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere
ACCEPT gre -- anywhere anywhere
REJECT tcp -- anywhere anywhere reject-with tcp-res et
REJECT all -- anywhere anywhere reject-with icmp-po rt-unreachable
Chain FORWARD (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/S YN TCPMSS clamp to PMTU
ACCEPT all -- anywhere anywhere state RELATED,ESTAB LISHED
forwarding_rule all -- anywhere anywhere
forwarding_wan all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
ACCEPT all -- anywhere anywhere state RELATED,ESTAB LISHED
output_rule all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere reject-with tcp-res et
REJECT all -- anywhere anywhere reject-with icmp-po rt-unreachable
Chain LAN_ACCEPT (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain forwarding_rule (1 references)
target prot opt source destination
Chain forwarding_wan (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere ubuntu tcp dpt:80
ACCEPT tcp -- anywhere 192.168.1.4 tcp dpt:5500
ACCEPT tcp -- anywhere 192.168.1.5 tcp dpt:5500
ACCEPT tcp -- anywhere 192.168.1.6 tcp dpt:5500
ACCEPT tcp -- anywhere 192.168.1.8 tcp dpt:5500
ACCEPT tcp -- anywhere 192.168.1.9 tcp dpt:5500
ACCEPT tcp -- anywhere 192.168.1.11 tcp dpt:5511
ACCEPT tcp -- anywhere 192.168.1.3 tcp dpt:3389
ACCEPT tcp -- anywhere 192.168.1.3 tcp dpt:80
Chain input_rule (1 references)
target prot opt source destination
Chain input_wan (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere multiport dports 45 208
Chain output_rule (1 references)
target prot opt source destination
Any ideas?