26

(225 odpowiedzi, napisanych Oprogramowanie / Software)

root@OpenWrt:~# uci show
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].boguspriv=1
dhcp.@dnsmasq[0].localise_queries=1
dhcp.@dnsmasq[0].rebind_protection=1
dhcp.@dnsmasq[0].rebind_localhost=1
dhcp.@dnsmasq[0].local=/lan/
dhcp.@dnsmasq[0].expandhosts=1
dhcp.@dnsmasq[0].readethers=1
dhcp.@dnsmasq[0].leasefile=/tmp/dhcp.leases
dhcp.@dnsmasq[0].resolvfile=/tmp/resolv.conf.auto
dhcp.@dnsmasq[0].domain=local
dhcp.@dnsmasq[0].enable_tftp=1
dhcp.@dnsmasq[0].tftp_root=/home/netboot
dhcp.@dnsmasq[0].dhcp_boot=pxelinux.0
dhcp.@dnsmasq[0].domainneeded=1
dhcp.@dnsmasq[0].authoritative=1
dhcp.@dnsmasq[0].nonegcache=1
dhcp.lan=dhcp
dhcp.lan.interface=lan
dhcp.lan.limit=30
dhcp.lan.force=1
dhcp.lan.dhcp_option=44,192.168.1.1,192.168.2.1
dhcp.lan.leasetime=1h
dhcp.lan.start=30
dhcp.wan=dhcp
dhcp.wan.interface=wan
dhcp.wan.ignore=1
dhcp.@host[0]=host
dhcp.@host[0].mac=78:ac:c0:84:e8:28
dhcp.@host[0].ip=192.168.2.2
dhcp.@host[1]=host
dhcp.@host[1].mac=00:50:9c:2c:d6:2c
dhcp.@host[1].ip=192.168.2.51
dropbear.@dropbear[0]=dropbear
dropbear.@dropbear[0].PasswordAuth=on
dropbear.@dropbear[0].Port=22
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood=1
firewall.@defaults[0].input=ACCEPT
firewall.@defaults[0].output=ACCEPT
firewall.@defaults[0].forward=REJECT
firewall.@defaults[0].drop_invalid=1
firewall.@zone[0]=zone
firewall.@zone[0].name=lan
firewall.@zone[0].network=lan
firewall.@zone[0].input=ACCEPT
firewall.@zone[0].output=ACCEPT
firewall.@zone[0].forward=REJECT
firewall.@zone[1]=zone
firewall.@zone[1].name=wan
firewall.@zone[1].network=wan
firewall.@zone[1].input=REJECT
firewall.@zone[1].output=ACCEPT
firewall.@zone[1].forward=REJECT
firewall.@zone[1].masq=1
firewall.@zone[1].mtu_fix=1
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src=lan
firewall.@forwarding[0].dest=wan
firewall.@include[0]=include
firewall.@include[0].path=/etc/firewall.user
luci.main=core
luci.main.lang=auto
luci.main.mediaurlbase=/luci-static/openwrt.org
luci.main.resourcebase=/luci-static/resources
luci.flash_keep=extern
luci.flash_keep.uci=/etc/config/
luci.flash_keep.dropbear=/etc/dropbear/
luci.flash_keep.openvpn=/etc/openvpn/
luci.flash_keep.passwd=/etc/passwd
luci.flash_keep.opkg=/etc/opkg.conf
luci.flash_keep.firewall=/etc/firewall.user
luci.flash_keep.uploads=/lib/uci/upload/
luci.languages=internal
luci.languages.en=English
luci.sauth=internal
luci.sauth.sessionpath=/tmp/luci-sessions
luci.sauth.sessiontime=3600
luci.ccache=internal
luci.ccache.enable=1
luci.themes=internal
luci.themes.OpenWrt=/luci-static/openwrt.org
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.type=bridge
network.lan.proto=static
network.lan.netmask=255.255.255.0
network.lan.ipaddr=192.168.2.1
network.lan.dns=192.168.1.1 8.8.8.8
network.lan.ifname=eth0
network.wan=interface
network.wan.proto=dhcp
network.wan.macaddr=00:01:02:03:04:05
network.wan.ifname=wwan0
system.@system[0]=system
system.@system[0].hostname=OpenWrt
system.@system[0].timezone=UTC
system.ntp=timeserver
system.ntp.server=0.openwrt.pool.ntp.org 1.openwrt.pool.ntp.org 2.openwrt.pool.ntp.org 3.openwrt.pool.ntp.org
system.ntp.enable_server=0
ucitrack.@network[0]=network
ucitrack.@network[0].init=network
ucitrack.@network[0].affects=dhcp radvd
ucitrack.@wireless[0]=wireless
ucitrack.@wireless[0].affects=network
ucitrack.@firewall[0]=firewall
ucitrack.@firewall[0].init=firewall
ucitrack.@firewall[0].affects=luci-splash qos miniupnpd
ucitrack.@olsr[0]=olsr
ucitrack.@olsr[0].init=olsrd
ucitrack.@dhcp[0]=dhcp
ucitrack.@dhcp[0].init=dnsmasq
ucitrack.@dropbear[0]=dropbear
ucitrack.@dropbear[0].init=dropbear
ucitrack.@httpd[0]=httpd
ucitrack.@httpd[0].init=httpd
ucitrack.@fstab[0]=fstab
ucitrack.@fstab[0].init=fstab
ucitrack.@qos[0]=qos
ucitrack.@qos[0].init=qos
ucitrack.@system[0]=system
ucitrack.@system[0].init=led
ucitrack.@system[0].affects=luci_statistics
ucitrack.@luci_splash[0]=luci_splash
ucitrack.@luci_splash[0].init=luci_splash
ucitrack.@upnpd[0]=upnpd
ucitrack.@upnpd[0].init=miniupnpd
ucitrack.@ntpclient[0]=ntpclient
ucitrack.@ntpclient[0].init=ntpclient
ucitrack.@samba[0]=samba
ucitrack.@samba[0].init=samba
ucitrack.@tinyproxy[0]=tinyproxy
ucitrack.@tinyproxy[0].init=tinyproxy
uhttpd.main=uhttpd
uhttpd.main.listen_http=0.0.0.0:80
uhttpd.main.listen_https=0.0.0.0:443
uhttpd.main.home=/www
uhttpd.main.rfc1918_filter=1
uhttpd.main.max_requests=3
uhttpd.main.cert=/etc/uhttpd.crt
uhttpd.main.key=/etc/uhttpd.key
uhttpd.main.cgi_prefix=/cgi-bin
uhttpd.main.script_timeout=60
uhttpd.main.network_timeout=30
uhttpd.main.tcp_keepalive=1
uhttpd.px5g=cert
uhttpd.px5g.days=730
uhttpd.px5g.bits=1024
uhttpd.px5g.country=DE
uhttpd.px5g.state=Berlin
uhttpd.px5g.location=Berlin
uhttpd.px5g.commonname=OpenWrt
root@OpenWrt:~#

27

(225 odpowiedzi, napisanych Oprogramowanie / Software)

Jest cały czas wyłączony.

Wywalę  z konfiguracji wpisy od vpn.

28

(225 odpowiedzi, napisanych Oprogramowanie / Software)

Właśnie i ja to zauważyłem. Podmieniłem konfiguracje firewall'a i uci: Entry not found już nie wystepuje.

Nadal jest to samo.

Sam nie widzę nic dziwnego w konfiguracji.



root@OpenWrt:~# uci show
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].boguspriv=1
dhcp.@dnsmasq[0].localise_queries=1
dhcp.@dnsmasq[0].rebind_protection=1
dhcp.@dnsmasq[0].rebind_localhost=1
dhcp.@dnsmasq[0].local=/lan/
dhcp.@dnsmasq[0].expandhosts=1
dhcp.@dnsmasq[0].readethers=1
dhcp.@dnsmasq[0].leasefile=/tmp/dhcp.leases
dhcp.@dnsmasq[0].resolvfile=/tmp/resolv.conf.auto
dhcp.@dnsmasq[0].domain=local
dhcp.@dnsmasq[0].enable_tftp=1
dhcp.@dnsmasq[0].tftp_root=/home/netboot
dhcp.@dnsmasq[0].dhcp_boot=pxelinux.0
dhcp.@dnsmasq[0].domainneeded=1
dhcp.@dnsmasq[0].authoritative=1
dhcp.@dnsmasq[0].nonegcache=1
dhcp.lan=dhcp
dhcp.lan.interface=lan
dhcp.lan.limit=30
dhcp.lan.force=1
dhcp.lan.dhcp_option=44,192.168.1.1,192.168.2.1
dhcp.lan.leasetime=1h
dhcp.lan.start=30
dhcp.wan=dhcp
dhcp.wan.interface=wan
dhcp.wan.ignore=1
dhcp.wan2=dhcp
dhcp.wan2.interface=wan2
dhcp.wan2.ignore=1
dhcp.vpn=dhcp
dhcp.vpn.interface=openvpn_tun0
dhcp.vpn.ignore=1
dhcp.@host[0]=host
dhcp.@host[0].mac=78:ac:c0:84:e8:28
dhcp.@host[0].ip=192.168.2.2
dhcp.@host[1]=host
dhcp.@host[1].mac=00:50:9c:2c:d6:2c
dhcp.@host[1].ip=192.168.2.51
dropbear.@dropbear[0]=dropbear
dropbear.@dropbear[0].PasswordAuth=on
dropbear.@dropbear[0].Port=22
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood=1
firewall.@defaults[0].input=ACCEPT
firewall.@defaults[0].output=ACCEPT
firewall.@defaults[0].forward=REJECT
firewall.@defaults[0].drop_invalid=1
firewall.@zone[0]=zone
firewall.@zone[0].name=lan
firewall.@zone[0].network=lan
firewall.@zone[0].input=ACCEPT
firewall.@zone[0].output=ACCEPT
firewall.@zone[0].forward=REJECT
firewall.@zone[1]=zone
firewall.@zone[1].name=wan
firewall.@zone[1].network=wan
firewall.@zone[1].input=REJECT
firewall.@zone[1].output=ACCEPT
firewall.@zone[1].forward=REJECT
firewall.@zone[1].masq=1
firewall.@zone[1].mtu_fix=1
firewall.@zone[2]=zone
firewall.@zone[2].name=vpn
firewall.@zone[2].network=vpn
firewall.@zone[2].output=ACCEPT
firewall.@zone[2].input=ACCEPT
firewall.@zone[2].forward=ACCEPT
firewall.@zone[2].mtu_fix=1
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src=lan
firewall.@forwarding[0].dest=wan
firewall.@forwarding[1]=forwarding
firewall.@forwarding[1].src=lan
firewall.@forwarding[1].dest=vpn
firewall.@forwarding[2]=forwarding
firewall.@forwarding[2].src=vpn
firewall.@forwarding[2].dest=lan
firewall.@include[0]=include
firewall.@include[0].path=/etc/firewall.user
luci.main=core
luci.main.lang=auto
luci.main.mediaurlbase=/luci-static/openwrt.org
luci.main.resourcebase=/luci-static/resources
luci.flash_keep=extern
luci.flash_keep.uci=/etc/config/
luci.flash_keep.dropbear=/etc/dropbear/
luci.flash_keep.openvpn=/etc/openvpn/
luci.flash_keep.passwd=/etc/passwd
luci.flash_keep.opkg=/etc/opkg.conf
luci.flash_keep.firewall=/etc/firewall.user
luci.flash_keep.uploads=/lib/uci/upload/
luci.languages=internal
luci.languages.en=English
luci.sauth=internal
luci.sauth.sessionpath=/tmp/luci-sessions
luci.sauth.sessiontime=3600
luci.ccache=internal
luci.ccache.enable=1
luci.themes=internal
luci.themes.OpenWrt=/luci-static/openwrt.org
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.type=bridge
network.lan.proto=static
network.lan.netmask=255.255.255.0
network.lan.ipaddr=192.168.2.1
network.lan.dns=192.168.1.1 8.8.8.8
network.lan.ifname=eth0
network.wan=interface
network.wan.proto=dhcp
network.wan.macaddr=00:01:02:03:04:05
network.wan.ifname=wwan0
openvpn.Client_OpenVPN=openvpn
openvpn.Client_OpenVPN.enable=1
openvpn.Client_OpenVPN.port=1194
openvpn.Client_OpenVPN.proto=tcp-client
openvpn.Client_OpenVPN.dev=tun0
openvpn.Client_OpenVPN.remote=85.222.8.72
openvpn.Client_OpenVPN.ca=/etc/openvpn/certyfikat_rootca.pem
openvpn.Client_OpenVPN.cert=/etc/openvpn/certyfikat_terminal.pem
openvpn.Client_OpenVPN.key=/etc/openvpn/klucz_terminal.pem
openvpn.Client_OpenVPN.persist_key=1
openvpn.Client_OpenVPN.persist_tun=1
openvpn.Client_OpenVPN.comp_lzo=1
openvpn.Client_OpenVPN.verb=3
openvpn.Client_OpenVPN.tls_client=1
openvpn.Client_OpenVPN.keepalive=10 120
openvpn.Client_OpenVPN.tun_mtu=1500
openvpn.Client_OpenVPN.inactive=3600
openvpn.Client_OpenVPN.pull=1
openvpn.Client_OpenVPN.nobind=1
openvpn.Client_OpenVPN.connect_retry=10
openvpn.Client_OpenVPN.resolv_retry=infinite
openvpn.Client_OpenVPN.mute_replay_warnings=1
openvpn.Client_OpenVPN.auth_nocache=1
system.@system[0]=system
system.@system[0].hostname=OpenWrt
system.@system[0].timezone=UTC
system.ntp=timeserver
system.ntp.server=0.openwrt.pool.ntp.org 1.openwrt.pool.ntp.org 2.openwrt.pool.ntp.org 3.openwrt.pool.ntp.org
system.ntp.enable_server=0
ucitrack.@network[0]=network
ucitrack.@network[0].init=network
ucitrack.@network[0].affects=dhcp radvd
ucitrack.@wireless[0]=wireless
ucitrack.@wireless[0].affects=network
ucitrack.@firewall[0]=firewall
ucitrack.@firewall[0].init=firewall
ucitrack.@firewall[0].affects=luci-splash qos miniupnpd
ucitrack.@olsr[0]=olsr
ucitrack.@olsr[0].init=olsrd
ucitrack.@dhcp[0]=dhcp
ucitrack.@dhcp[0].init=dnsmasq
ucitrack.@dropbear[0]=dropbear
ucitrack.@dropbear[0].init=dropbear
ucitrack.@httpd[0]=httpd
ucitrack.@httpd[0].init=httpd
ucitrack.@fstab[0]=fstab
ucitrack.@fstab[0].init=fstab
ucitrack.@qos[0]=qos
ucitrack.@qos[0].init=qos
ucitrack.@system[0]=system
ucitrack.@system[0].init=led
ucitrack.@system[0].affects=luci_statistics
ucitrack.@luci_splash[0]=luci_splash
ucitrack.@luci_splash[0].init=luci_splash
ucitrack.@upnpd[0]=upnpd
ucitrack.@upnpd[0].init=miniupnpd
ucitrack.@ntpclient[0]=ntpclient
ucitrack.@ntpclient[0].init=ntpclient
ucitrack.@samba[0]=samba
ucitrack.@samba[0].init=samba
ucitrack.@tinyproxy[0]=tinyproxy
ucitrack.@tinyproxy[0].init=tinyproxy
uhttpd.main=uhttpd
uhttpd.main.listen_http=0.0.0.0:80
uhttpd.main.listen_https=0.0.0.0:443
uhttpd.main.home=/www
uhttpd.main.rfc1918_filter=1
uhttpd.main.max_requests=3
uhttpd.main.cert=/etc/uhttpd.crt
uhttpd.main.key=/etc/uhttpd.key
uhttpd.main.cgi_prefix=/cgi-bin
uhttpd.main.script_timeout=60
uhttpd.main.network_timeout=30
uhttpd.main.tcp_keepalive=1
uhttpd.px5g=cert
uhttpd.px5g.days=730
uhttpd.px5g.bits=1024
uhttpd.px5g.country=DE
uhttpd.px5g.state=Berlin
uhttpd.px5g.location=Berlin
uhttpd.px5g.commonname=OpenWrt

29

(225 odpowiedzi, napisanych Oprogramowanie / Software)

root@OpenWrt:~# uci show
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded=1
dhcp.@dnsmasq[0].boguspriv=1
dhcp.@dnsmasq[0].filterwin2k=0
dhcp.@dnsmasq[0].localise_queries=1
dhcp.@dnsmasq[0].rebind_protection=1
dhcp.@dnsmasq[0].rebind_localhost=1
dhcp.@dnsmasq[0].local=/lan/
dhcp.@dnsmasq[0].domain=lan
dhcp.@dnsmasq[0].expandhosts=1
dhcp.@dnsmasq[0].nonegcache=0
dhcp.@dnsmasq[0].authoritative=1
dhcp.@dnsmasq[0].readethers=1
dhcp.@dnsmasq[0].leasefile=/tmp/dhcp.leases
dhcp.@dnsmasq[0].resolvfile=/tmp/resolv.conf.auto
dhcp.@dnsmasq[0].interface=br-lan
dhcp.lan=dhcp
dhcp.lan.interface=lan
dhcp.lan.start=100
dhcp.lan.limit=150
dhcp.lan.leasetime=12h
dhcp.wan=dhcp
dhcp.wan.interface=wan
dhcp.wan.ignore=1
dropbear.@dropbear[0]=dropbear
dropbear.@dropbear[0].PasswordAuth=on
dropbear.@dropbear[0].RootPasswordAuth=on
dropbear.@dropbear[0].Port=22
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood=1
firewall.@defaults[0].input=ACCEPT
firewall.@defaults[0].output=ACCEPT
firewall.@defaults[0].forward=REJECT
firewall.@defaults[0].drop_invalid=0
firewall.@zone[0]=zone
firewall.@zone[0].name=lan
firewall.@zone[0].network=lan
firewall.@zone[0].input=ACCEPT
firewall.@zone[0].output=ACCEPT
firewall.@zone[0].forward=REJECT
firewall.@zone[1]=zone
firewall.@zone[1].name=wan
firewall.@zone[1].network=wan
firewall.@zone[1].input=REJECT
firewall.@zone[1].output=ACCEPT
firewall.@zone[1].forward=REJECT
firewall.@zone[1].masq=1
firewall.@zone[1].mtu_fix=1
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src=lan
firewall.@forwarding[0].dest=wan
uci: Entry not found
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood=1
firewall.@defaults[0].input=ACCEPT
firewall.@defaults[0].output=ACCEPT
firewall.@defaults[0].forward=REJECT
firewall.@defaults[0].drop_invalid=0
firewall.@zone[0]=zone
firewall.@zone[0].name=lan
firewall.@zone[0].network=lan
firewall.@zone[0].input=ACCEPT
firewall.@zone[0].output=ACCEPT
firewall.@zone[0].forward=REJECT
firewall.@zone[1]=zone
firewall.@zone[1].name=wan
firewall.@zone[1].network=wan
firewall.@zone[1].input=REJECT
firewall.@zone[1].output=ACCEPT
firewall.@zone[1].forward=REJECT
firewall.@zone[1].masq=1
firewall.@zone[1].mtu_fix=1
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src=lan
firewall.@forwarding[0].dest=wan
luci.main=core
luci.main.lang=auto
luci.main.mediaurlbase=/luci-static/openwrt.org
luci.main.resourcebase=/luci-static/resources
luci.flash_keep=extern
luci.flash_keep.uci=/etc/config/
luci.flash_keep.dropbear=/etc/dropbear/
luci.flash_keep.openvpn=/etc/openvpn/
luci.flash_keep.passwd=/etc/passwd
luci.flash_keep.opkg=/etc/opkg.conf
luci.flash_keep.firewall=/etc/firewall.user
luci.flash_keep.uploads=/lib/uci/upload/
luci.languages=internal
luci.languages.en=English
luci.sauth=internal
luci.sauth.sessionpath=/tmp/luci-sessions
luci.sauth.sessiontime=3600
luci.ccache=internal
luci.ccache.enable=1
luci.themes=internal
luci.themes.OpenWrt=/luci-static/openwrt.org
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.type=bridge
network.lan.proto=static
network.lan.netmask=255.255.255.0
network.lan.ipaddr=192.168.2.1
network.lan.dns=192.168.1.1 8.8.8.8
network.lan.ifname=eth0
network.wan=interface
network.wan.proto=dhcp
network.wan.macaddr=00:01:02:03:04:05
network.wan.ifname=wwan0
openvpn.custom_config=openvpn
openvpn.custom_config.enabled=0
openvpn.custom_config.config=/etc/openvpn/my-vpn.conf
openvpn.sample_server=openvpn
openvpn.sample_server.enabled=0
openvpn.sample_server.port=1194
openvpn.sample_server.proto=udp
openvpn.sample_server.dev=tun
openvpn.sample_server.ca=/etc/openvpn/ca.crt
openvpn.sample_server.cert=/etc/openvpn/server.crt
openvpn.sample_server.key=/etc/openvpn/server.key
openvpn.sample_server.dh=/etc/openvpn/dh1024.pem
openvpn.sample_server.server=10.8.0.0 255.255.255.0
openvpn.sample_server.ifconfig_pool_persist=/tmp/ipp.txt
openvpn.sample_server.keepalive=10 120
openvpn.sample_server.comp_lzo=1
openvpn.sample_server.persist_key=1
openvpn.sample_server.persist_tun=1
openvpn.sample_server.status=/tmp/openvpn-status.log
openvpn.sample_server.verb=3
openvpn.sample_client=openvpn
openvpn.sample_client.enabled=0
openvpn.sample_client.client=1
openvpn.sample_client.dev=tun
openvpn.sample_client.proto=udp
openvpn.sample_client.remote=my_server_1 1194
openvpn.sample_client.resolv_retry=infinite
openvpn.sample_client.nobind=1
openvpn.sample_client.persist_key=1
openvpn.sample_client.persist_tun=1
openvpn.sample_client.ca=/etc/openvpn/ca.crt
openvpn.sample_client.cert=/etc/openvpn/client.crt
openvpn.sample_client.key=/etc/openvpn/client.key
openvpn.sample_client.comp_lzo=1
openvpn.sample_client.verb=3
system.@system[0]=system
system.@system[0].hostname=OpenWrt
system.@system[0].timezone=UTC
system.ntp=timeserver
system.ntp.server=0.openwrt.pool.ntp.org 1.openwrt.pool.ntp.org 2.openwrt.pool.ntp.org 3.openwrt.pool.ntp.org
system.ntp.enable_server=0
ucitrack.@network[0]=network
ucitrack.@network[0].init=network
ucitrack.@network[0].affects=dhcp radvd
ucitrack.@wireless[0]=wireless
ucitrack.@wireless[0].affects=network
ucitrack.@firewall[0]=firewall
ucitrack.@firewall[0].init=firewall
ucitrack.@firewall[0].affects=luci-splash qos miniupnpd
ucitrack.@olsr[0]=olsr
ucitrack.@olsr[0].init=olsrd
ucitrack.@dhcp[0]=dhcp
ucitrack.@dhcp[0].init=dnsmasq
ucitrack.@dropbear[0]=dropbear
ucitrack.@dropbear[0].init=dropbear
ucitrack.@httpd[0]=httpd
ucitrack.@httpd[0].init=httpd
ucitrack.@fstab[0]=fstab
ucitrack.@fstab[0].init=fstab
ucitrack.@qos[0]=qos
ucitrack.@qos[0].init=qos
ucitrack.@system[0]=system
ucitrack.@system[0].init=led
ucitrack.@system[0].affects=luci_statistics
ucitrack.@luci_splash[0]=luci_splash
ucitrack.@luci_splash[0].init=luci_splash
ucitrack.@upnpd[0]=upnpd
ucitrack.@upnpd[0].init=miniupnpd
ucitrack.@ntpclient[0]=ntpclient
ucitrack.@ntpclient[0].init=ntpclient
ucitrack.@samba[0]=samba
ucitrack.@samba[0].init=samba
ucitrack.@tinyproxy[0]=tinyproxy
ucitrack.@tinyproxy[0].init=tinyproxy
uhttpd.main=uhttpd
uhttpd.main.listen_http=0.0.0.0:80
uhttpd.main.listen_https=0.0.0.0:443
uhttpd.main.home=/www
uhttpd.main.rfc1918_filter=1
uhttpd.main.max_requests=3
uhttpd.main.cert=/etc/uhttpd.crt
uhttpd.main.key=/etc/uhttpd.key
uhttpd.main.cgi_prefix=/cgi-bin
uhttpd.main.script_timeout=60
uhttpd.main.network_timeout=30
uhttpd.main.tcp_keepalive=1
uhttpd.px5g=cert
uhttpd.px5g.days=730
uhttpd.px5g.bits=1024
uhttpd.px5g.country=DE
uhttpd.px5g.state=Berlin
uhttpd.px5g.location=Berlin
uhttpd.px5g.commonname=OpenWrt
root@OpenWrt:~#

30

(225 odpowiedzi, napisanych Oprogramowanie / Software)

Z terminalu spokojnie mogę wykonać ping, zaktualizować repozytorium, - wszystko.

Nawet połączenie terminala prosto z komputerem daje identyczny efekt.


Nie wiem gdzie mam szukać problemu.

31

(225 odpowiedzi, napisanych Oprogramowanie / Software)

Mam nadal problem...

C:\Users\Iga>ping google.pl

Badanie google.pl [173.194.39.183] z 32 bajtami danych:
Odpowiedź z 192.168.2.1: Port docelowy jest nieosiągalny.
Odpowiedź z 192.168.2.1: Port docelowy jest nieosiągalny.
Odpowiedź z 192.168.2.1: Port docelowy jest nieosiągalny.
Odpowiedź z 192.168.2.1: Port docelowy jest nieosiągalny.

Statystyka badania ping dla 173.194.39.183:
    Pakiety: Wysłane = 4, Odebrane = 4, Utracone = 0
             (0% straty),

Wysyłam ping z komputera w sieci na google.pl a odpowiedź jest taka, jak by firewall blokował.


config 'defaults'
        option 'syn_flood' '1'
        option 'input' 'ACCEPT'
        option 'output' 'ACCEPT'
        option 'forward' 'REJECT'
        option 'drop_invalid' '0'

config 'zone'
        option 'name' 'lan'
        option 'network' 'lan'
        option 'input' 'ACCEPT'
        option 'output' 'ACCEPT'
        option 'forward' 'REJECT'

config 'zone'
        option 'name' 'wan'
        option 'network' 'wan'
        option 'input' 'REJECT'
        option 'output' 'ACCEPT'
        option 'forward' 'REJECT'
        option 'masq' '1'
        option 'mtu_fix' '1'


Może jest jakiś błąd w konfiguracji firewall którego ja nie widzę ?


A jak wyłączę firewall, wtedy nie mam możliwości wysłać ping.

root@OpenWrt:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         93.154.255.89   0.0.0.0         UG    0      0        0 wwan0
93.154.255.88   0.0.0.0         255.255.255.252 U     0      0        0 wwan0
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan

32

(18 odpowiedzi, napisanych Oprogramowanie / Software)

oczywiście że się da skonfigurowac.

potrzebujesz konfiguracji vpn z wzajemnym ratowaniem pakietów.


jak uporem się ze swoim dostępem do netu, zamieszczę dla Ciebie konfiguracji.

z telefonu jest to trochę niewygodne.


P.S. Tylko napisz jaki masz telefon z jakim androidem i czy ma root'a

33

(225 odpowiedzi, napisanych Oprogramowanie / Software)

Jan  2 15:10:14 OpenWrt kern.info kernel: [  169.433899] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Jan  2 15:10:14 OpenWrt kern.info kernel: [  169.457993] option 1-3:1.0: device disconnected
Jan  2 15:10:14 OpenWrt kern.info kernel: [  169.471824] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Jan  2 15:10:14 OpenWrt kern.info kernel: [  169.495911] option 1-3:1.1: device disconnected
Jan  2 15:10:14 OpenWrt kern.info kernel: [  169.509745] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Jan  2 15:10:14 OpenWrt kern.info kernel: [  169.533837] option 1-3:1.2: device disconnected
Jan  2 15:10:14 OpenWrt kern.info kernel: [  169.547780] qmi_wwan 1-3:1.4: wwan0: unregister 'qmi_wwan' usb-0000:00:10.3-3, QMI speaking wwan device
Jan  2 15:10:20 OpenWrt kern.info kernel: [  175.714941] usb 1-3: new high-speed USB device number 6 using ehci_hcd
Jan  2 15:10:20 OpenWrt kern.info kernel: [  175.895109] scsi7 : usb-storage 1-3:1.0
Jan  2 15:10:20 OpenWrt kern.info kernel: [  175.913771] scsi8 : usb-storage 1-3:1.1
Jan  2 15:10:20 OpenWrt user.notice usb-modeswitch: 1-3:1.0: Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Jan  2 15:10:20 OpenWrt user.notice usb-modeswitch: 1-3:1.0: Selecting /etc/usb_modeswitch.d/12d1:1505 for mode switching
Jan  2 15:10:20 OpenWrt syslog.notice usb_modeswitch: switching device 12d1:1505 on 001/006
Jan  2 15:10:20 OpenWrt kern.info kernel: [  176.061220] usb 1-3: USB disconnect, device number 6
Jan  2 15:10:23 OpenWrt daemon.warn dnsmasq-dhcp[1194]: no address range available for DHCP request via br-lan
Jan  2 15:10:28 OpenWrt kern.info kernel: [  184.384868] usb 1-3: new high-speed USB device number 7 using ehci_hcd
Jan  2 15:10:29 OpenWrt kern.info kernel: [  184.559726] option 1-3:1.0: GSM modem (1-port) converter detected
Jan  2 15:10:29 OpenWrt kern.info kernel: [  184.578326] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB0
Jan  2 15:10:29 OpenWrt kern.info kernel: [  184.599137] option 1-3:1.1: GSM modem (1-port) converter detected
Jan  2 15:10:29 OpenWrt kern.info kernel: [  184.617623] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB1
Jan  2 15:10:29 OpenWrt kern.info kernel: [  184.638294] option 1-3:1.2: GSM modem (1-port) converter detected
Jan  2 15:10:29 OpenWrt kern.info kernel: [  184.656762] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB2
Jan  2 15:10:29 OpenWrt kern.err kernel: [  184.677390] cdc_wdm 1-3:1.3: Ignoring extra header, type 15, length 13
Jan  2 15:10:29 OpenWrt kern.err kernel: [  184.697833] cdc_wdm 1-3:1.3: Ignoring extra header, type 6, length 5
Jan  2 15:10:29 OpenWrt kern.info kernel: [  184.717047] cdc_wdm 1-3:1.3: cdc-wdm0: USB WDM device
Jan  2 15:10:29 OpenWrt kern.info kernel: [  184.737328] qmi_wwan 1-3:1.4: Use "cdc_wdm" for QMI interface 1-3:1.3
Jan  2 15:10:29 OpenWrt kern.info kernel: [  184.758915] qmi_wwan 1-3:1.4: wwan0: register 'qmi_wwan' at usb-0000:00:10.3-3, QMI speaking wwan device, 00:a0:c6:00:00:00
Jan  2 15:10:29 OpenWrt kern.info kernel: [  184.795102] scsi9 : usb-storage 1-3:1.5
Jan  2 15:10:29 OpenWrt kern.info kernel: [  184.822142] scsi10 : usb-storage 1-3:1.6
Jan  2 15:10:30 OpenWrt kern.notice kernel: [  185.806254] scsi 9:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 0
Jan  2 15:10:30 OpenWrt kern.notice kernel: [  185.836229] scsi 10:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Jan  2 15:10:30 OpenWrt kern.notice kernel: [  185.865421] sd 10:0:0:0: [sdb] Attached SCSI removable disk
Jan  2 15:10:51 OpenWrt user.notice usb-modeswitch: 1-3:1.1: Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Jan  2 15:10:52 OpenWrt user.notice usb-modeswitch: 1-3:1.0: Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Jan  2 15:10:52 OpenWrt user.notice usb-modeswitch: 1-3:1.1: Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Jan  2 15:10:52 OpenWrt user.notice usb-modeswitch: 1-3:1.2: Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Jan  2 15:10:52 OpenWrt user.notice usb-modeswitch: 1-3:1.3: Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Jan  2 15:10:53 OpenWrt user.notice usb-modeswitch: 1-3:1.4: Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Jan  2 15:10:53 OpenWrt user.notice usb-modeswitch: 1-3:1.5: Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Jan  2 15:10:53 OpenWrt user.notice usb-modeswitch: 1-3:1.6: Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Jan  2 15:14:25 OpenWrt authpriv.info dropbear[1711]: Exit before auth: Timeout before auth

A tak wygląd sekcja wan w network

config interface wan
        option auto     0
        option proto    dhcp
        option ifname   cdc-wdm0
        option macaddr  00:01:02:03:04:05


Za pomocą komendy AT jestem w stanie połączyć modem z operatorem - widzę po kontrolce na nim, że jest połączony - świeci się światłem ciągłym ale po kilku minutach gaśnie, zrywając połaczenie.

Wydanie polecenia ifup wan również nie skutkuje.


Rozumiem że nawet bez wpisu do firewall interfejs wan powinien się podnieść ? Bo chwilowo nie mam nic dopisane.


EDIT:


Mam postępy.


Poprawiłem nazwę interfejsu cdc-wdm0 na wwan0

config interface wan
        option auto     0
        option proto    dhcp
        option ifname   wwan0
        option macaddr  00:01:02:03:04:05

Zdawało mi się że cdc-wdm0 jest poprawnym interfejsem.


Udało mi się podnieść interfejs wwan0 - ale jeszcze nie otrzymuje adresu ip ad operatora.


EDIT:

Kolejny postęp:



Podnoszę połączenie poleceniem: at^ndisdup=1,1,"internet.cp"
Następnie podnoszę interfejs wan: ifup wan
Następnie wysyłam żądanie adresu ip: udhcpc -i wwan0 -C -B

wwan0     Link encap:Ethernet  HWaddr 00:01:02:03:04:05
          inet addr:93.154.251.119  Bcast:93.154.251.127  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:43 errors:0 dropped:0 overruns:0 frame:0
          TX packets:475 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4834 (4.7 KiB)  TX bytes:180154 (175.9 KiB)

Otrzymuje adres ip i jestem w stanie wysłać ping na adres dns google

root@OpenWrt:~# ping google.pl
ping: bad address 'google.pl'
root@OpenWrt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=44 time=41.957 ms
64 bytes from 8.8.8.8: seq=1 ttl=44 time=36.101 ms
64 bytes from 8.8.8.8: seq=2 ttl=44 time=37.176 ms
64 bytes from 8.8.8.8: seq=3 ttl=44 time=36.128 ms
64 bytes from 8.8.8.8: seq=4 ttl=44 time=36.084 ms
^C

Dopisanie adresów dns do /etc/config/network nie dało mi rezultatu......


Kolejny postęp:

Dodanie adresu DNS Cyfrowego Polsatu  (79.163.127.70) przyniosło skutek.

Jestem  w stanie wysłać ping na www.google.pl


Jeszcze nie wiem dla czego, ale firewall blokuje mi internet na komputerach w sieci.

Dodałem do firewall standardowe zapisy.

config 'zone'
        option 'name' 'wan'
        option 'network' 'wan'
        option 'input' 'REJECT'
        option 'output' 'ACCEPT'
        option 'forward' 'REJECT'
        option 'masq' '1'
        option 'mtu_fix' '1'

config 'forwarding'
        option 'src' 'lan'
        option 'dest' 'wan'

Jakieś sugestie ?

34

(225 odpowiedzi, napisanych Oprogramowanie / Software)

Dziwi mnie że nie mam informacji w logach co się dzieje z połączeniem.

35

(225 odpowiedzi, napisanych Oprogramowanie / Software)

Dzięki pomocy Obsy i Arteq udąło mi się poprawnie skompilowac sterownik Ndis dla modemu Huawei E398.

Wczoraj poświęciłem trochę czasu na testy i jak na razie wynik mnie zadowala, ale nie do końca.


Modem jest poprawnie wykrywany, za pomocą picocom jestem w stanie wysłać komendę AT do zestawienia połączenia.

Jak na razie nie udało mi się podnieść interfejsu wan.


Wieczorem poświęcę na to więcej czasu i postaram się podzielić informacjami.