PROJET AUTOBLOG


Planet-Libre

source: Planet-Libre

⇐ retour index

Guillaume Vaillant : a few extra notes about using SSLH

jeudi 27 février 2020 à 18:00
Recently, I tried two things with SSLH: using it properly with systemd having it working with both IPv4 and IPv6 (since it runs a machine that supports both) and of course, the firewalling part is now managed with nftables configuration of SSLH itself SSLH is pretty simple: if you tell it listen on a hostname that resolves to both an IPv4 and v6, then, it will work in dual-stack if you tell it to forward request to a hostname that resoves to both an IPv4 and v6, same thing.

Gravatar de Guillaume Vaillant
Original post of Guillaume Vaillant.Votez pour ce billet sur Planet Libre.

genma : Connaître les ports ouverts vers l'extérieur

mercredi 26 février 2020 à 09:00

Prérequis : savoir ce qu'est un port réseau. Sinon, on pourra toujours lire la page Wikipedia Port (logiciel) en introduction.

Il y a quelques années (10 ans), j'écrivais un article Proxy automatique : connaître l'adresse dans lequel j'exposais une façon simple de trouver l'adresse et le port d'un proxy transparent se trouvant sur un réseau d'entreprise.

Récemment, connecté depuis un réseau "public" d'entreprise (une machine en BYOD, non référencé, connecté sur le premier câble réseau venu de l'openspace, est de facto sur un réseau public : pas d'accès aux dossiers et répertoires partagés, pas d'accès aux imprimantes, on a une IP attribué dans une plage différente d'une machine enregistrée), j'ai pu constater que les connexions depuis mon PC vers l'extérieur marchait bien pour une connexion SSH vers le port 22 d'un serveur, vers un VPN écoutant sur le port 443, mais que des connexions sur d'autres serveurs écoutant sur des ports non conventionnels ne marchaient pas. De même, mon client Thunderbird refuse toute connexion à mes différents comptes mails.

Un proxy ?

J'ai utilisé la technique évoqué dans mon article Proxy automatique : connaître l'adresse, je constate que ma machine parle bien à différents serveurs (dont des IP que je connais, vu que ce sont mes serveurs), donc pas de proxy transparent en intermédiaire.

Des ports ouverts et des ports fermés ?

Je me suis donc posé la question de savoir quels sont les ports ouverts vers l'extérieur.

Quand on cherche l'inverse, à savoir quels sont les ports ouverts sur une machine (comprendre : quels sont les ports accessibles publiquement sur Internet), on pense de suite à utiliser nmap (ou on trouve des tutoriaux). Mais dans mon cas, je suis à l'intérieur et je veux savoir par où je peux sortir.

La solution est bien d'utiliser nmap et de faire un scan d'une machine dont on connait les ports ouverts. Il existe "portquiz.net", un service qui avait une machine répondant sur l'ensemble des ports.

nmap -p- portquiz.net | grep -i open

Donc si un ou plusieurs ports sont bloqués entre ma machine qui se trouve sur le réseau public au sein d'une entreprise, la machine cible ne répond pas, indiquant ainsi que ce port ou ces ports sont bloqués.

Portquiz.net étant assez lent (car très probablement beaucoup sollicité), j'ai choisi une autre option, celle que de scanner une machine pour laquelle je connais précisément les ports ouverts.

nmap -p-mamachine.net | grep -i open

Et j'obtiens le résultat suivant :

22/tcp open ssh
80/tcp open http
443/tcp open https

Depuis chez moi, derrière une Freebox, même manipulation :

22/tcp open ssh
25/tcp open smtp
53/tcp open domain
80/tcp open http
443/tcp open https
993/tcp open imaps

Quel résultat et conclusion

Le réseau public de l'entreprise permet donc bien un accès au web (port 80, 443) (je n'ai pas étudié la question d'un filtrage de site), un accès sur des serveurs en SSH via le port 22, mais c'est tout. Pas de messagerie possible (pas de IMAPs et de SMTPs), pas de résolution DNS possible (si ce n'est que de passer par les serveurs de résolution de nom fournis avec l'adresse IP, via le DHCP du réseau). Donc ce n'est pas un accès à Internet, mais un accès à un réseau public ouvert sur le web.

On pourra être étonné du fait que le port 22 soit le troisième port ouvert, alors que tout le reste est fermé. Les ports 80 et 443 permettent un accès au web, on comprend la nécessité de les ouvrir. Le port 22, cela veut dire que ce réseau doit être utilisé pour accéder à des machines serveurs dans des clouds publics (supposition avec une forte probabilité), pour des tests et autres usages dans le cadre de projets pour des clients.

J'ai beaucoup plus de ports visibles et accessibles (tous ceux qui sont bien ouverts sur ma machine).

Gravatar de genma
Original post of genma.Votez pour ce billet sur Planet Libre.

Simon Vieille : Réseaux sociaux : flux à lier - #DATAGUEULE 95

mercredi 26 février 2020 à 08:31

Ils sont attirants, attachants … et rapidement indispensables. Les réseaux sociaux nous appâtent à coup de likes et nous bercent dans leurs "infinite scroll". Et rapidement leurs interfaces nous poussent à la consommation jusqu’à l’overdose. Et ce n’est pas un hasard. Ils ont bâti leurs empires sur notre addiction à la dopamine.

Retrouvez toutes les sources de l'épisode sur : https://wiki.datagueule.tv/Réseaux_:flux_à_lier(EP.95)

Gravatar de Simon Vieille
Original post of Simon Vieille.Votez pour ce billet sur Planet Libre.

Articles similaires

Francois Aichelbaum : Agile and Infrastructure

lundi 24 février 2020 à 08:11

Recently, I had a rather interesting discussion with some of my clients over Slack: Agile processes applied to Infrastructure. At the beginning, we did not reach a common ground, but we quickly realized that the problem was not our approaches, but our vocabulary. Agile? Infrastructure? Once we agreed on these terms, the discussion took on a completely different form. Here is a short summary.

Agile ?

Often, when we talk about Agile, we talk about agility. It is assumed that it is about being flexible in our actions and reactions. It is mainly a mix between a mindset, a culture, an approach and above all a paradigm.

Defined in the Agile Manifesto, this approach to project management is the opposite of traditional approaches such as the V Cycle or cascades. The short version is that these traditional methods lead irremediably to a tunnel effect, which can have disastrous effects on both the project and the client relationship. Conversely, the Agile approach proposes to reduce this tunnel effect as much as possible in order to allow better transparency, through an iterative and incremental process.

So the key elements are there: transparency and iteration. From this, many other concepts will derive, related to the different methods but also to the contexts of applications. Many sites and books will describe them much better than a few lines on this blog.

Infrastructure ?

An infrastructure is a set of interconnected elements that provide a framework to support the entire structure. As such, it is not just the network or system, but a collection of these elements and many more, to be considered in context. In the case of a team, we will have to talk about, for example, NetOps, DevOps, SRE, Architects, Infrastructure Engineers, … All working on the same subject, with different angles, and therefore different needs and means: their daily tasks, depending on their position and the context, will range from pure Run, to R&D applied to infrastructure.

And so ?

Okay, so let’s go back to our original discussion. Why talk about Agile and Infrastructure? We had different points of view together (I arrived during the discussion) and the central point was about the ability of “Infrastructure” teams to work in an Agile way.

One of the participants, who manages an operational team, therefore pure Run, did not see how Agile could be applied to the Run. The other, an R&D manager, was suffering from blockages from an Infrastructure Engineer who had joined his team after years of working on Run. The last one was managing a team that did both R&D and Run, and especially managing a rather junior DevOps that he was happy to model as he went along.

Depending on the interlocutor, it was more or less possible to apply the Agile approach to Infrastructure and that if someone couldn’t do it, it was simply their fault. Rather abrupt.

In fact, we must remember that in the professional world, it is our experience that models us. So you have to look at the current tasks to be performed but also at the past tasks of the people who will be working there. A person who has never worked in project mode will potentially find it more difficult to integrate into a project mode than someone who has been in it since the beginning of his or her career. And in Infrastructure, there are a lot of opportunities to work in project mode, but also a lot not to.

Making the infrastructure agile

So the real point is there: apply the Agile approach only when necessary, on the project, with people who have an approach to the subjects compatible with the two key elements.

Indeed, we could try to apply Agile methods to the Run, but this will not concern the core business rather than more related topics (documentation, debug tests, …). In the same way, a person whose experience has taught him how to look directly for the right final solution, even though he will spend a long and unmeasured amount of time on it, will not easily be able to work in incremental iterations, more time-limited.

This is the point that I sometimes have fun stygmatizing with my clients to trigger reflection. I then caricature by talking about the American approach of a startup, ready to do anything and question itself the next day with a complete turnaround; versus the French approach, much more posed, and which will only deliver once perfection is reached.

So it comes down to the fact that we can work in project mode, according to the Agile approach, with teams that are used to working iteratively and incrementally. The basics. In reality, therefore, we can come up against other problems:

On the first two points, an Agile coach is the best way to find an answer. Indeed, the Agile coach will make sure that both the mindset of the team, but also the coaching structure allows this work in Agile. In the same way, he will often overflow on the means made available. He will then continue the work on the method, because in the Agile approach, each implementation comes with its own method and its own framework that will serve as a basis for its integration. The Agile coach will accompany you on the choice of the right approach and the right method, which will help to remove barriers.

On the difficulty of sequencing the work on the part of one of your collaborators, the work will be more on your side as a mentor of your team to accompany him or her. Although this long work requires an enormous capacity for hindsight on the part of the collaborator, who must change his way of doing things, it is your responsibility to place yourself as a benevolent coach and to find the right words to get your collaborator to put himself in the best possible frame of mind. There is always a risk of complete blockage, because it is still human, but it is up to you to persist and remain … agile. Act, Fail/Success, Iterate.

Why is it interesting to work with the Agile approach on Infrastructure?

In the end, you will reduce the risk of having to call into question the entire infrastructure put in place, and by extension, the major and very costly revamps that we are familiar with.

And you, do you think it is possible to work on Infrastructure topics using an Agile approach? Feel free to contact me to discuss it.

Gravatar de Francois Aichelbaum
Original post of Francois Aichelbaum.Votez pour ce billet sur Planet Libre.

Journal du hacker : Liens intéressants Journal du hacker semaine #8

lundi 24 février 2020 à 00:01

Pour la 8ème semaine de l'année 2020, voici 12 liens intéressants que vous avez peut-être ratés, relayés par le Journal du hacker, votre source d’informations pour le Logiciel Libre francophone !

Pour ne plus rater aucun article de la communauté francophone, voici :

De plus le site web du Journal du hacker est « adaptatif (responsive) ». N’hésitez pas à le consulter depuis votre smartphone ou votre tablette !

Le Journal du hacker fonctionne de manière collaborative, grâce à la participation de ses membres. Rejoignez-nous pour proposer vos contenus à partager avec la communauté du Logiciel Libre francophone et faire connaître vos projets !

Et vous ? Qu’avez-vous pensé de ces articles ? N’hésitez pas à réagir directement dans les commentaires de l’article sur le Journal du hacker :)

Gravatar de Journal du hacker
Original post of Journal du hacker.Votez pour ce billet sur Planet Libre.

Articles similaires