OpenWrt Forum Archive

Topic: Port Forwarding working with some apps, not others.

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Installed new copy of White Russian with x-wrt on a Buffalo WHR-HP-G54.
Can't get port forwarding working 100%, just partially.

When /etc/config/firewall contains:

   forward:dport=21:192.168.0.100:21
   forward:dport=8082:192.168.0.102:8082
   forward:dport=45678:192.168.0.100:45678
   forward:dport=45679:192.168.0.102:45679

Line 1 FTP server can be accessed from the LAN but not the WAN,
Line 2 WWW server can be accessed from the LAN but not the WAN,

Line 3 uTorrent works fine, client can be seen from WAN and LAN,
Line 4 uTorrent works fine, client can be seen from WAN and LAN.

I know I'm missing something simple. Some forwards work, others do not. Any suggestions appreciated.

have the same problem i have WRRC5 and cant foward port for shit HALP ME!!!!


forward:192.168.1.168:8080
forward:192.168.1.168:8899
accept:proto=tcp dport=8899
accept:proto=udp dport=8899
forward:dport=8899:192.168.1.168:8899


iptables -L


Chain INPUT (policy DROP)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere            state INVALID
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
DROP       tcp  --  anywhere             anywhere            tcp option=!2 flags:SYN/SYN
input_rule  all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere
ACCEPT     gre  --  anywhere             anywhere
REJECT     tcp  --  anywhere             anywhere            reject-with tcp-reset
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable

Chain FORWARD (policy DROP)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere            state INVALID
TCPMSS     tcp  --  anywhere             anywhere            tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
forwarding_rule  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,ESTABLISHED
output_rule  all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
REJECT     tcp  --  anywhere             anywhere            reject-with tcp-reset
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable

Chain forward_vlan1 (1 references)
target     prot opt source               destination

Chain forwarding_rule (1 references)
target     prot opt source               destination
forward_vlan1  all  --  anywhere             anywhere
ACCEPT     tcp  --  anywhere             192.168.1.2         tcp dpt:80
ACCEPT     tcp  --  anywhere             192.168.1.2         tcp dpt:8899
ACCEPT     tcp  --  anywhere             192.168.1.168       tcp dpt:8899
ACCEPT     udp  --  anywhere             192.168.1.168       udp dpt:8899

Chain input_rule (1 references)
target     prot opt source               destination
input_vlan1  all  --  anywhere             anywhere

Chain input_vlan1 (1 references)
target     prot opt source               destination

Chain output_rule (1 references)
target     prot opt source               destination

The discussion might have continued from here.