lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 3 Apr 2009 14:38:22 +0200
From:	Daniel Wagner <wagi@...om.org>
To:	netdev@...r.kernel.org
Cc:	linux-wireless@...r.kernel.org
Subject: No local loopback for mac80211_hwsim test setup

Hi,

I'd like to setup a wireless test network using the mac80211_hwsim
driver.  The main idea is to use one simulated device as access point
(e.g wlan13) and the other as normal station (e.g. wlan20).

I was able to get hostapd and dhcpd listining on wlan13 and handling the
request coming from wlan20. So after that the configuration looks like this:

[wagi@...rdust ~]$ ip addr show dev wlan13
12: wlan13: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 02:00:00:00:03:00 brd ff:ff:ff:ff:ff:ff
    inet 10.0.13.1/32 scope global wlan13
    inet6 fe80::ff:fe00:300/64 scope link
       valid_lft forever preferred_lft forever

[wagi@...rdust ~]$ ip addr show dev wlan20
26: wlan20: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 02:00:00:00:0a:00 brd ff:ff:ff:ff:ff:ff
    inet 10.0.13.10/24 brd 10.0.13.255 scope global wlan20
    inet6 fe80::ff:fe00:a00/64 scope link
       valid_lft forever preferred_lft forever

[wagi@...rdust ~]$ ip route show
10.0.13.0/24 dev wlan20  proto kernel  scope link  src 10.0.13.10  metric 2
192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1
192.168.0.0/16 dev eth0  proto kernel  scope link  src 192.168.101.53  metric 1
default via 192.168.0.254 dev eth0  proto static

[wagi@...rdust ~]$ ip route show dev wlan13 table local
local 10.0.13.1  proto kernel  scope host  src 10.0.13.1

[wagi@...rdust ~]$ ip route show dev wlan20 table local
local 10.0.13.10  proto kernel  scope host  src 10.0.13.10
broadcast 10.0.13.255  proto kernel  scope link  src 10.0.13.10
broadcast 10.0.13.0  proto kernel  scope link  src 10.0.13.10

If I 'ping 10.0.13.1' then the ip packets are not going through 
mac80211_hwsim because of the local route entry. So I tried
to remove this entry with the result that I know see:

[wagi@...rdust ~]$ sudo tcpdump -i wlan13
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wlan13, link-type EN10MB (Ethernet), capture size 96 bytes
14:31:05.431507 arp who-has 10.0.13.1 tell 10.0.13.10
14:31:05.431448 arp who-has 10.0.13.1 tell 10.0.13.10
14:31:06.431486 arp who-has 10.0.13.1 tell 10.0.13.10
...

Fidling with the arp entries was not helping either. I'm a bit at a
loss. I've searched the web, nothing found what helped.

So my question is this possible what I'd like to do? If so, what's the
trick to get it working?

thanks,
daniel





--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ