LedgerSMB
The foundation for your business
Fork me on GitHub
Re: [ledgersmb-users] Fwd: Fwd: Production Install, Networking and Setup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ledgersmb-users] Fwd: Fwd: Production Install, Networking and Setup





On Wed, Mar 27, 2019 at 7:26 AM bill Ott <..hidden..> wrote:

Xboxboy, I am trying to understand your host network setup. As an example, here is my firewall  network configuration supporting two VM's. It's not everything, but is what is required to run the VMs.


My brctl on the firewall:

[root@wbofw perl]# brctl show ID matches mac addr for eth1 and eno1
bridge name    bridge id        STP enabled    interfaces
eth1        8000.001e67e0bbd6    no             eno1
                                                                        vnet0
                                                                        vnet1

And the ifconfig from the two VMs running on the firewall system.

Thanks for reply:
Here's my host results:
brctl show
bridge name     bridge id               STP enabled     interfaces
virbr0          8000.525400da324e       yes             virbr0-nic

and here is the guest debian OS
enpos3: flags=4163<UP,BROADCAST,RUNNING,MULTITCAST> mtu 1500
inet 192.168.1.118 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::a00:27ff:fe87:a4b prefixlen 64 scopeid 0x20<link>
ether 08:00:27:87:0a:4b txqueuelen 1000 (Ethernet)
RX packets 1735 bytes 1215954 (1.1Mib)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 594 bytes 44649 (43.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0X10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 262 bytes 60033 (58.5KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 262 bytes 60033 (58.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

 

[root@yawssys]# ifconfig (sshing into the vnet0 VM) note Mac address is identical to vnet0
eth1:   Link encap:Ethernet  HWaddr FE:54:00:B7:EA:E1 
          inet addr:96.10.34.44  Bcast:96.10.34.63  Mask:255.255.255.224
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:108356 errors:0 dropped:0 overruns:0 frame:0
          TX packets:168471 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8480160 (8.0 MiB)  TX bytes:199696532 (190.4 MiB)

[root@yawssys7]# ifconfig (sshing into the vnet1 VM) note Mac address is identical vnet1
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 96.10.34.50  netmask 255.255.255.224  broadcast 96.10.34.63
        inet6 fe80::5054:ff:fee2:af0b  prefixlen 64  scopeid 0x20<link>
        ether FE:54:00:e2:af:0b  txqueuelen 1000  (Ethernet)
        RX packets 438230  bytes 223232328 (212.8 MiB)
        RX errors 0  dropped 14003  overruns 0  frame 0
        TX packets 276326  bytes 137199104 (130.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

The nomenclature is slightly different on the systems since they are running different versions of Centos.

I am running KVM virtual machines. They may work differently than your VM's.

I wanted to see your VM ifconfig to see it they align with your host interfaces.

Hope this helps.



Regards,
Bill Ott

Home: 919-363-0031
Cell: 919-434-7589
Email: Mailto:..hidden..
Website: http://www.theotts.org
Profile: http://www.linkedin.com/in/wbott


On 3/24/19 7:44 PM, Gnucash Xboxboy Mageia wrote:


On Mon, Mar 25, 2019 at 1:50 AM bill Ott <..hidden..> wrote:

Can you send me the results of the ifconfig on the VM's host?

Reviewing I noticed. from below

"virbr0    is on 192.168.122.1" which is the wrong octal. it should be 192.168.1.XXX.  It may be there because your VM is setting up its own DHCP. But that begs the question of how you are reaching the 192.168.1.188 apache interface on the VM.

If you ssh into the VM and issue an ifconfig there, what is its IP address?

Thanks Bill: Ok, the Host IP has changed, because I didn't have a fixed IP for it: I've now sorted that. So here are the results of 'ifconfig'

enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.106  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::62a4:4cff:fe38:82a9  prefixlen 64  scopeid 0x20<link>
        ether 60:a4:4c:38:82:a9  txqueuelen 1000  (Ethernet)
        RX packets 2173  bytes 521229 (509.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 176  bytes 19475 (19.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 100  bytes 8648 (8.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 100  bytes 8648 (8.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:da:32:4e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 
Regards,
Bill Ott

Home: 919-363-0031
Cell: 919-434-7589
Email: Mailto:..hidden..
Website: http://www.theotts.org
Profile: http://www.linkedin.com/in/wbott


On 3/24/19 1:28 AM, Gnucash Xboxboy Mageia wrote:


On Thu, Mar 21, 2019 at 11:00 PM bill Ott <..hidden..> wrote:

Have you tried temporarily turning off SELinux  ("setenforce 0"), then trying to connect? After doing the test, turn SELinux back on with "setenforce 1".

Thanks
Just tried that on the host OS with no change.
The debian VM doesn't have SElinux installed, as 'getenforce' and 'sestatus' return command not found.

Regards,
Bill Ott

Home: 919-363-0031
Cell: 919-434-7589
Email: Mailto:..hidden..
Website: http://www.theotts.org
Profile: http://www.linkedin.com/in/wbott


On 3/21/19 3:40 AM, Xboxboy Mageia wrote:
Bill,

yes, sorry that is a typo: I meant http://192.168.1.118:5762/setup.pl

Regards,
Xboxboy

---------- Forwarded message ---------
From: bill Ott <..hidden..>
Date: Thu, Mar 21, 2019 at 1:21 AM
Subject: Re: [ledgersmb-users] Fwd: Production Install, Networking and Setup
To: Xboxboy Mageia <..hidden..>

http://192.168.1.188:5762/setup.pl????  Did you mean http://192.168.1.118:5762/setup.pl?
Regards,
Bill Ott

Home: 919-363-0031
Cell: 919-434-7589
Email: Mailto:..hidden..
Website: http://www.theotts.org
Profile: http://www.linkedin.com/in/wbott


On 3/19/19 9:47 PM, Xboxboy Mageia wrote:
Sorry Bill: I meant to send it to the list :-0

Please see the network info I've added, in response to both Bill and Erik.

On Mon, Mar 18, 2019 at 6:45 PM Xboxboy Mageia <..hidden..> wrote:
Hello,
I was sick over Xmas, and since then business has been booming, only now can I have a second look. Thank you all for you help.


On Thu, Jan 10, 2019 at 10:38 AM bill Ott <..hidden..> wrote:

Running "brctl show" w/o/ the quotes on the VM's host will show you the bridge and the interfaces that are connected to it. 'ifconfig" w/o the quotes on the VM's host will show you the all of interfaces.

brctl show
bridge name         bridge id                      STP enabled    interfaces
virbr0                  8000:525400da324e      yes                  virbr0-nic

ifconfig

enp5s0   is on 192.168.1.109
lo          is on 127.0.0.1
virbr0    is on 192.168.122.1

(sorry can't ssh in at the moment, let me know if you need all the details)

Might help chasing down the problem.

Regards,
Bill Ott

Home: 919-363-0031
Cell: 919-434-7589
Email: Mailto:..hidden..
Website: http://www.theotts.org
Profile: http://www.linkedin.com/in/wbott


On 1/9/19 5:21 PM, Erik Huelsmann wrote:
Hi,

Ok, so the debian install went simply. I used debian 9 (Stretch), without a GUI. 'ip addr' gives 192.168.1.101, which sounds right, as that's my lan, 192.168.1.X.

I then followed the instructions on https://apt.ledgersmb.org/index.html, but I installed version 1.5, and did not add the 'test component', I don't know what that means, sorry.

[snip]
 
I was able to add the DB admin user where the prompt comes up: Now do I need to reset/config mysql's root user and password also?

So from my desktop I tried to access via firefox 192.168.1.101:5762/setup.pl, but it's unable to connect.

Ok. Are you able to ping that ip address from your desktop? That should indicate if you should expect to be able to connect to the web server as well.
 
Yes, I can ping the debian VM with "ping 192.168.1.118"
I can access the default debian apache web server at 192.168.1.118, but no luck with 192.168.1.188:5762/setup.pl

I have a functioning fedora os VM on 192.168.1.107 with nextcloud working fine.
 
I have the VM network set to bridged, networking is my downfall, and the other thing I suspect is that I need to open the firewall for the webserver.

Bridged sounds fine. quick question: Is the "eth0" (or enpXs0 with X a number) network on the VM's host part of the bridge? If not, you probably need to enable IP forwarding. Before we go that route, lets start by checking you can 'ping' the address though. (And: can you ping the host that the VM is running on?)
I  can ping the host with "ping 192.168.1.109"
 

All advice appreciated.

Regards,

--
Bye,

Erik.

http://efficito.com -- Hosted accounting and ERP.
Robust and Flexible. No vendor lock-in.

_______________________________________________
users mailing list
..hidden..
https://lists.ledgersmb.org/mailman/listinfo/users
_______________________________________________
users mailing list
..hidden..
https://lists.ledgersmb.org/mailman/listinfo/users

_______________________________________________
users mailing list
..hidden..
https://lists.ledgersmb.org/mailman/listinfo/users

_______________________________________________
users mailing list
..hidden..
https://lists.ledgersmb.org/mailman/listinfo/users
_______________________________________________
users mailing list
..hidden..
https://lists.ledgersmb.org/mailman/listinfo/users

_______________________________________________
users mailing list
..hidden..
https://lists.ledgersmb.org/mailman/listinfo/users

_______________________________________________
users mailing list
..hidden..
https://lists.ledgersmb.org/mailman/listinfo/users
_______________________________________________
users mailing list
..hidden..
https://lists.ledgersmb.org/mailman/listinfo/users