Temat: LEDE 17 SNAPSHOT LUCI dostęp poprzez WAN
OK, zgodnie z sugestią tgworzę nowy temat.
Próbuję dostać sie do routera z LEDE kompa z pracy i nijak mi to sie nie udaje.
Wpisując adres routera ( stały ip ) i port, który zmieniłęm dla luci albo dostaję błąd ssl ( https ) albo zgłasza się mój nas ( http ).
Zdecydowanie coś jest nie tak.
Tu jest konfig uhttpd:
config uhttpd 'main'
list listen_http '0.0.0.0:8019'
list listen_http '[::]:8019'
list listen_https '0.0.0.0:8091'
list listen_https '[::]:8091'
option redirect_https '1'
option home '/www'
option rfc1918_filter '1'
option max_requests '3'
option max_connections '100'
option cert '/etc/uhttpd.crt'
option key '/etc/uhttpd.key'
option cgi_prefix '/cgi-bin'
option script_timeout '60'
option network_timeout '30'
option http_keepalive '20'
option tcp_keepalive '1'
option ubus_prefix '/ubus'
config cert 'defaults'
option days '730'
option bits '2048'
option country 'ZZ'
option state 'Somewhere'
option location 'Unknown'
option commonname 'LEDE'
Tu jest mój firewall:
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option src_ip 'fc00::/6'
option dest_ip 'fc00::/6'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'fe80::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-advertisement'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config include
option path '/etc/firewall.user'
config rule
option src 'wan'
option dest 'lan'
option proto 'esp'
option target 'ACCEPT'
config rule
option src 'wan'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option proto 'tcpudp'
option src_dport '26'
option dest_ip '192.168.0.7'
option dest_port '26'
option name 'ssh_qnap'
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option src_dport '1194'
option dest_ip '192.168.0.2'
option dest_port '1194'
option name 'openvpn'
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option proto 'tcpudp'
option src_dport '9'
option dest_ip '192.168.0.7'
option dest_port '9'
option name 'wol'
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option proto 'udp'
option src_dport '7'
option dest_ip '192.168.0.7'
option dest_port '7'
option name 'wol1'
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option proto 'tcpudp'
option dest_ip '192.168.0.7'
option dest_port '5001'
option name 'kanapa_gui'
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option proto 'tcpudp'
option dest_ip '192.168.0.7'
option dest_port '5002'
option name 'kanapa_gui2'
config rule
option name 'luci1'
option src 'wan'
option target 'ACCEPT'
option proto 'tcpudp'
option dest_port '8019'
config rule
option name 'luci2'
option src 'wan'
option target 'ACCEPT'
option proto 'tcpudp'
option dest_port '8091'
Jak widać, NIE przekierowałem portu 8091 na mojego nasa a jednak sie zgłasza po http, https nie działa.
Coś jest nie tak, po lanie w domu mogłem się dostać do luci na nowych portach ( http i https ), poprzez WAN nie mogę za chiny ![]()
Reboot nie pomógł.