Skip to content

Cannot specify "-o" in AP mode #100

@wujinjun-MC

Description

@wujinjun-MC

If -o is used to specify Internet interface, ping is always Destination Port Unreachable.

Command log:

sudo lnxrouter -o enp5s0 --ap wlx************ wujinjun -p 12345678
WARN: Your adapter does not fully support AP virtual interface, enabling --no-virt
WARN: wlx************ has 15 characters which might be too long. If AP doesn't work, see --virt-name and https://github.com/garywill/linux-router/issues/44
linux-router 0.8.1 (https://github.com/garywill/linux-router)
Released under LGPL, with no warranty. Use on your own risk.

PID: 290341
Target interface is wlx************ (**:**:**:**:**:**)
lspci: -s: Invalid bus number
PCI: 1-1:1.0
System-already-loaded driver: rt2800usb

Use random LAN IPv4 address 192.168.41.1
Config dir: /dev/shm/lnxrouter_tmp/lnxrouter.wlx************.conf.DKEFBr
Channel not specified, use default
Freq band: 2.4 GHz   Channel: 1

iptables v1.8.11 (nf_tables)
Notice: Not showing all operations done to iptables rules

haveged_watchdog PID: 290484

Starting hostapd
hostapd PID: 290489
WARN: Low entropy detected. We recommend you to install `haveged'
wlx************: interface state UNINITIALIZED->ENABLED
wlx************: AP-ENABLED

WARN: You specified Internet interface but this host is providing local DNS. In some unexpected case (eg. mistaken configurations), queries may leak to other interfaces, which you should be aware of.


iptables: NAT
MASQUERADE  all opt -- in * out enp5s0  192.168.41.0/24 !-> 192.168.41.0/24   /* lrt290341wlx************ */
ACCEPT  all opt -- in wlx************ out enp5s0  192.168.41.0/24  -> 0.0.0.0/0   /* lrt290341wlx************ */
ACCEPT  all opt -- in enp5s0 out wlx************  0.0.0.0/0  -> 192.168.41.0/24   /* lrt290341wlx************ */
Loaded kernel module nf_nat_pptp

iptables: allow DNS
ACCEPT  tcp opt -- in wlx************ out *  192.168.41.0/24  -> 192.168.41.1   tcp dpt:53 /* lrt290341wlx************ */
ACCEPT  udp opt -- in wlx************ out *  192.168.41.0/24  -> 192.168.41.1   udp dpt:53 /* lrt290341wlx************ */

iptables: allow dhcp
ACCEPT  udp opt -- in wlx************ out *  0.0.0.0/0  -> 0.0.0.0/0   udp dpt:67 /* lrt290341wlx************ */

Starting dnsmasq
Apr 10 00:17:36 dnsmasq[290633]: started, version 2.91 cachesize 150
Apr 10 00:17:36 dnsmasq[290633]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset auth DNSSEC loop-detect inotify dumpfile
Apr 10 00:17:36 dnsmasq-dhcp[290633]: DHCP, IP range 192.168.41.10 -- 192.168.41.250, lease time 1h
Apr 10 00:17:36 dnsmasq-dhcp[290633]: DHCP, sockets bound exclusively to interface wlx************
Apr 10 00:17:36 dnsmasq[290633]: reading /etc/resolv.conf
Apr 10 00:17:36 dnsmasq[290633]: using nameserver 127.0.0.53#53
Apr 10 00:17:36 dnsmasq[290633]: cleared cache
dnsmasq PID: 290633


== Setting up completed, now linux-router should be working ==
wlx************: STA **:**:**:**:**:** IEEE 802.11: authenticated
wlx************: STA **:**:**:**:**:** IEEE 802.11: associated (aid 1)
wlx************: AP-STA-CONNECTED **:**:**:**:**:**
wlx************: STA **:**:**:**:**:** RADIUS: starting accounting session 4227BB82FBED6781
wlx************: STA **:**:**:**:**:** WPA: pairwise key handshake completed (RSN)
wlx************: EAPOL-4WAY-HS-COMPLETED **:**:**:**:**:**
Apr 10 00:18:12 dnsmasq-dhcp[290633]: DHCPDISCOVER(wlx************) **:**:**:**:**:**
Apr 10 00:18:12 dnsmasq-dhcp[290633]: DHCPOFFER(wlx************) 192.168.41.166 **:**:**:**:**:**
Apr 10 00:18:12 dnsmasq-dhcp[290633]: DHCPDISCOVER(wlx************) **:**:**:**:**:**
Apr 10 00:18:12 dnsmasq-dhcp[290633]: DHCPOFFER(wlx************) 192.168.41.166 **:**:**:**:**:**
Apr 10 00:18:12 dnsmasq-dhcp[290633]: DHCPDISCOVER(wlx************) **:**:**:**:**:**
Apr 10 00:18:12 dnsmasq-dhcp[290633]: DHCPOFFER(wlx************) 192.168.41.166 **:**:**:**:**:**
Apr 10 00:18:12 dnsmasq-dhcp[290633]: DHCPREQUEST(wlx************) 192.168.41.166 **:**:**:**:**:**
Apr 10 00:18:12 dnsmasq-dhcp[290633]: DHCPACK(wlx************) 192.168.41.166 **:**:**:**:**:** OnePlus-12

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions