Quantcast
Channel: NethServer Community - Latest posts
Viewing all 110548 articles
Browse latest View live

Guacamole 1.1.0 (2020-01-29)

$
0
0

but still

Can you login with guacamole user to mysql now?

Is the password for mysql in /etc/guacamole/guacamole.properties the same as in /var/lib/nethserver/secrets/guacamole?

Please do a

signal-event nethserver-guacamole-update

after changes as it does not only restart tomcat and guacd. It expands templates and cares about the database too.

Check /etc/e-smith/events/actions/nethserver-guacamole-conf to see what the preconfiguration does.

Maybe because of wrong pw the database wasn’t updated. This one updates the database to version 1.0.0:

cat /opt/guacamole/upgrade/upgrade-pre-0.9.14.sql /opt/guacamole/upgrade/upgrade-pre-1.0.0.sql | mysql -Dguacamole

If there’s no important data in the database just drop it and do a

signal-event nethserver-guacamole-update

to recreate everything.


Guacamole 1.1.0 (2020-01-29)

Guacamole 1.1.0 (2020-01-29)

$
0
0

It seems not expanded. Please try

expand-template /etc/guacamole/guacamole.properties

This is the used template fragment, it should get the password from /var/lib/nethserver/secrets:

/etc/e-smith/templates/etc/guacamole/guacamole.properties/10base

Do you use a custom template that overwrites the new one? I assume yes, as there are comments that are not there in the original fragment.

Guacamole 1.1.0 (2020-01-29)

$
0
0

@mrmarkuz

I found the problem. Somehow an old template dated summer 2019 was in /etc/e-smith/templates-custom/etc/guacamole/

That was working til this morning, but somehow was screwed after the update this morning.

It could still be a relict from last year, when we both tried to get the SG keyboard working for Guacamole.

Thx for all your pointers…

It’s working now

Andy

NethServer as public DNS authoritative server

$
0
0

Think it might be possible to install bind and do it that way. I can’t remember if someone has tried this before, I know that there has been some discussion around it.

If you do do it, you would need to do a split-brain DNS setup so your local private IP addresses don’t get leaked out.

Guacamole 1.1.0 (2020-01-29)

$
0
0

The smartest way for custom templates is to create new fragments instead of copying.
That’s not always possible so you have to copy a fragment.
Then you forget about it and the next update hits you, this was a typical example.
Glad it works now.

Guacamole 1.1.0 (2020-01-29)

$
0
0

my ldap server is different from the one where guacamole is installed on, even though the nethserver instance is paired to it.
Do i need to change any parameters or what, i still am not able to login with Ldap users.

Guacamole 1.1.0 (2020-01-29)

$
0
0

Thanks for testing.

You can change port and encryption:

config setprop guacd ldapPort 636
config setprop guacd Encryption ssl
expand-template /etc/guacamole/guacamole.properties

Please check /etc/guacamole/guacamole.properties if the values are correct.

Maybe you need to change ldap-hostname?

ldap-hostname: YOURLDAPSERVER

After editing please restart tomcat (systemctl restart tomcat) and check if it works. If yes I am going to apply it to the module.


NethServer as public DNS authoritative server

$
0
0

what do you exactly mean? I can’t get the point… the VM should have only one IP: the wan one. So which local address?
In second instance, as i remember, bind exposes only the content of the files you tell him to or? So if I do not put any wrong address into should be fine(?)

Guacamole 1.1.0 (2020-01-29)

$
0
0

@mrmarkuz

I also sometimes forget to “clean up” after testing - especially if no immediate negative effects are noticed. That was a test for Guacamole 1.1 at the time.

I realized the template after the custom-template changed the file when i did a
signal-event nethserver-guacamole-update

Then I started looking and found the “forgotten” template…

Sh*t happens…
(still better tha diorea… )

:slight_smile:

Andy

NethServer as public DNS authoritative server

$
0
0

BIND has a concept of “views”, which entail WHERE the query is coming from. You’ld need a “view” from Internet (eg 0.0.0.0), and maybe one for Internal Administration.

Split-Brain DNS:

This means two different DNS (Can be the same), with different contents.

The Internal one knows everything about your domain, eg internal AD, external Mailserver, your printers, NAS and other stuff the Internet doesn’t need to know about. This one gives out internal AND - if needed - also external IP Addresses. (eg external hosted website).

The External one has much less info, basically a “need to know” principle: Your Public Website, MX records pointing to your mailserver and other stuff maybe. But nothing internal! This DNS only has external Internet IPs…

Hope that helps!

My 2 cents
Andy

Guacamole 1.1.0 (2020-01-29)

$
0
0

Yes, the values are correct. i think it imported the correct values from the linked Nethserver.

I am now a happy LAD, it works great.

Thank you @mrmarkuz

Guacamole 1.1.0 (2020-01-29)

Matrix - synapse

$
0
0

Thanks for your help!
Yes rh-python36 is installed.
I have restarted this installation. I found this little error:

It’s not:

app_service_config_files:
  - "/opt/synapse-telegram/registration.yaml"

but it’s:

  - "/opt/mautrix-telegram/registration.yaml"

And now I’m blocked with this error :

(mautrix-telegram) [root@matrix mautrix-telegram]# python -m mautrix_telegram
[2020-04-16 18:01:58,292] [DEBUG@mau.init] Initializing mautrix-telegram 0.7.2
[2020-04-16 18:01:58,651] [CRITICAL@mau.init] alembic_version table not found. Did you forget to `alembic upgrade head`?

2fa for windows ad login

$
0
0

These are the steps, I took so far to install the privacyIDEA server:

  • Grab nethserver cd, and install centOS7 on a new vm, which is located in my red network. (I do not want to screw my nethserver vm, thus I decided to test privacyIDEA on e separate centos7 vm)
  • Update the freshly installed vm: yum check-update && yum update && yum clean all && reboot && ssh into the server to be able to copy paste then followed the installation on their site: https://privacyidea.readthedocs.io/en/latest/installation/centos.html
  • After I have disabled firewalld (systemctl mask --now firewalld) I can access privacyIDEA server.

Now I would need help as I have no idea how to link this with domain users from my nethserver active directory domain. Maybe someone could step in and see if it is possible to integrate this in nethserver itself?

My next steps will be to look on howto compile the credential provider that will have to be installed on my windows 10 systems, and reading their documentation in general.

I would love to help testing within nethserver but I don’t know howto proceed, so thanks in advance for your help. :slight_smile:


NethServer as public DNS authoritative server

$
0
0

Right, to keep track of this, that’s the procedure i followed:

  1. yum install -y bind bind-utils
  2. systemctl stop dnsmasq; systemctl disable dnsmasq; expand-template /etc/resolv.conf (I don’t have any lan so don’t need any DHCP, otherwise you can use something like port=0 to disable just the DNS)
  3. replaced under /etc/named.conf
    recursion no;

then normally configured bind and it rocks! Now if I query the server for my domain I get answers, if I query from some other domain, I get no answer (which is the intended behaviour, I don’t want to act as a global nameserver). NethServer itself can resolve through an /etc/resolv.conf without 127.0.0.1.

Hope it can help somebody else
ATB

POP3 / GetMail stops fetching on any mailbox

$
0
0

I have the same problems in only one server
pop3s.aruba.i
if i type ps ax|grep flock i see various getmail proceess that seems in standby
tanks

Guacamole 1.1.0 (2020-01-29)

$
0
0

From your screenshots there seems to be missing languages, I’ve never seen it like that. Looks like something is corrupted. Did you install or update?

I am afraid it’s not working well in this version but I have to test with remote LDAP…

From the guacamole release notes:

Bug fixes

Group permission behavior

Issues with the new support for user groups were identified following the 1.0.0 release which resulted in permissions not taking effect if granted via user groups from different authentication extensions. These issues have now been fixed. User group permissions should be inherited as expected, regardless of whether user group membership is dictated by a different extension than the permissions granted to that group.

Install Dedalo Hotspot with Icaro on local servers

$
0
0

What we need:

  • a nethserver for the dedalo installation
  • CentOS Server for icaro installation (CentOS 7 and CentOS 8 are possible, CentOS 7 is recommended)
  • a public domain name (could be dyndns name) which is portforwarded with 80 and 443 to your icaro server

Virtual environment
Of course you can also install all servers physical

We work with Proxmox for our installation.
Create a virtual machine. The following settings are the best virtualize in an virtual guest:

  • network: bridged (Virt IO)
  • CPU: host
  • 2 GB RAM minimum
  • 30 GB or more for HDD

Now we have to enable nested support in Proxmox like described at the following page

https://pve.proxmox.com/wiki/Nested_Virtualization

Installing CentOS 7

Setup network like this

  • IP: 192.168.x.x //Should be same network as your Dedalo-Nethservers red Network

  • Gateway: 192.168.x.x //Your Firewall/Router

  • DNS: 192.168.x.x //Your Firewall/Router or any public DNS

  • FQDN: MyHostname.MyDomain

Partitioning I didn’t change

After installation do an update with
yum update

As editor we also installed nano
yum install nano

Next step is to disable and stop firewall

systemctl disable firewalld

systemctl stop firewalld

you can check if it‘s disabled and stopped
systemctl status firewalld

Now we disable selinux also.
This works at the selinux config file
nano /etc/selinux/config

We have to set
SELINUX=enforcing

to
SELINUX=disabled

and reboot the system
shutdown -r now

If system is up again we check the se status
sestatus

The command should show
Selinux status disabled

Now we can install libvirt to use it for vagrant
First install Development Tools
yum group install -y "Development Tools"

after that we can install libvirt itself and some more tools for building vagrant with
yum install qemu-kvm libvirt libvirt-python libguestfs-tools virt-install libvirt-devel ruby-devel

Also we have to install python 3
yum install python3-pip

Now we do an ip_forward
echo "net.ipv4.ip_forward = 1"|sudo tee /etc/sysctl.d/99-ipforward.conf sysctl -p /etc/sysctl.d/99-ipforward.conf

So we have enable and start libvirtd now:
systemctl enable libvirtd --now
systemctl start libvirtd

next we install vagrant with the following command

yum install https://releases.hashicorp.com/vagrant/2.2.7/vagrant_2.2.7_x86_64.rpm

check status with
vagrant --version

install vagrant libvirt plugin
vagrant plugin install vagrant-libvirt

we install ansible now with python
pip3 install ansible

Now we download the icaro files
git clone https://github.com/nethesis/icaro.git

You can do your settings for icaro with
nano ~/icaro/deploy/ansible/group_vars/all.yml

  • change hostname to your public domain name
  • set
    icaro.tls: "self-signed"
    to
    icaro.tls: "auto"

after this step change to deploy folder
cd ~/icaro/deploy/

install icaro with vagrant with the following command
vagrant up

Note: If you restart your server you have to restart vagrant with
`vagrant reload’

If everything is working fine we can do
vagrant ssh
now

Last step before getting back to the CentOS machine is to get information about your network. You have to know the IP of the vagrant machine. Get it with
ip a

now exit vagrant ssh
exit

Back at CentOS we have to set some portforwardings
First check the name of your networkinterface which is connected to your Router/firewall with
ìp a

At the next step we have to flush iptables and do some port forwardings from CentOS to vagrant
Replace “CentOSNetworkcard” with your interface, for example ens33 or eth0 and “VagrantIP” with your one, for example 192.168.121.206

# Flush iptables
iptables -F

# Local port redirection for HTTP/HTTPS
iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 8081
iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 443 -j REDIRECT --to-ports 8080

# Port forwarding for the network for HTTP/HTTPS
iptables -A PREROUTING -t nat -i CentOSNetworkcard -p tcp --dport 80 -j DNAT --to VagrantIP:80
iptables -A PREROUTING -t nat -i CentOSNetworkcard -p tcp --dport 443 -j DNAT --to VagrantIP:443

Now we have to reload vagrant
vagrant reload

Now you can try to login to icaro. Open a webbrowser and go to to the https site ofyour public domain.

https://YourPublicDomain

First login you have to do with

  • user:admin
  • password:admin

Create a new manager as a reseller and login with this new created user. Now you can create a new hotspot.

Installing and configuring Nethserver with Dedalo

  • Install a Nethserver
  • Give three network interfaces to it, maybe virtual ones in proxmox.
  • Install all updates at the softwarecenter or with yum update
  • Install Dedalo from softwarecenter

Network settings

  • a red interface as wan interface connected to your router/firewall
  • a green interface as LAN interface, could be a fake interface
  • a 3rd interface not configured (this is done by dedalo)

Configuring Dedalo

  • At the cockpit interface (Dedalo is only available at cockpit) go to applications and choose settings of Hotspot Manager
  • hostname - YourPublicDomain (without any http(s))
  • user - YourReseller
  • password - YourResellersPassword

After connecting you can set the hotspot and a DHCP range. Don’t use the full range, for example

192.168.182.100
to
192.168.182.254

After that in icaro you can see a unit, your dedalo device.
You can now change some things at icaro, for example how people can login.

Some additional infos you can get at

and here
https://docs.nethserver.org/en/v7/dedalo.html

Thanks to @mrmarkuz for a lot of help.

Matrix - synapse

$
0
0

Thanks for testing, I corrected it.

Sorry, I missed step 7 in the howto:

Create the database with alembic upgrade head . If you have a custom config path, use alembic -x config=/path/to/config.yaml upgrade head

Viewing all 110548 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>