usb stick as wan

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

usb stick as wan

tux john
hello everyone. i do have an ALIX 2d13 which has voyage linux 0.9.2 and a usb stick (TP LINK TL-WN722N).
i do need to setup the wifi usb to be my WAN for access to the Internet. Some help with the config please.
 
WIFI settings:
SSID:Com_SAT_PLUS
WPA2+
passphrase:wh@t3v3r123
IP:192.168.0.49/24, gateway 192.168.0.1
 
LAN settings:
eth1:192.168.1.100/24
 
All traffic from eth1 will get NAT to wlan interface and then travel to the Internet.

_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: usb stick as wan

Kim-man 'Punky' TSE-2
John,

You are lucky, because I have the similar setup, incl WN722N:

in /etc/network/interfaces

auto wlan0
iface wlan0 inet static
         address 192.168.0.49
         netmask 255.255.255.0
         broadcast 192.168.0.255
         wpa-ssid <your SSID>
         wpa-psk <your PSK>
         up nat.sh eth1 wlan0  "192.168.1.0/24"

I leave eth1 settings to you.  Also make sure you have firmware-atheros (non-free) package installed

On 5/22/2015 9:22 PM, tux john wrote:

> hello everyone. i do have an ALIX 2d13 which has voyage linux 0.9.2 and a usb stick (TP LINK TL-WN722N).
> i do need to setup the wifi usb to be my WAN for access to the Internet. Some help with the config please.
> _*WIFI settings:*_
> SSID:Com_SAT_PLUS
> WPA2+
> passphrase:wh@t3v3r123
> IP:192.168.0.49/24, gateway 192.168.0.1
> _*LAN settings:*_
> eth1:192.168.1.100/24
> All traffic from eth1 will get NAT to wlan interface and then travel to the Internet.


--
Regards,
Kim-man "Punky" Tse

* Open Source Embedded Solutions and Systems
   - Voyage Linux (http://linux.voyage.hk)
   - Voyage MPD   (http://linux.voyage.hk/voyage-mpd)
   - Voyage MuBox (http://mubox.voyage.hk)
* Voyage Store   (http://store.voyage.hk)


_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: usb stick as wan

Rainer Stratmann
> I leave eth1 settings to you.  Also make sure you have firmware-atheros
> (non-free) package installed

How to do that exactly?

_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: usb stick as wan

tux john
In reply to this post by Kim-man 'Punky' TSE-2
Dear Kim-man,


thanks a lot for the quick reply.
my /etc/network/interfaces has

auto wlan0
iface wlan0 inet static
        address 192.168.0.49
        netmask 255.255.255.0
        broadcast 192.168.0.255
        wpa-ssid "Com_SAT_PLUS "
        wpa-psk "wh@t3v3r123 "
        up nat.sh eth1 wlan0  "192.168.1.0/24"

auto eth1
  iface eth1 inet static
  address 192.168.1.100
  netmask 255.255.255.0




then i rebooted the system. from my pc i get connected to eth1 of ALIX. then i try to access the internet without success.
ping 8.8.8.8, ping www.google.com failed.
the thing is that i can access the remote router that serves the wifi (192.168.1.1). Also i can get access from my laptop to the internet with these settings.
the only settings that i have edited was the /etc/network/interfaces. do i have to alter any other file?
what am i doing wrong?



On 23/5/2015 08:54, Kim-man 'Punky' TSE wrote:
John,

You are lucky, because I have the similar setup, incl WN722N:

in /etc/network/interfaces

auto wlan0
iface wlan0 inet static
        address 192.168.0.49
        netmask 255.255.255.0
        broadcast 192.168.0.255
        wpa-ssid <your SSID>
        wpa-psk <your PSK>
        up nat.sh eth1 wlan0  "192.168.1.0/24"

I leave eth1 settings to you.  Also make sure you have firmware-atheros (non-free) package installed

On 5/22/2015 9:22 PM, tux john wrote:
hello everyone. i do have an ALIX 2d13 which has voyage linux 0.9.2 and a usb stick (TP LINK TL-WN722N).
i do need to setup the wifi usb to be my WAN for access to the Internet. Some help with the config please.
_*WIFI settings:*_
SSID:Com_SAT_PLUS
WPA2+
passphrase:wh@t3v3r123
IP:192.168.0.49/24, gateway 192.168.0.1
_*LAN settings:*_
eth1:192.168.1.100/24
All traffic from eth1 will get NAT to wlan interface and then travel to the Internet.




_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: usb stick as wan

tux john
Hi. Sorry i had a typo.
now i can ping from ALIX itself to 8.8.8.8 and www.google.com
when i try from pc which is in eth1 of ALIX, i cannot get anywhere.





On 23/5/2015 15:57, atux john wrote:
Dear Kim-man,


thanks a lot for the quick reply.
my /etc/network/interfaces has

auto wlan0
iface wlan0 inet static
        address 192.168.0.49
        netmask 255.255.255.0
        broadcast 192.168.0.255
        wpa-ssid "Com_SAT_PLUS "
        wpa-psk "wh@t3v3r123 "
        up nat.sh eth1 wlan0  "192.168.1.0/24"

auto eth1
  iface eth1 inet static
  address 192.168.1.100
  netmask 255.255.255.0




then i rebooted the system. from my pc i get connected to eth1 of ALIX. then i try to access the internet without success.
ping 8.8.8.8, ping www.google.com failed.
the thing is that i can access the remote router that serves the wifi (192.168.1.1). Also i can get access from my laptop to the internet with these settings.
the only settings that i have edited was the /etc/network/interfaces. do i have to alter any other file?
what am i doing wrong?



On 23/5/2015 08:54, Kim-man 'Punky' TSE wrote:
John,

You are lucky, because I have the similar setup, incl WN722N:

in /etc/network/interfaces

auto wlan0
iface wlan0 inet static
        address 192.168.0.49
        netmask 255.255.255.0
        broadcast 192.168.0.255
        wpa-ssid <your SSID>
        wpa-psk <your PSK>
        up nat.sh eth1 wlan0  "192.168.1.0/24"

I leave eth1 settings to you.  Also make sure you have firmware-atheros (non-free) package installed

On 5/22/2015 9:22 PM, tux john wrote:
hello everyone. i do have an ALIX 2d13 which has voyage linux 0.9.2 and a usb stick (TP LINK TL-WN722N).
i do need to setup the wifi usb to be my WAN for access to the Internet. Some help with the config please.
_*WIFI settings:*_
SSID:Com_SAT_PLUS
WPA2+
passphrase:wh@t3v3r123
IP:192.168.0.49/24, gateway 192.168.0.1
_*LAN settings:*_
eth1:192.168.1.100/24
All traffic from eth1 will get NAT to wlan interface and then travel to the Internet.





_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux


_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: usb stick as wan

Kim-man 'Punky' TSE-2
On 5/23/2015 11:19 PM, atux john wrote:
> when i try from pc which is in eth1 of ALIX, i cannot get anywhere.
Did you check your PC dns settings?   Can your PC able to ping the gateway 192.168.0.1?

In wlan1, I believe you need to set gateway to 192.168.0.1  as well.  Make sure your PC can ping your gateway
192.168.0.1.  Then make sure PC has resolve the google.com.

*auto wlan0 **
**iface wlan0 inet static **
**        address 192.168.0.49 **
**        netmask 255.255.255.0 **
**        broadcast 192.168.0.255
         gateway 192.168.0.1
****        wpa-ssid "**Com_SAT_PLUS " **
**        wpa-psk "**wh@t3v3r123 "**
**        up nat.sh eth1 wlan0  "192.168.1.0/24" **
*

--
Regards,
Kim-man "Punky" Tse

* Open Source Embedded Solutions and Systems
   - Voyage Linux (http://linux.voyage.hk)
   - Voyage MPD   (http://linux.voyage.hk/voyage-mpd)
   - Voyage MuBox (http://mubox.voyage.hk)
* Voyage Store   (http://store.voyage.hk)


_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux
Loading...