Ubuntu 14.04 LTS + grase installation - (second network card problem - card is visible with ifconfig -a)

1,253 views
Skip to first unread message

bartosz

unread,
Sep 24, 2014, 4:42:02 PM9/24/14
to grase-...@grasehotspot.org
Hi, on the begging many thx for great hotspot system, I use with 4 different places and never had problems until today



# hardware used
Intel Next Unit Of Computing (mini pc) with usb network card

# Ubuntu installation process
went as usual, with small difference, it didn't show the screen where you choice network card. 

# after installation

"ifconfig" command shows em1 and lo but no usb lan card interface, where em1 is connected to outside world and getting ip over dhcp.

"ifconfig -a" shows usb card as eth0 (so card is visible and if i set it up manually it works when connected to internet)

as i need manual ip ive changed it to:

"cat /etc/networks/interfaces"
--------------------------------
auto lo
iface lo inet loopback

auto em1
iface em1 inet static
address 192.168.7.100
network 192.168.7.0
netmask 255.255.255.0
broadcast 192.168.7.255
gateway 192.168.7.1
dns-nameservers 8.8.8.8 4.2.2.2
--------------------------------

#grase installation - no problems !!


sudo dpkg -i grase-repo_1.4_all.deb

sudo apt-get update

sudo apt-get install grase-www-portal grase-conf-freeradius grase-conf-squid3 grase-conf-openvpn

# after grase installation

ifconfig shows now: em1 lo and tun0 (10.64.63.48) but no eth0


i know its something stiupid with configuration, but i missing it, and this is 3rd day i am working on it an still no changes :| so i hope someone knows what i am missing, if you need some other setting please let me know 

many thanks

Bartosz


bartosz

unread,
Sep 24, 2014, 4:55:33 PM9/24/14
to grase-...@grasehotspot.org
one more thing, when i click http://192.168.7.100/grase/radmin i have msg: 

Not Found

The requested URL /grase/radmin was not found on this server.

on my older grase hotspot if i use internet side ip i was able to login to hotspot but now it shows nothing

Thomas Heil

unread,
Sep 24, 2014, 4:57:21 PM9/24/14
to grase-...@grasehotspot.org
Hi,


On 24.09.2014 22:42, bartosz wrote:
Hi, on the begging many thx for great hotspot system, I use with 4 different places and never had problems until today



# hardware used
Intel Next Unit Of Computing (mini pc) with usb network card

I would prefer boxes with at least two nics.

# Ubuntu installation process
went as usual, with small difference, it didn't show the screen where you choice network card. 

# after installation

"ifconfig" command shows em1 and lo but no usb lan card interface, where em1 is connected to outside world and getting ip over dhcp.

"ifconfig -a" shows usb card as eth0 (so card is visible and if i set it up manually it works when connected to internet)

as i need manual ip ive changed it to:

"cat /etc/networks/interfaces"
--------------------------------
auto lo
iface lo inet loopback

auto em1
iface em1 inet static
address 192.168.7.100
network 192.168.7.0
netmask 255.255.255.0
broadcast 192.168.7.255
gateway 192.168.7.1
dns-nameservers 8.8.8.8 4.2.2.2
--------------------------------

#grase installation - no problems !!


sudo dpkg -i grase-repo_1.4_all.deb

if you download grase-repo_1.5_all.deb why do you install grase-repo_1.4_all.deb?


sudo apt-get update

sudo apt-get install grase-www-portal grase-conf-freeradius grase-conf-squid3 grase-conf-openvpn

# after grase installation

ifconfig shows now: em1 lo and tun0 (10.64.63.48) but no eth0


I guess that your ubuntu did not recognice the usb nic?

i know its something stiupid with configuration, but i missing it, and this is 3rd day i am working on it an still no changes :| so i hope someone knows what i am missing, if you need some other setting please let me know 


Could you paste you complete steps and "ip a s" and or "ifconfig -a" ?

many thanks

Bartosz


--
This mailing list is for the Grase Hotspot Project http://grasehotspot.org
---
You received this message because you are subscribed to the Google Groups "Grase Hotspot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grase-hotspo...@grasehotspot.org.
To post to this group, send email to grase-...@grasehotspot.org.
Visit this group at http://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.
To view this discussion on the web visit https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/1399fe0a-8e8f-4b2b-b01b-5565809c5c35%40grasehotspot.org.

cheers
thomas

bartosz

unread,
Sep 24, 2014, 5:04:37 PM9/24/14
to grase-...@grasehotspot.org
yes, next time i will go for something bigger with 2 nics,


if you download grase-repo_1.5_all.deb why do you install grase-repo_1.4_all.deb? (my mistake as i was typing, it suppose to be 1.5) misspelling

right:


bart@hotspot:~$ ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether c0:3f:d5:6a:09:1e brd ff:ff:ff:ff:ff:ff
    inet 192.168.7.100/24 brd 192.168.7.255 scope global em1
       valid_lft forever preferred_lft forever
    inet6 fe80::c23f:d5ff:fe6a:91e/64 scope link 
       valid_lft forever preferred_lft forever
3: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:e0:4c:36:00:8c brd ff:ff:ff:ff:ff:ff
8: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
    link/none 
    inet 10.64.63.48 peer 10.64.62.1/32 scope global tun0
       valid_lft forever preferred_lft forever
bart@hotspot:~$ 



bart@hotspot:~$ ifconfig -a
em1       Link encap:Ethernet  HWaddr c0:3f:d5:6a:09:1e  
          inet addr:192.168.7.100  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::c23f:d5ff:fe6a:91e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:33863 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16955 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:47050737 (47.0 MB)  TX bytes:1325305 (1.3 MB)
          Interrupt:20 Memory:f7c00000-f7c20000 

eth0      Link encap:Ethernet  HWaddr 00:e0:4c:36:00:8c  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:200 errors:0 dropped:0 overruns:0 frame:0
          TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:57389 (57.3 KB)  TX bytes:57389 (57.3 KB)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:10.64.63.48  P-t-P:10.64.62.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:3326 (3.3 KB)  TX bytes:0 (0.0 B)

bart@hotspot:~$ 



bart@hotspot:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto em1
iface em1 inet static
address 192.168.7.100
network 192.168.7.0
netmask 255.255.255.0
broadcast 192.168.7.255
gateway 192.168.7.1
dns-nameservers 8.8.8.8 4.2.2.2

iface eth0 inet manual
bart@hotspot:~$ 

bartosz

unread,
Sep 24, 2014, 5:36:37 PM9/24/14
to grase-...@grasehotspot.org
my steps are:

1. Install ubuntu 14.04 lts

2. setup manual ip address for em1 and iface eth0 inet manual (usb)

3. install grase

   - sudo dpkg -i grase-repo_1.5_all.deb
   - sudo apt-get update
   - sudo apt-get install grase-www-portal grase-conf-freeradius grase-conf-squid3 grase-conf-openvpn
     (didnt noticed any error msg)

4. when finish
   - http://192.168.7.100/ - apache works fine
   - http://192.168.7.100/grase/radmin/ - error msg: (Not Found, The requested URL /grase/radmin/ was not found on this    server. Apache/2.4.7 (Ubuntu) Server at 192.168.7.100 Port 80)

on my old servers internal lan card is shown in ifconfig (no ip configured but its visible), in this new installation if i do ifconfig i cant see my card, only if i do ifconfig -a

also i did test usb network card by setting ip manually and connected to internet and it works fine, so i know its not the usb card problem, it must be problem with configuration ubuntu or grase, i dont have any more ideas :(

i think grase cant see eth0 somehow and when setting up something goes wrong :|

(btw) if i add "auto eth0 in /etc/network/interfaces when i do ifconfig i can see both em1 and eth0 but this does not make any difference





On Wednesday, 24 September 2014 21:42:02 UTC+1, bartosz wrote:

bartosz

unread,
Sep 24, 2014, 11:57:27 PM9/24/14
to grase-...@grasehotspot.org
nearly fixed !!! only DHCP server is not working....

ok so what i did is, edited file: /etc/chilli/config and changed: eth interfaces to correct ones

Enter code her###
#   Local Network Configurations
#

HS_WANIF=${HS_WANIF:-eth0}            # WAN Interface toward the Internet
HS_LANIF=${HS_LANIF:-eth1}                 # Subscriber Interface for client devices
#HS_LANIF=$(cat /proc/net/dev|grep -o eth.|grep -v $(route -n|grep '^0.0.0.0'|head -n1|awk '{pri$
HS_NETWORK=${HS_NETWORK:-10.1.0.0}         # HotSpot Network (must include HS_UAMLISTEN)
HS_NETMASK=${HS_NETMASK:-255.255.255.0}    # HotSpot Network Netmask
HS_UAMLISTEN=${HS_UAMLISTEN:-10.1.0.1}     # HotSpot IP Address (on subscriber network)
HS_UAMPORT=3990            # HotSpot UAM Port (on subscriber network)
HS_UAMUIPORT=4990          # HotSpot UAM "UI" Port (on subscriber network, for embedded portal)e...

changed to:

###
#   Local Network Configurations
#

HS_WANIF=${HS_WANIF:-em1}            # WAN Interface toward the Internet
HS_LANIF=${HS_LANIF:-eth0}                 # Subscriber Interface for client devices
#HS_LANIF=$(cat /proc/net/dev|grep -o eth.|grep -v $(route -n|grep '^0.0.0.0'|head -n1|awk '{pri$
HS_NETWORK=${HS_NETWORK:-10.1.0.0}         # HotSpot Network (must include HS_UAMLISTEN)
HS_NETMASK=${HS_NETMASK:-255.255.255.0}    # HotSpot Network Netmask
HS_UAMLISTEN=${HS_UAMLISTEN:-10.1.0.1}     # HotSpot IP Address (on subscriber network)
HS_UAMPORT=3990            # HotSpot UAM Port (on subscriber network)
HS_UAMUIPORT=4990          # HotSpot UAM "UI" Port (on subscriber network, for embedded portal)


so now! after reboot i can login to grase admin panel: html://192.168.7.100/grase/radmin - EVERYTHING LOOKS TO WORKING FINE 

APART FROM DHCP :|

SERVER IS NOT ASSIGNING ANY IP








any idea ? maybe i should change some interfaces somewhere else ?



On Wednesday, 24 September 2014 21:42:02 UTC+1, bartosz wrote:

Timothy White

unread,
Sep 25, 2014, 12:01:57 AM9/25/14
to grase-...@grasehotspot.org

Are you using nightly or stable? It looks like stable which isn't supported on 14.04 yet.

You need to login to the web interface and set the correct network interfaces. On the network setup page, hit save even if it shows the right interfaces already. Then reboot.

Let me know how it goes.

Tim

--
This mailing list is for the Grase Hotspot Project http://grasehotspot.org
---
You received this message because you are subscribed to the Google Groups "Grase Hotspot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grase-hotspo...@grasehotspot.org.
To post to this group, send email to grase-...@grasehotspot.org.
Visit this group at http://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.

bartosz

unread,
Sep 25, 2014, 12:20:27 AM9/25/14
to grase-...@grasehotspot.org
ok, so its nightly... 

and i just pop to another problem, as i manage to login to localhost/grase/radmin
went to change admin password... and when i change password... i can not login again...

trying to change manually in database with phpmyadmin, but its not working, so have to remove and install it again :|

brb if i manage to sort is out, unless you know why this is happen :o






On Wednesday, 24 September 2014 21:42:02 UTC+1, bartosz wrote:

bartosz

unread,
Sep 25, 2014, 12:36:22 AM9/25/14
to grase-...@grasehotspot.org
ok, so back again, its nightly

and network setup shows right interfaces, then hit save and reboot, and no change

dhcp dead

and changing password, or add new user - is locking me out from portal, and can not log in again, tells me my password is incorrect :|

Mohammad Javad Ra'adi

unread,
Sep 26, 2014, 9:28:04 AM9/26/14
to grase-...@grasehotspot.org
yes the nightly has admin login problem. it was able to go around this problem. i'll show you how:
first you need to edit file "/usr/share/grase/www/radmin/includes/session.inc.php"
at line 94 you have this "cryptType" option. set it to "md5" so it looks like this"
'cryptType' => 'md5'
and then you should go to your database and put your username and password and access level manually. you should make a md5 hash of your password and paste it to the "auth" table of "radmin" database.
i know that's not a good solution meanwhile it solves the problem until Tim fixes this bug.

Timothy White

unread,
Oct 4, 2014, 4:31:42 PM10/4/14
to grase-...@grasehotspot.org

This login issue should now be fixed.

Tim

Reply all
Reply to author
Forward
0 new messages