OpenWrt Forum Archive

Topic: dual-WAN config using wired and wireless clients?

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'd like to set up a box for travel that will connect to the internet over the wired ethernet port or as a wireless client.

I've seen some discussion about setting up a box using two wired ethernet ports as WAN ports- has there been anything about using WAN and wireless?

The idea is that at a hotel I can plug this box into the wall, or connect to the hotel's wireless service, and this box will be a firewall between me and the rest of the world.  (And a VPN between me and the home office.)  I'll have to use a cable between the box and my laptop, but that's not too bad.

I have two internet connections via wired and wireless on my WRT54G using WhiteRussian RC5.  I got wireless client mode working first using the wiki instructions, then simply added

dsl_ifname=vlan1
dsl_proto=dhcp

to NVRAM and

ifup dsl

to /etc/init.d/S40network (where dsl is just an arbitrary name).  Then I modified /etc/init.d/S45firewall to duplicate the entries for the wan interface.

I had to stop the interfaces from fighting over DNS and routing after that, but if you're only connecting via one or the other then that may not be an issue for you.

Thanks very much!  Yes- it makes sense about the DNS and routing.  And I'm going to have my own problems because openvpn doesn't seem to automatically do things right.

But that's a great starting point.  I had no idea it would be so easy.

The discussion might have continued from here.