Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - e111111

#1
French - Français / Re: Opnsense dans une VM Truenas
February 01, 2021, 07:58:42 PM
Merci
#2
General Discussion / Re: Opnsense on Truenas VM
February 01, 2021, 07:49:49 PM
Thank you all for having lifted the veil on these gray areas, I will be able to continue my configuration tests ...
#3
General Discussion / Re: Opnsense on Truenas VM
February 01, 2021, 06:47:32 PM
I'm not sure what a Hypervisor is, I'm really newbie, in fact I wanted to install Opnsense to secure my network, and since I had just installed Truenas (Freenas is the same) I saw that the we could virtualize Opnsense in a Truenas VM, and it seems to work pretty well, however, now for the settings, I go fishing for information on the forums as soon as I have a doubt :)

"Looks good. See the three bridge interfaces? Each of which connects one physical with exactly one virtual (VM) interface. The "member" lines ..."

Ok, i see, This is done by itself during the installation, I have not configured anything at this level...

Edit : I see what is an Hypervisor, & yes, truenas is my Hypervisor i think...
#4
General Discussion / Re: Opnsense on Truenas VM
February 01, 2021, 06:31:34 PM
There is the ifconfig response, many lines ! :

# ifconfig -a
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: Interface Ethernet d'ENTREE WAN (vient de la box)
        options=812099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER>
        ether 00:30:64:47:5f:08
        inet 192.168.0.253 netmask 0xffffff00 broadcast 192.168.0.255
        media: Ethernet autoselect
        status: no carrier
        nd6 options=9<PERFORMNUD,IFDISABLED>
igb0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: Interface Ethernet de sortie LAN (vers le réseau interne)
        options=a520b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6>
        ether 00:30:64:47:5f:09
        inet 192.168.1.42 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=9<PERFORMNUD,IFDISABLED>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=0<> metric 0 mtu 33160
        groups: pflog
ue0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80009<RXCSUM,VLAN_MTU,LINKSTATE>
        ether 00:50:b6:be:33:23
        media: Ethernet autoselect (none)
        status: no carrier
        nd6 options=1<PERFORMNUD>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:fc:86:a4:07:00
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto stp-rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: vnet0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 9 priority 128 path cost 2000000
        member: ue0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 5 priority 128 path cost 55
        groups: bridge
        nd6 options=1<PERFORMNUD>
bridge1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:fc:86:a4:07:01
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto stp-rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: vnet1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 10 priority 128 path cost 2000000
        member: igb0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 2 priority 128 path cost 20000
        groups: bridge
        nd6 options=1<PERFORMNUD>
bridge2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:fc:86:a4:07:02
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto stp-rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: vnet2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 11 priority 128 path cost 2000000
        member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 1 priority 128 path cost 2000000
        groups: bridge
        nd6 options=1<PERFORMNUD>
vnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80000<LINKSTATE>
        ether fe:a0:98:ff:ff:ff
        hwaddr 58:9c:fc:10:ff:a5
        groups: tap
        media: Ethernet autoselect
        status: active
        nd6 options=1<PERFORMNUD>
        Opened by PID 1783
vnet1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80000<LINKSTATE>
        ether fe:a0:98:ff:ff:ff
        hwaddr 58:9c:fc:10:12:2f
        groups: tap
        media: Ethernet autoselect
        status: active
        nd6 options=1<PERFORMNUD>
        Opened by PID 1783
vnet2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80000<LINKSTATE>
        ether fe:a0:98:2a:c4:61
        hwaddr 58:9c:fc:10:34:44
        groups: tap
        media: Ethernet autoselect
        status: active
        nd6 options=1<PERFORMNUD>
        Opened by PID 1783
#5
General Discussion / Re: Opnsense on Truenas VM
February 01, 2021, 06:15:15 PM
Thank you pmhausen

In fact, I want to put Opensense behind the ADSL box (DMZ in the box),
then truenas behind Opnsense, even if it is in fact its container.
The rest of my network will also be behind Opnsense, and IOTs will have a separate dedicated branch.
#6
French - Français / Re: Opnsense dans une VM Truenas
February 01, 2021, 06:06:55 PM
Bonjour,
Merci de me répondre,
J'ai deux ports dédiés au LANs et un pour le WAN.
Visiblement, avec la VM, j'ai réussi à avoir deux IP sur la même interface, une pour le webgui de Trunas, et une pour celui de Opnsense, cela doit être dû à la virtualisation je pense...
Par contre, je ne capte pas pourquoi créer une VLAN (virtuelle ?) alors que j'ai un NIC dédié aux IOT, çà quoi cela sert il ?
Qu'est ce switch manageable ? Derrière pour le wifi j'ai un netgear EX8000.
#7
General Discussion / Re: Opnsense on Truenas VM
February 01, 2021, 06:01:15 PM
ah, ok, a good simple explanation!
Thank you very much, so no need for bridge or Vlan ...?
#8
General Discussion / Opnsense on Truenas VM
February 01, 2021, 05:28:09 PM
Hello all,

sorry for my poor English ...
I am new here, and I'm coming to seek your help on a subject that I have a little trouble understanding.

First, the context:

On a new machine, devoid of any other installation, I installed Truenas 12, this one configured and working correctly, I created a VM in which I installed Opnsense, which boots well.

I configured all this connected to my network, but without really inserting it in its final location (between the box and the rest of the network) so as not to create a problem for me while the debugging takes place.

On the machine I have 3 network interfaces, this is how they are assigned:

LAN> TRUENAS [igb0] OPNSENSE [em1]
WAN> TRUENAS [em0] OPNSENSE [em0]
LAN2> TRUENAS [ue0] OPNSENSE [em2]

So far everything is fine, even if you have to find your way around the different naming of the same physical interfaces by the two systems.

Where I am wondering, it is on the allocation of IPs, I have a little trouble understanding how to do this, and especially how a physical interface can be addressed by two IPs, here is my current config:

LAN> TRUENAS [192.168.1.42] OPNSENSE [192.168.1.248]
WAN> TRUENAS [192.168.0.253] OPNSENSE [192.168.0.252]
LAN2 not used at the moment, in the future dedicated to IOTs that I have in large numbers

LAN IPs are assigned based on the rest of the current network config.
The web interfaces of Truenas and Opnsense work perfectly with their respective IPs on the LAN interface (TRUENAS [igb0] OPNSENSE [em1]).

For the WAN, I have no error message, but before trying to put this into service I would like to be reassured about my config and understand the miracle of two IPs on the same interface.

I spent a lot of time reading tutorials and other forums to try to understand a little, I only got confused even more with bridges, VLANs and others which I do not get much.

I end by specifying that I have always worked in IT maintenance since the 80s, then as a dev. hardware HMI for 10 years, so I know the PC world quite a bit, but I am not far from being a nozzle in the network field.

If you could enlighten me a bit on how it all works and tell me about any mistakes and how to fix them ...

thank you in advance
#9
French - Français / Opnsense dans une VM Truenas
January 31, 2021, 05:46:43 PM
Bonjour à tous,

je suis nouveau ici, et je viens quérir vos lumières sur un sujet que j'ai un peu de mal à comprendre.

Tout d'abord, le contexte :

Sur une machine neuve, vierge de toute autre installation, j'ai installé Truenas 12, celui-ci configuré et fonctionnant correctement, j'ai créé un VM dans laquelle j'ai installé Opnsense, qui démarre bien.

J'ai configuré tout cela raccordé à mon réseau , mais sans réellement l'intercaler à son emplacement définitif (entre la box et le reste du réseau) afin de ne pas me créer de problème le temps de la mise au point.

Sur la machine, j'ai 3 interfaces réseau, voici comment elles sont attribuées:

LAN   > TRUENAS [igb0]  OPNSENSE [em1]
WAN  > TRUENAS [em0]  OPNSENSE [em0]
LAN2 > TRUENAS [ue0]   OPNSENSE [em2]

Jusque là tout va bien, même s'il faut se repérer dans le nommage différent des mêmes interfaces physiques par les deux systèmes.

Là ou je me pose des questions, c'est sur l'attribution des IP, j'ai un  peu de mal à capter comment faire, et surtout comment une interface physique peut être adressée par deux IP, voici ma config actuelle :

LAN > TRUENAS [192.168.1.42]  OPNSENSE [192.168.1.248]
WAN > TRUENAS [192.168.0.253]  OPNSENSE [192.168.0.252]
LAN2 non utilisé pour le moment, dans le futur dédié aux IOT que j'ai en grand nombre

Les IP LAN sont attribuées en fonction du reste de la config du réseau actuel.
Les interfaces web de Truenas et Opnsense fonctionnent parfaitement avec leurs IP respectives sur l'interface LAN (TRUENAS [igb0]  OPNSENSE [em1]).

Pour le WAN, je n'ai pas de message d'erreur, mais avant de tenter de mettre cela en service j'aimerais être rassuré sur ma config et comprendre se miracle de deux IP sur une même interface.

J'ai passé pas mal de temps à lire des tutos et autres forums pour tenter de comprendre un peu, je n'ai fait que m'embrouiller encore plus avec les bridges, VLAN et autres auxquels je ne capte pas grand chose.

Je termine en précisant que j'ai toujours travaillé dans la maintenance informatique depuis les années 80, puis en tant que dev. hardware IHM depuis 10 ans, je connais donc pas trop mal le monde du PC, mais je ne suis pas loin d'être une buse dans le domaine du réseau.

Si vous pouviez m'éclairer un peu sur le fonctionnement de tout ça et m'indiquer mes éventuelles erreurs et comment y remédier...

Merci d'avance