Author Topic: Using WLAN0 as main WAN interface  (Read 3965 times)

JulioQc

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Using WLAN0 as main WAN interface
« on: October 16, 2013, 12:37:35 am »
Hello all,

Im setting up an old laptop at home as a network gateway for testing and mostly learning purposes. I'm comfortable with most network applications under windows but I wish to move under Linux, Zentyal more specifically.

I'm running into a problem; how do I get my Zentyal to use the wlan0 interface to connect to a WIFI which supplies the Internet connection for my network?? Most Linux distro include the wireless network configuration to connect (even windows server does!)  but I presume Zentyal doesn't because servers usually don't obtain their Internet from a wifi network... So can I do this? If so how?

My network:

PCs -> wired/wireless AP -> (via eth0 LAN card) -> Zentyal Gateway/Server -> (via wlan0 WLAN) -> internet router (DMZ set for Zentyal)

I'm new to Linux but not completely ignorant. I've been googling the subject but didnt come accross anything really functional :( Some help would be greatly appreciated!

Thanks!

BrettonWoods

  • Guest
Re: Using WLAN0 as main WAN interface
« Reply #1 on: October 16, 2013, 12:49:58 am »
https://help.ubuntu.com/community/WifiDocs/WiFiHowTo

that might help

if you had jumped in with ubuntu desktop then its similar to windows.
« Last Edit: October 16, 2013, 12:56:31 am by BrettonWoods »

JulioQc

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Using WLAN0 as main WAN interface
« Reply #2 on: October 16, 2013, 07:20:11 pm »
Thanks for the info. I was very useful but I was unsuccessful in getting the wifi to connect.

Re installing the OS and choosing the wlan0 interface as main network card during setup allowed me to set it as desired and it is now working :)

BrettonWoods

  • Guest
Re: Using WLAN0 as main WAN interface
« Reply #3 on: October 16, 2013, 07:27:50 pm »
Sorry about that as never have used wifi in zentyal. Have a router connected but just haven't done it the other way round.


JulioQc

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Using WLAN0 as main WAN interface
« Reply #4 on: October 22, 2013, 11:09:17 pm »
Ya its pretty uncommon...

So it does work after initial setup but it wont connect as soon as I install the gateway package... I presume it scraps the settings

BrettonWoods

  • Guest
Re: Using WLAN0 as main WAN interface
« Reply #5 on: October 23, 2013, 04:06:35 pm »
This is a bit the wrong way round as people usually start the scripting and customisation towards the end of there zentyal adventure.

If you have a look at the last chapter of the documentation specifically post save hooks then you can just copy what you and zentyal have done and just paste it as a template.

So save your current settings rename /etc/network/interfaces to wifi or something.

Let zentyal start up the gateway and have a look at what it has done to /etc/network/interfaces and amalgamate the two.

I have no idea with wifi cards :) like I said but you probably could get it to work its just a matter of learning the scripting section of the documentation.