You are not logged in.

#1 2013-09-25 21:51:45

janoliver
Member
Registered: 2011-06-01
Posts: 54

[solved] Arch linux access point with multiple interfaces for the NAT

Hi, I have a router running Arch linux. It is connected via LAN (let's call it eth0) to the internet. It has a second LAN interface, eth1, and a wireless interface in master mode, wlan0.

Now, Everything works perfectly except providing network connectivity on eth1 and wlan0 simultaneously. I followed the guide in the "Internet share" wiki article and use dnsmasq/hostapd for the AP. It appears as if all traffic from the router is sent to the wlan0 interface, even if it came in through eth1 (for example, dhcp requests). I cannot really find information how to solve this. The words "bonding" and "iptables" are floating around, but there is not really an easy to understand tutorial for this.

What do I need to do to use both the eth1 and wlan0 interface (for different clients!) on my router?

Best regards, and thank you in advance
Jan Oliver

/e: This seems to be my problem: http://www.novell.com/support/kb/doc.php?id=7000318 How do I solve this using the usual iptables? (The way described in the article doesn't work: "RTNETLINK answers: No such process" errors.)

Last edited by janoliver (2013-09-25 22:24:53)

Offline

#2 2013-09-25 22:24:39

janoliver
Member
Registered: 2011-06-01
Posts: 54

Re: [solved] Arch linux access point with multiple interfaces for the NAT

I solved it using different subnets for the two interfaces. No routing required.

Offline

#3 2013-09-25 22:30:46

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [solved] Arch linux access point with multiple interfaces for the NAT

Or you could bridge eth1 and wlan0, and make dnsmasq bind/listen on that bridge...


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

Board footer

Powered by FluxBB