Wifi (wlan0) not working outside of my LAN!

  • Hi, i have a strang problem with a new OpenMediaVault system



    The WiFi Card works, is up and i can ping my LAN but not outside (WAN).


    IP's are correct, DNS is correct, iptables is empty (disabled), submask is correct etc...


    Can someone tell me wtf is wrong?



    Cheers PyCoder


    Code
    root@omv:~# ping -I wlan0 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) from 192.168.0.11 wlan0: 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=7.00 ms
    64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.576 ms
    64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.592 ms


    But if i try to ping google.com


    Code
    root@omv:~# ping -I wlan0 google.com
    PING google.com (172.217.21.238) from 192.168.0.11 wlan0: 56(84) bytes of data.
    From OMV.linux (192.168.0.11) icmp_seq=1 Destination Host Unreachable
    From OMV.linux (192.168.0.11) icmp_seq=2 Destination Host Unreachable


    Or with the IP of google.com



    Code
    root@omv:/etc/# ping -I wlan0 216.58.207.46
    PING 216.58.207.46 (216.58.207.46) from 192.168.0.11 wlan0: 56(84) bytes of data.
    From 192.168.0.11 icmp_seq=1 Destination Host Unreachable
    From 192.168.0.11 icmp_seq=2 Destination Host Unreachable
    From 192.168.0.11 icmp_seq=3 Destination Host Unreachable


    iwconfig output looks like


    /etc/network/interfaces looks like



    route looks like

    Code
    root@omv:~# route -n
    Kernel-IP-Routentabelle
    Ziel            Router          Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
    192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
    192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
    root@omv:~#


    iptables looks like


    Resolv.conf looks like


    Code
    root@omv:/etc/# cat resolv.conf
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 192.168.0.1
    search linux
    root@omv:/etc/#
  • Try to assign one gateway only, either on wlan0 or eth0

    Doesnt work BUT i fixed it, i guess with this:


    Code
    route add default gw 192.168.0.1 wlan0



    route -n looks like this now

    Code
    root@omv:~# route -n
    Kernel-IP-Routentabelle
    Ziel            Router          Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0
    0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
    192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
    192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0

    And it works!



    BUT its not really beautiful, because i have to use rc.local :(



    Or is there a better solution?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!