1

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Dzięki za odpowiedź Cezary.

Postaram się to przetestować .

Na pewno będę miał jeszcze pytania.

Pozdrawiam.

2

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Czyli się nie da?

Inna pula adresowa wyklucza dostęp do sieci firmowej, podłączonych drukarek sieciowych czy chociażby monitoringu.

3

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Dzięki za odpowiedź.

To rozumiem, ale jak zrobić żeby Komputery pobierały adres IP z Głównego Routera (z puli 192.168.10.x) .

W jaki sposób podłączyć oba Routery.

4

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Witam.

Ostatnio spotkałem się z następującym problemem.

Rysunek poglądowy :                         /----------->Komputer 2
                                                     /
Router główny  -----------> Router 2  -------------> Komputer 1
192.168.10.x             192.168.50.x   \
                                                       \----------> Komputer 3

Z Routera Głównego biegnie tylko jeden kabel ehternetowy(LAN) do podłączenia do internetu oraz sieci lokalnej jakiegoś urządzenia, więc w tej chwili mogę podłączyć tylko jedno urządzenie, nie mam również możliwości pociągnięcia drugiego kabla.
W związku z rozbudową sieci potrzebuję podłączyć dwa komputery(docelowo nawet pięć) do sieci firmowej, oraz żeby miały dostęp do internetu.

Tutaj przyszedł mi do głowy pomysł z użycia Drugiego routera, do którego portów LAN będę mógł podłączyć więcej sprzętu.

Zasada jest taka, żeby Komputer 1,2 i 3 dostawały adres IP z Routera Głównego.
Wiem, że mogę kabel od Routera Głównego podłączyć do jednego z portów LAN Routera 2. Będzie działał jako switch i Komputery dostaną adres z klasy 192.168.10.x.

W związku z różnymi uprawnieniami użytkowników chciałbym aby na Routerze 2, można było używać firewalla.
Np.:
Komputer1 może mieć dostęp tylko do stron www (firmowa aplikacja)
Komputer2 może mieć dostęp tylko do poczty email.
Komputer3  ma mieć dostęp do wszystkich zasobów.

I tutaj moje umiejętności się kończą. W momencie kiedy router robi jako switch, reguły iptables przestają działać.

Dlatego Proszę o pomoc w konfiguracji takiego rozwiązania, nakierowanie mnie na właściwy kierunek.

Na Routerze 2 mam LEDE 18.06

5

(7 odpowiedzi, napisanych Oprogramowanie / Software)

xury:
Ścieżkę w php.ini mam ustawioną

sendmail_path = "/usr/bin/msmtp -C /etc/msmtprc-php --logfile /mnt/log/msmtp_php.log -a gmail -t"

oczywiście jak z palca użyję tego polecenia to emaile dochodzą.



Cezary - dzięki wielkie.

Działa.
Jeszcze tylko ustawię kodowanie.

Jak zawsze jesteś nie zastąpiony :-)

6

(7 odpowiedzi, napisanych Oprogramowanie / Software)

Tak. z Konsoli mogę, np. tak :

echo "test" | sendmail adres@pl

email dochodzi.


mam stronę php, w niej wpis :

mail("adres@pl", $temat, $wiadomosc, $od);


a jednak to rozwiązanie nie działa.

Nie wiem, co jeszcze trzeba skonfigurować,.

7

(7 odpowiedzi, napisanych Oprogramowanie / Software)

Witam.


Mam postawiony serwer www Z php.
Wygląda, że wszystko działa jak należy.
Na stronie mam zrobiony formularz do komunikacji.
Mam skonfigurowany msmtp z gmailem. Jak to podpiąć do lighttpd, żeby wysyłąnie emaili działało?

8

(2 odpowiedzi, napisanych Oprogramowanie / Software)

Wszystkie strony są w php (index.php)

Albo działa w ten sposób że ładuje zawsze tylko pierwszą domenę, albo nie wczytuje wcale.

Oto plik httpd-vhost.conf

# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#Listen 93.89.201.134:80
#NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    ServerName domena1.pl
    ServerAlias [url=http://www.domena1.pl]www.domena1.pl[/url]
    DocumentRoot /mnt/dane/www/domena1
    ErrorLog "/mnt/log/www/domena1.pl-error.log"
    CustomLog "/mnt/log/www/domena1.pl-access.log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    ServerName domena2.pl
    ServerAlias [url=http://www.domena2.pl]www.domena2.pl[/url]
    DocumentRoot /mnt/dane/www/domena2
    ErrorLog "/var/log/dummy-host2.example.com-error_log"
    CustomLog "/var/log/dummy-host2.example.com-access_log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    ServerName [url=http://www.domena3.pl]www.domena3.pl[/url]
    ServerAlias domena3.pl
    DocumentRoot /mnt/dane/www/domena3
    ErrorLog "/mnt/log/www/domena3.pl-error.log"
    CustomLog "/mnt/log/www/domena3.pl-access.log" common
</VirtualHost>

a tutaj plik httpd.conf

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see 
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so 'log/access_log'
# with ServerRoot set to '/www' will be interpreted by the
# server as '/www/log/access_log', where as '/log/access_log' will be
# interpreted as '/log/access_log'.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
#ServerRoot "/usr"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User nobody
Group nogroup

</IfModule>
</IfModule>

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin you@example.com

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName domena1.pl:80

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/mnt/dane/www/"
#NameVirtualHost *

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
 Options FollowSymLinks
   AllowOverride None
   Order deny,allow
   Allow from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/mnt/dane/www/">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # [url]http://httpd.apache.org/docs/2.2/mod/core.html#options[/url]
    # for more information.
    #
   Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
   AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
   Order allow,deny
   Allow from all

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html
    DirectoryIndex index.htm
    DirectoryIndex index.php
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "/var/log/error_log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel error

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog "/var/log/access_log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog "/var/log/access_log" combined
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to 
    # exist in your server's namespace, but do not anymore. The client 
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo [url]http://www.example.com/bar[/url]

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "/usr/share/cgi-bin/"

</IfModule>

<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock /var/log/cgisock
</IfModule>

#
# "/usr/share/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/share/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# DefaultType: the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig /etc/apache/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
</IfModule>

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
MIMEMagicFile /etc/apache/magic

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 [url]http://www.example.com/subscription_info.html[/url]
#

#
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or one of the special
# values 'default', 'none' or 'unlimited'.
# Default setting is to accept 200 Ranges.
#MaxRanges unlimited

#
# EnableMMAP and EnableSendfile: On systems that support it, 
# memory-mapping or the sendfile syscall is used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted 
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
EnableSendfile off

# Supplemental configuration
#
# The configuration files in the /etc/apache/extra/ directory can be 
# included to add extra features or to modify the default configuration of 
# the server, or you may simply copy their contents here and change as 
# necessary.

# Server-pool management (MPM specific)
#Include /etc/apache/extra/httpd-mpm.conf

# Multi-language error messages
#Include /etc/apache/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include /etc/apache/extra/httpd-autoindex.conf

# Language settings
#Include /etc/apache/extra/httpd-languages.conf

# User home directories
#Include /etc/apache/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include /etc/apache/extra/httpd-info.conf

# Virtual hosts
Include /etc/apache/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include /etc/apache/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include /etc/apache/extra/httpd-dav.conf

# Various default settings
#Include /etc/apache/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include /etc/apache/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
#<IfModule ssl_module>
#SSLRandomSeed startup builtin
#SSLRandomSeed connect builtin
#</IfModule>


ScriptAlias /local-bin /usr/bin
AddHandler application/x-httpd-php5 php
Action application/x-httpd-php5 /local-bin/php-cgi
<Directory "/usr/bin">
    Order allow,deny
    Allow from all
</Directory>

9

(2 odpowiedzi, napisanych Oprogramowanie / Software)

Witam.

Otóż jestem szczęśliwym posiadaczem routera TP-LiNK na którym zainstalowany jest Openwrt CC 15.05.1.

Oczywiście mam extroota - podpięty dysk , więc miejsca mam pod dostatkiem.
Mam zainstalowany serwer Apache + php, wszystko działa jak należy dla jednej domeny.

Zapragnąłem zrobić sobie Virtualhosty i natknąłem się na problem.
Niby konfiguracja tego jest banalna (na komputerze z debianem zajęło mi to 10 minut) to tutaj za nic w świece nie chce działać.
Jeżeli ktoś z Forumowiczów używa VHostów na routerze, to byłbym wdzięczny za przykładowe (działające) pliki.

W tej chwili jedyne co mi przychodzi do głowy, to zepsuty apache.


Będę wdzięczny za jakiekolwiek sugestie.

10

(15 odpowiedzi, napisanych Oprogramowanie / Software)

Dzięki za szybką odpowiedź.

Jako, że prędzej nie miałem za dużo do czynienia z oprogramowaniem routerów, więc ściągnąłem i zainstalowałem BB z oficjalnej strony Openwrt.org
Dopiero później znalazłem tą stronę i forum.
Pytanie do Ciebie Cezary, czym Twoje obrazy różnią się od tamtych. Jakie modyfikacje wprowadzasz? Podaj jakiegoś linka, żebym mógł doczytać.

11

(15 odpowiedzi, napisanych Oprogramowanie / Software)

Witam.

Posiadam router TP-Link WDR-4300 z wgranym OpenWRT BB 14.07 r42625.
Zrobiony jest extroot, pendrive wpięty bezpośrednio do jednego ze złączy usb, do drugiego podpięty hub.
Jako że go dopiero ustawiam i dopieszczam konfigurację, zauważyłem bardzo dziwną przypadłość.
Loguję się do routera po ssh, w celu  przetestowania konfiguracji czasami musze go zresetować. Staram się to robić poleceniem
reboot
wbudowanym w powłokę.
Zauważyłem że raz na jakiś czas( co kilka wykonanych rebootów) router się nie podnosi. Świeci się na nim tylko jedna dioda, ta od zasilania. Pomaga tylko fizyczne wyłączenie i ponowne włączenie(przyciskiem na routerze).

Czy ktoś się już spotkał z takim zachowaniem? Nawet nie mam pomysłu jak sprawdzić co się dzieje, dlaczego router się nie resetuje.
A może jest jakiś inny pewny i bezpieczny sposób na zresetowanie sprzętu(programowo).

Będę wdzięczny za jakiekolwiek sugestie.

Pozdrawiam.

12

(5 odpowiedzi, napisanych Oprogramowanie / Software)

Teraz tez mi hula :-)


Cezary, a może polecisz mi jakieś sprawdzone anteny?

13

(5 odpowiedzi, napisanych Oprogramowanie / Software)

Odpowiem sam sobie :-)

Okazało się że był zbyt duży ruch w eterze, zmieniłem kanał tego liveboxa na najbardziej pusty i teraz wygląda na to że wszystko działa. W ogóle nie rozłącza, a przy okazji wzrosły transfery.

Tylko jestem trochę zawiedziony, bo okazało się że mój laptop ma lepszy zasięg wifi niż router wdr4300 z trzema antenami.
A jak myślicie? Używam w zasadzie tylko pasma 2,4GHz, czy wymiana anten na inne(jednopasmowe) poprawi jakość sygnału.
Ma ktoś z tym już jakieś doświadczenie?

14

(5 odpowiedzi, napisanych Oprogramowanie / Software)

Witam.

Jestem prawie szczęśliwym posiadaczem WDR-4300 z BB.
Sprawa wygląda w ten  sposób, że używam tego routera do przedłużenia działąnia sieci, a konkretniej Neostrady(Livebox).
Ustawiłem w ten sposób żeby się łączył jako klient z wspomnianym Liveboxem i dalej po wifi rozsyłał internet.
Problem polega na tym, że bardzo często mam błędy w stylu:

44015.190000] wlan0: associate with 94:0c:6d:bc:1e:1e (try 1/3)
[44015.200000] wlan0: RX AssocResp from 94:0c:6d:bc:1e:1e (capab=0x411 status=0 aid=1)
[44015.200000] wlan0: associated
[44024.340000] wlan0: deauthenticated from 94:0c:6d:bc:1e:1e (Reason: 1=UNSPECIFIED)
[44025.130000] wlan0: authenticate with 94:0c:6d:bc:1e:1e
[44025.140000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 1/3)
[44025.150000] wlan0: authenticated
[44025.150000] ath9k ar934x_wmac wlan0: disabling HT as WMM/QoS is not supported by the AP
[44025.160000] ath9k ar934x_wmac wlan0: disabling VHT as WMM/QoS is not supported by the AP
[44025.180000] wlan0: associate with 94:0c:6d:bc:1e:1e (try 1/3)
[44025.190000] wlan0: RX AssocResp from 94:0c:6d:bc:1e:1e (capab=0x411 status=0 aid=1)
[44025.200000] wlan0: associated
[44029.350000] wlan0: disassociated from 94:0c:6d:bc:1e:1e (Reason: 16)
[44040.150000] wlan0: authenticate with 94:0c:6d:bc:1e:1e
[44040.160000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 1/3)
[44040.170000] wlan0: authenticated
[44040.170000] ath9k ar934x_wmac wlan0: disabling HT as WMM/QoS is not supported by the AP
[44040.180000] ath9k ar934x_wmac wlan0: disabling VHT as WMM/QoS is not supported by the AP
[44040.200000] wlan0: associate with 94:0c:6d:bc:1e:1e (try 1/3)
[44040.200000] wlan0: RX AssocResp from 94:0c:6d:bc:1e:1e (capab=0x411 status=0 aid=1)
[44040.210000] wlan0: associated
[44049.280000] wlan0: deauthenticated from 94:0c:6d:bc:1e:1e (Reason: 1=UNSPECIFIED)
[44070.100000] wlan0: authenticate with 94:0c:6d:bc:1e:1e
[44070.110000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 1/3)
[44070.120000] wlan0: authenticated
[44070.120000] ath9k ar934x_wmac wlan0: disabling HT as WMM/QoS is not supported by the AP
[44070.130000] ath9k ar934x_wmac wlan0: disabling VHT as WMM/QoS is not supported by the AP
[44070.150000] wlan0: associate with 94:0c:6d:bc:1e:1e (try 1/3)
[44070.150000] wlan0: RX AssocResp from 94:0c:6d:bc:1e:1e (capab=0x411 status=0 aid=1)
[44070.160000] wlan0: associated
[44075.230000] wlan0: disassociated from 94:0c:6d:bc:1e:1e (Reason: 16)

czyli nie łączy z siecią.
Zaznaczę, iż w tym samym momencie kiedy bezpośrednio spróbuję się z laptopa podłączyć do Liveboxa to nie ma z tym najmniejszego problemu. Laptop i mój WDR-4300 są praktycznie obok siebie.
Nawet teraz piszę będąc bezpośrednio podłączony do Liveboxa, gdyż mój router nie może się podłączyć.

Wysłucham wszystkich sugestii, bo jest to trochę denerwujące. Chciałem za pomocą routera powiększyć zasięg do następnego pokoju, gdzie sygnał Liveboxa już nie sięga.


Pozdrawiam.

15

(16 odpowiedzi, napisanych Oprogramowanie / Software)

tak, na dwóch różnych.

Ale myślałem że w plikach /etc/config/wireless i /etc/config/network
mogę wpisać dowolną liczbę sieci a przełączanie między nimi będzie realizowane za pomoca ifup NAZWA

a z tego wychodzi że jak mam wpisanych 10 sieci to muszę 9 razy robić
uci set  wireless.@wifi-iface[NR].ssid.disabled=1

i raz

uci set  wireless.@wifi-iface[NR].ssid.disabled=0

dopiero po tym mogę dać ifup NAZWA

trochę to dla mnie dziwne, ale człowiek uczy się całe życie :-)

16

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Wreszcie działa :-)))

Co prawda nie tak jak się spodziewałem, ale dobre i to.
Za pomocą
wireless.@wifi-iface[0].disabled=1 

lub
wireless.@wifi-iface[1].disabled=1

decyduję którą się  chcę wykorzystywać.

i dopiero wystarczy ifup wwan1 lub ifup wwan2

Dzięki wielkie za pomoc.
Jednak ja z natury jestem bardzo dociekliwy, więc jak wpadniesz na to dlaczego bez tego disabled nie działa to będę wdzięczny za podzielenie się tą wiedzą. Czy to jakiś błąd w samym openwrt ?

Pozdrawiam i jeszcze raz dzięki :-)

17

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Teraz do testów jestem podpięty po kablu do routera.
Później będzie to można podpiąć pod przycisk (to w przyszłości)

Tylko nie rozumiem dlaczego takie wpisy nie działają.

Ciągle podnosi tylko ten interfejs który jest jako pierwszy zapisany
w pliku /etc/config/wireless

Właśnie to przed chwilą sprawdziłem, samo zamienienie nazw wwan1 i wwan2  nic nie daje

ten który jest wyżej w pliku ten  tylko działa.

W ogóle tego nie rozumiem

18

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Dobrze.
Może to ja źle czytam logi. Ekspertem nie jestem.

Ale cały czas mi chodzi o to, że w przypadku awarii jednej z sieci,  ręcznie mógłbym się przełączyć na drugą.

Może masz pomysł jak to zrealizować inaczej ?

19

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Podłączyłem się, widać to chociażby przy 1167.250000

Ale właśnie o to chodzi, że czasami ta pierwsza sieć nie działa i wtedy chciałbym móc z palca przełączyć się na drugą(zapasową)

20

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Oto log dmesg:


1164.950000] wlan0: disassociated from 94:0c:6d:bc:1e:1e (Reason: 16)
[ 1165.460000] br-lan: port 2(wlan0-2) entered forwarding state
[ 1165.720000] wlan0: authenticate with 94:0c:6d:bc:1e:1e
[ 1165.730000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 1/3)
[ 1165.870000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 2/3)
[ 1165.950000] br-lan: port 2(wlan0-2) entered disabled state
[ 1165.950000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 3/3)
[ 1166.010000] wlan0: authentication with 94:0c:6d:bc:1e:1e timed out
[ 1167.190000] wlan0: authenticate with 94:0c:6d:bc:1e:1e
[ 1167.200000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 1/3)
[ 1167.210000] wlan0: authenticated
[ 1167.210000] ath9k ar934x_wmac wlan0: disabling HT as WMM/QoS is not supported by the AP
[ 1167.220000] ath9k ar934x_wmac wlan0: disabling VHT as WMM/QoS is not supported by the AP
[ 1167.240000] wlan0: associate with 94:0c:6d:bc:1e:1e (try 1/3)
[ 1167.240000] wlan0: RX AssocResp from 94:0c:6d:bc:1e:1e (capab=0x411 status=0 aid=1)
[ 1167.250000] wlan0: associated
[ 1169.290000] br-lan: port 2(wlan0-2) entered forwarding state
[ 1169.290000] br-lan: port 2(wlan0-2) entered forwarding state
[ 1171.290000] br-lan: port 2(wlan0-2) entered forwarding state
[ 1370.690000] wlan0: deauthenticating from 94:0c:6d:bc:1e:1e by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1370.710000] device wlan0-2 left promiscuous mode
[ 1370.710000] br-lan: port 2(wlan0-2) entered disabled state
[ 1381.590000] IPv6: ADDRCONF(NETDEV_UP): wlan0-2: link is not ready
[ 1381.600000] device wlan0-2 entered promiscuous mode
[ 1388.260000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1388.780000] IPv6: ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
[ 1389.460000] wlan0: authenticate with 94:0c:6d:bc:1e:1e
[ 1389.470000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 1/3)
[ 1389.630000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 2/3)
[ 1389.780000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 3/3)
[ 1389.830000] wlan0: authentication with 94:0c:6d:bc:1e:1e timed out
[ 1390.610000] wlan0: authenticate with 94:0c:6d:bc:1e:1e
[ 1390.620000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 1/3)
[ 1390.750000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 2/3)
[ 1390.850000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 3/3)
[ 1390.970000] wlan0: authentication with 94:0c:6d:bc:1e:1e timed out
[ 1392.150000] wlan0: authenticate with 94:0c:6d:bc:1e:1e
[ 1392.160000] wlan0: send auth to 94:0c:6d:bc:1e:1e (try 1/3)
[ 1392.170000] wlan0: authenticated
[ 1392.180000] ath9k ar934x_wmac wlan0: disabling HT as WMM/QoS is not supported by the AP
[ 1392.190000] ath9k ar934x_wmac wlan0: disabling VHT as WMM/QoS is not supported by the AP
[ 1392.200000] wlan0: associate with 94:0c:6d:bc:1e:1e (try 1/3)
[ 1392.340000] wlan0: associate with 94:0c:6d:bc:1e:1e (try 2/3)
[ 1392.410000] wlan0: RX AssocResp from 94:0c:6d:bc:1e:1e (capab=0x411 status=0 aid=1)
[ 1392.420000] wlan0: associated
[ 1392.420000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

przy 1370.690000  widać wyraźnie moment rozłączenia

jakie jeszcze inne logi mogę wydobyć, gdzie ich szukać?

21

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Próbowałem i bez tych opcji.
Teraz też je usunąłem.

Miałem podpiętą Sieć1
kiedy  zrobiłem
ifdown wwan1; ifup wwan2

to rozłączyło z tą siecią, ale za kilkanaście sekund znowu połączyło z tą samą siecią.

Tak jakby nie widział drugiego wpisu.

22

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Tak próbuje robić. Może przytoczę swoje pliki:

/etc/config/wireless


config wifi-device 'radio0'
    option type 'mac80211'
    option path 'platform/ar934x_wmac'
    option htmode 'HT20'
    option txpower '30'
    option country 'US'
    option hwmode '11g'
    option disabled '0'

config wifi-iface
    option network 'wwan1'
    option ssid 'Siec1'
    option encryption 'psk'
    option device 'radio0'
    option mode 'sta'
    option bssid '94:0C:6D:BC:1E:1E'
    option key 'klucz1'

config wifi-iface
    option network 'wwan2'
    option ssid 'Siec2'
    option encryption 'psk2'
    option device 'radio0'
    option mode 'sta'
    option bssid '94:0C:6D:BC:2E:2E'
    option key 'klucz2'

config wifi-iface
    option network 'lan'
    option ssid 'Moja Sieć'
    option encryption 'psk2'
    option device 'radio0'
    option mode 'ap'
    option key 'klucz3'


/etc/network


config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'fd3f:43fb:360e::/48'

config interface 'lan'
    option ifname 'eth0.1'
    option force_link '1'
    option type 'bridge'
    option proto 'static'
    option ipaddr '192.168.10.1'
    option netmask '255.255.255.0'
    option ip6assign '60'

config interface 'wwan1'
    option proto 'dhcp'
    option ifname 'wlan0'
   
config interface 'wwan2'
    option proto 'dhcp'
    option ifname 'wlan0'


Coś takiego zrobiłem.
i teraz
ifup wwan1

powinien startować pierwszą sieć, a
ifdown wwan1; ifup wwan2
powinien przerwać połączenie z pierwszą siecią i połączyć z drugą
przynajmniej ja się spodziewałem takiej reakcji.

Pokaż mi proszę w czym tkwi błąd.

23

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Witam.
Jetem nowy na forum więc się najpierw przywitam :-)

Od lat jestem pasjonatem linuxa. OpenWrt i jego filozofię dopiero poznaję.

Ostatnio nabyłem TP-Linka WDR-4300, zainstalowałem tam najnowsze OpenWrt, więc pora na konfigurację.

Chciałbym ustawić router w trybie Client+AP.
Mam dostęp do dwóch sieci Wifi z których chciałbym korzystać jako klient.

Jak to skonfigurować, żeby  polecenie
ifdown WLAN1; ifup WLAN2        powodowało połączenie z drugą siecią a
ifdown WLAN2; ifup WLAN1        łączyło z pierwszą siecią.
Oczywiście w każdym przypadku niech tworzy moją się WLAN3 do której podłączę się laptopem i będę miał internet.


Siedzę nad tym kilka dni i nie udało mi się tego rozwiązać, chociaż zapewne jest to banalne.

Proszę chociaż o jakieś wskazówki.