OpenWrt Forum Archive

Topic: Port not open !

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

Please, how to open my port 51000 and 50000 inside router ?

Sucess open port 22 and 49000.

The port for OSCAm not open !

I try this comand !

uci add firewall rule
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=all
uci set firewall.@rule[-1].dest_port=50000-51000
uci commit firewall
/etc/init.d/firewall restart

Is possible to remove all firewall and open all my ports ?

hi

basically for NAT you have to specify a source and a target
  http://wiki.openwrt.org/doc/uci/firewall?s[]=firewall

for a range use 'port-port'
for single port use 'port'
for every single port you have to make a rule(seems comma separated doesnt work)

nano /etc/config/firewall

  config redirect
        option target 'DNAT'
        option src 'wan'
        option dest 'lan'
        option proto 'tcp udp'
        option src_dport 'port-port'
        option dest_port 'port-port'
        option name 'starcraft'
        option dest_ip 'LAN_IP'


/etc/init.d/firewall restart

The discussion might have continued from here.